123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- #ifndef APR_XLATE_H
- #define APR_XLATE_H
- #include "apu.h"
- #include "apr_pools.h"
- #include "apr_errno.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct apr_xlate_t apr_xlate_t;
- APU_DECLARE(apr_status_t) apr_xlate_open(apr_xlate_t **convset,
- const char *topage,
- const char *frompage,
- apr_pool_t *pool);
- #define APR_DEFAULT_CHARSET (const char *)0
- #define APR_LOCALE_CHARSET (const char *)1
- APU_DECLARE(apr_status_t) apr_xlate_sb_get(apr_xlate_t *convset, int *onoff);
- APU_DECLARE(apr_status_t) apr_xlate_conv_buffer(apr_xlate_t *convset,
- const char *inbuf,
- apr_size_t *inbytes_left,
- char *outbuf,
- apr_size_t *outbytes_left);
- #ifdef APR_NOT_DONE_YET
- APU_DECLARE(apr_status_t) apr_xlate_conv_char(apr_xlate_t *convset,
- char inchar, char outchar);
- #endif
- APU_DECLARE(apr_int32_t) apr_xlate_conv_byte(apr_xlate_t *convset,
- unsigned char inchar);
- APU_DECLARE(apr_status_t) apr_xlate_close(apr_xlate_t *convset);
- #ifdef __cplusplus
- }
- #endif
- #endif
|