00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
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
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
00108 APU_DECLARE(apr_status_t) apr_xlate_conv_buffer(apr_xlate_t *convset,
00109 const
char *inbuf,
00110 apr_size_t *inbytes_left,
00111
char *outbuf,
00112 apr_size_t *outbytes_left);
00113
00114
00115 #ifdef APR_NOT_DONE_YET
00125 APU_DECLARE(apr_status_t) apr_xlate_conv_char(apr_xlate_t *convset,
00126
char inchar,
char outchar);
00127 #endif
00128
00137 APU_DECLARE(apr_int32_t) apr_xlate_conv_byte(apr_xlate_t *convset,
00138
unsigned char inchar);
00139
00147 APU_DECLARE(apr_status_t) apr_xlate_close(apr_xlate_t *convset);
00148
00150 #ifdef __cplusplus
00151 }
00152 #endif
00153
00154 #endif