Apache2
util_ebcdic.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
26 #ifndef APACHE_UTIL_EBCDIC_H
27 #define APACHE_UTIL_EBCDIC_H
28 
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #include "apr_xlate.h"
35 #include "httpd.h"
36 #include "util_charset.h"
37 
38 #if APR_CHARSET_EBCDIC || defined(DOXYGEN)
39 
47 
56 void ap_xlate_proto_to_ascii(char *buffer, apr_size_t len);
57 
66 void ap_xlate_proto_from_ascii(char *buffer, apr_size_t len);
67 
77 
78 #else /* APR_CHARSET_EBCDIC */
79 
80 #define ap_xlate_proto_to_ascii(x,y) /* NOOP */
81 #define ap_xlate_proto_from_ascii(x,y) /* NOOP */
82 
83 #define ap_rvputs_proto_in_ascii ap_rvputs
84 
85 #endif /* APR_CHARSET_EBCDIC */
86 
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif /* !APACHE_UTIL_EBCDIC_H */
APR I18N translation library.
apr_status_t ap_init_ebcdic(apr_pool_t *pool)
void ap_xlate_proto_to_ascii(char *buffer, apr_size_t len)
int ap_rvputs_proto_in_ascii(request_rec *r,...)
void ap_xlate_proto_from_ascii(char *buffer, apr_size_t len)
request_rec * r
Definition: mod_dav.h:518
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
int apr_status_t
Definition: apr_errno.h:44
size_t apr_size_t
Definition: apr.h:394
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
HTTP Daemon routines.
A structure that represents the current request.
Definition: httpd.h:856
charset conversion