842ae4bd224140319ae7feec1872b93dfd491143fielding/* Licensed to the Apache Software Foundation (ASF) under one or more
842ae4bd224140319ae7feec1872b93dfd491143fielding * contributor license agreements. See the NOTICE file distributed with
842ae4bd224140319ae7feec1872b93dfd491143fielding * this work for additional information regarding copyright ownership.
842ae4bd224140319ae7feec1872b93dfd491143fielding * The ASF licenses this file to You under the Apache License, Version 2.0
842ae4bd224140319ae7feec1872b93dfd491143fielding * (the "License"); you may not use this file except in compliance with
842ae4bd224140319ae7feec1872b93dfd491143fielding * the License. You may obtain a copy of the License at
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * Unless required by applicable law or agreed to in writing, software
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * distributed under the License is distributed on an "AS IS" BASIS,
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * See the License for the specific language governing permissions and
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * limitations under the License.
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * @brief Utilities for EBCDIC conversion
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * @defgroup APACHE_CORE_EBCDIC Utilities for EBCDIC conversion
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * @ingroup APACHE_CORE
1f728f035fca81594193e198b40bfa732b1c02ebtrawickextern "C" {
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * Setup all of the global translation handlers.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * @param pool The pool to allocate out of.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * @note On non-EBCDIC system, this function does <b>not</b> exist.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * So, its use should be guarded by \#if APR_CHARSET_EBCDIC.
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawick * Convert protocol data from the implementation character
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawick * set to ASCII.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * @param buffer Buffer to translate.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * @param len Number of bytes to translate.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * @note On non-EBCDIC system, this function is replaced by an
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * empty macro.
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawickvoid ap_xlate_proto_to_ascii(char *buffer, apr_size_t len);
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawick * Convert protocol data to the implementation character
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawick * set from ASCII.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * @param buffer Buffer to translate.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * @param len Number of bytes to translate.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * @note On non-EBCDIC system, this function is replaced by an
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * empty macro.
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawickvoid ap_xlate_proto_from_ascii(char *buffer, apr_size_t len);
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * Convert protocol data from the implementation character
8d290205047d88e37555019fe9a26f1c5ece7023gregames * set to ASCII, then send it.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * @param r The current request.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * @param ... The strings to write, followed by a NULL pointer.
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * @note On non-EBCDIC system, this function is replaced by a call to
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc * #ap_rvputs.
db3fa7db7c7910f2f23c3e3ffe0cf9f41a1899b9trawick#else /* APR_CHARSET_EBCDIC */
db3fa7db7c7910f2f23c3e3ffe0cf9f41a1899b9trawick#endif /* APR_CHARSET_EBCDIC */
1f728f035fca81594193e198b40bfa732b1c02ebtrawick#endif /* !APACHE_UTIL_EBCDIC_H */