Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

I18N translation library


Defines

#define APR_DEFAULT_CHARSET   (const char *)0
#define APR_LOCALE_CHARSET   (const char *)1

Typedefs

typedef apr_xlate_t apr_xlate_t

Functions

 APU_DECLARE (apr_status_t) apr_xlate_open(apr_xlate_t **convset
 APU_DECLARE (apr_int32_t) apr_xlate_conv_byte(apr_xlate_t *convset

Variables

const char * topage
const char const char * frompage
const char const char apr_pool_tpool
intonoff
const char * inbuf
const char apr_size_t * inbytes_left
const char apr_size_t char * outbuf
const char apr_size_t char
apr_size_t * 
outbytes_left
unsigned char inchar

Define Documentation

#define APR_DEFAULT_CHARSET   (const char *)0
 

This is to indicate the charset of the sourcecode at compile time names to indicate the charset of the source code at compile time. This is useful if there are literal strings in the source code which must be translated according to the charset of the source code.

Definition at line 78 of file apr_xlate.h.

Referenced by htdbm_init(), and main().

#define APR_LOCALE_CHARSET   (const char *)1
 

To indicate charset names of the current locale

Definition at line 82 of file apr_xlate.h.


Typedef Documentation

typedef struct apr_xlate_t apr_xlate_t
 

Opaque translation buffer

Definition at line 39 of file apr_xlate.h.


Function Documentation

APU_DECLARE apr_int32_t   ) 
 

Convert a single-byte character from one charset to another.

Parameters:
convset The handle allocated by apr_xlate_open, specifying the parameters of conversion
inchar The single-byte character to convert.
Warning:
This only works when converting between single-byte character sets. -1 will be returned if the conversion can't be performed.

APU_DECLARE apr_status_t   ) 
 

Set up for converting text from one charset to another.

Parameters:
convset The handle to be filled in by this function
topage The name of the target charset
frompage The name of the source charset
pool The pool to use
Remarks:
Specify APR_DEFAULT_CHARSET for one of the charset names to indicate the charset of the source code at compile time. This is useful if there are literal strings in the source code which must be translated according to the charset of the source code. APR_DEFAULT_CHARSET is not useful if the source code of the caller was not encoded in the same charset as APR at compile time.

Specify APR_LOCALE_CHARSET for one of the charset names to indicate the charset of the current locale.

Return APR_EINVAL if unable to procure a convset, or APR_ENOTIMPL if charset transcoding is not available in this instance of apr-util at all (i.e., APR_HAS_XLATE is undefined).

Definition at line 37 of file apr_brigade.c.


Variable Documentation

const char const char* frompage
 

Definition at line 67 of file apr_xlate.h.

const char* inbuf
 

Definition at line 113 of file apr_xlate.h.

const char apr_size_t* inbytes_left
 

Definition at line 113 of file apr_xlate.h.

Referenced by AP_DECLARE(), read_connection(), read_table(), test(), and test_conversion().

unsigned char inchar
 

Definition at line 142 of file apr_xlate.h.

int * onoff
 

Definition at line 96 of file apr_xlate.h.

const char apr_size_t char* outbuf
 

Definition at line 113 of file apr_xlate.h.

Referenced by mod_auth_ldap_build_filter().

const char apr_size_t char apr_size_t* outbytes_left
 

Definition at line 113 of file apr_xlate.h.

Referenced by AP_DECLARE(), read_connection(), read_table(), test(), and test_conversion().

const char const char apr_pool_t* pool
 

Definition at line 67 of file apr_xlate.h.

const char* topage
 

Definition at line 67 of file apr_xlate.h.