Main Page | Modules | Namespace List | Data Structures | File List | Data Fields | Globals | Related Pages

/home/cooker/rebuild/rpm/BUILD/apr-util-0.9.4/include/apr_xlate.h

Go to the documentation of this file.
00001 /* Copyright 2000-2004 The Apache Software Foundation 00002 * 00003 * Licensed under the Apache License, Version 2.0 (the "License"); 00004 * you may not use this file except in compliance with the License. 00005 * You may obtain a copy of the License at 00006 * 00007 * http://www.apache.org/licenses/LICENSE-2.0 00008 * 00009 * Unless required by applicable law or agreed to in writing, software 00010 * distributed under the License is distributed on an "AS IS" BASIS, 00011 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00012 * See the License for the specific language governing permissions and 00013 * limitations under the License. 00014 */ 00015 00016 #ifndef APR_XLATE_H 00017 #define APR_XLATE_H 00018 00019 #include "apu.h" 00020 #include "apr_pools.h" 00021 #include "apr_errno.h" 00022 00023 #ifdef __cplusplus 00024 extern "C" { 00025 #endif /* __cplusplus */ 00026 00038 typedef struct apr_xlate_t apr_xlate_t; 00039 00065 APU_DECLARE(apr_status_t) apr_xlate_open(apr_xlate_t **convset, 00066 const char *topage, 00067 const char *frompage, 00068 apr_pool_t *pool); 00069 00077 #define APR_DEFAULT_CHARSET (const char *)0 00081 #define APR_LOCALE_CHARSET (const char *)1 00082 00092 APU_DECLARE(apr_status_t) apr_xlate_sb_get(apr_xlate_t *convset, int *onoff); 00093 00095 APU_DECLARE(apr_status_t) apr_xlate_get_sb(apr_xlate_t *convset, int *onoff); 00096 00111 APU_DECLARE(apr_status_t) apr_xlate_conv_buffer(apr_xlate_t *convset, 00112 const char *inbuf, 00113 apr_size_t *inbytes_left, 00114 char *outbuf, 00115 apr_size_t *outbytes_left); 00116 00117 /* @see apr_file_io.h the comment in apr_file_io.h about this hack */ 00118 #ifdef APR_NOT_DONE_YET 00128 APU_DECLARE(apr_status_t) apr_xlate_conv_char(apr_xlate_t *convset, 00129 char inchar, char outchar); 00130 #endif 00131 00140 APU_DECLARE(apr_int32_t) apr_xlate_conv_byte(apr_xlate_t *convset, 00141 unsigned char inchar); 00142 00150 APU_DECLARE(apr_status_t) apr_xlate_close(apr_xlate_t *convset); 00151 00153 #ifdef __cplusplus 00154 } 00155 #endif 00156 00157 #endif /* ! APR_XLATE_H */

Generated on Mon Sep 27 05:05:29 2004 for Apache Portable Runtime Utility Library by doxygen 1.3.7