Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
apr_arch_utf8.h File Reference
#include "apr.h"
#include "apr_lib.h"
#include "apr_errno.h"
Include dependency graph for apr_arch_utf8.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef apr_uint16_t apr_wchar_t
 

Functions

apr_status_t apr_conv_utf8_to_ucs2 (const char *in, apr_size_t *inbytes, apr_wchar_t *out, apr_size_t *outwords)
 
apr_status_t apr_conv_ucs2_to_utf8 (const apr_wchar_t *in, apr_size_t *inwords, char *out, apr_size_t *outbytes)
 

Typedef Documentation

Function Documentation

apr_status_t apr_conv_ucs2_to_utf8 ( const apr_wchar_t in,
apr_size_t inwords,
char *  out,
apr_size_t outbytes 
)

An APR internal function for fast ucs-2 wide Unicode format conversion to the utf-8 octet-encoded Unicode. This function is used for filename and other resource conversions for platforms providing native Unicode support.

Only the errors APR_EINVAL and APR_INCOMPLETE may occur, the former when the character code is invalid (in or out of context) and the later when more words were expected, but insufficient words remain.

apr_status_t apr_conv_utf8_to_ucs2 ( const char *  in,
apr_size_t inbytes,
apr_wchar_t out,
apr_size_t outwords 
)

An APR internal function for fast utf-8 octet-encoded Unicode conversion to the ucs-2 wide Unicode format. This function is used for filename and other resource conversions for platforms providing native Unicode support.

Only the errors APR_EINVAL and APR_INCOMPLETE may occur, the former when the character code is invalid (in or out of context) and the later when more characters were expected, but insufficient characters remain.