2N/A/* Licensed to the Apache Software Foundation (ASF) under one or more
2N/A * contributor license agreements. See the NOTICE file distributed with
2N/A * this work for additional information regarding copyright ownership.
2N/A * The ASF licenses this file to You under the Apache License, Version 2.0
2N/A * (the "License"); you may not use this file except in compliance with
2N/A * the License. You may obtain a copy of the License at
2N/A *
2N/A * http://www.apache.org/licenses/LICENSE-2.0
2N/A *
2N/A * Unless required by applicable law or agreed to in writing, software
2N/A * distributed under the License is distributed on an "AS IS" BASIS,
2N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2N/A * See the License for the specific language governing permissions and
2N/A * limitations under the License.
2N/A */
2N/A
2N/A/**
2N/A * @file util_charset.h
2N/A * @brief charset conversion
2N/A *
58N/A * @defgroup APACHE_CORE_CHARSET Charset Conversion
2N/A * @ingroup APACHE_CORE
2N/A *
32N/A * These are the translation handles used to translate between the network
32N/A * format of protocol headers and the local machine format.
127N/A *
127N/A * For an EBCDIC machine, these are valid handles which are set up at
145N/A * initialization to translate between ISO-8859-1 and the code page of
127N/A * the source code.\n
127N/A * For an ASCII machine, they are undefined.
127N/A *
127N/A * @see ap_init_ebcdic()
2N/A * @{
145N/A */
26N/A
38N/A#ifndef APACHE_UTIL_CHARSET_H
38N/A#define APACHE_UTIL_CHARSET_H
29N/A
93N/A#ifdef __cplusplus
29N/Aextern "C" {
29N/A#endif
26N/A
26N/A#include "apr.h"
29N/A
26N/A#if APR_CHARSET_EBCDIC || defined(DOXYGEN)
2N/A
38N/A#include "apr_xlate.h"
2N/A
6N/A/**
2N/A * On EBCDIC machine this is a translation handle used to translate the
58N/A * headers from the local machine format to ASCII for network transmission.
2N/A * @note On ASCII system, this variable does <b>not</b> exist.
145N/A * So, its use should be guarded by \#if APR_CHARSET_EBCDIC.
145N/A */
34N/Aextern apr_xlate_t *ap_hdrs_to_ascii;
34N/A
34N/A/**
49N/A * On EBCDIC machine this is a translation handle used to translate the
145N/A * headers from ASCII to the local machine format after network transmission.
2N/A * @note On ASCII system, this variable does <b>not</b> exist.
34N/A * So, its use should be guarded by \#if APR_CHARSET_EBCDIC.
34N/A */
94N/Aextern apr_xlate_t *ap_hdrs_from_ascii;
94N/A
156N/A#endif /* APR_CHARSET_EBCDIC */
156N/A
166N/A#ifdef __cplusplus
166N/A}
34N/A#endif
59N/A
72N/A#endif /* !APACHE_UTIL_CHARSET_H */
72N/A/** @} */
72N/A