18#include "apu_config.h"
46#if defined(APU_ICONV_INBUF_CONST) || APU_HAVE_APR_ICONV
47#define ICONV_INBUF_TYPE const char **
49#define ICONV_INBUF_TYPE char **
53#define min(x,y) ((x) <= (y) ? (x) : (y))
63#elif APU_HAVE_APR_ICONV
115 for (
i = 0;
i <
sizeof(
inbuf);
i++) {
141 convset->ich =
iconv_open(convset->topage, convset->frompage);
144#elif APU_HAVE_APR_ICONV
155 for (
i = 0;
i <
sizeof(
inbuf);
i++) {
184 convset->pool, &convset->ich);
193 convset->sbcs_table =
apr_palloc(convset->pool, 256);
194 for (
i = 0;
i < 256;
i++)
195 convset->sbcs_table[
i] =
i;
220 if (!
new->topage || !
new->frompage) {
238#if APU_HAVE_APR_ICONV
291#if APU_HAVE_APR_ICONV
339 if (convset->ich != (
iconv_t)-1) {
392 char *table = convset->sbcs_table;
410 if (convset->sbcs_table) {
411 return convset->sbcs_table[
inchar];
APR general purpose library routines.
APR Portability Routines.
APU_DECLARE(void)
Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIP...
APR I18N translation library.
struct apr_xlate_t apr_xlate_t
#define APR_LOCALE_CHARSET
const char apr_size_t * inbytes_left
#define APR_DEFAULT_CHARSET
const char apr_size_t char apr_size_t * outbytes_left
const char const char * frompage
const char apr_size_t char * outbuf
const char int apr_pool_t * pool
#define apr_pcalloc(p, size)