00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
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 
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 
00117 APU_DECLARE(apr_status_t) apr_xlate_conv_buffer(apr_xlate_t *convset, 
00118                                                 const char *inbuf, 
00119                                                 apr_size_t *inbytes_left, 
00120                                                 char *outbuf,
00121                                                 apr_size_t *outbytes_left);
00122 
00123 
00124 #ifdef APR_NOT_DONE_YET
00125 
00134 APU_DECLARE(apr_status_t) apr_xlate_conv_char(apr_xlate_t *convset, 
00135                                               char inchar, char outchar);
00136 #endif
00137 
00146 APU_DECLARE(apr_int32_t) apr_xlate_conv_byte(apr_xlate_t *convset, 
00147                                              unsigned char inchar);
00148 
00156 APU_DECLARE(apr_status_t) apr_xlate_close(apr_xlate_t *convset);
00157 
00159 #ifdef __cplusplus
00160 }
00161 #endif
00162 
00163 #endif