include/apr_xlate.h

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

Generated on Tue Sep 11 08:13:14 2007 for Apache Portable Runtime Utility Library by  doxygen 1.5.2