Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6II18n::wcToUtf8 ( P6CHAR pDst,
P6UINT32 pDstSize,
P6WCHAR  wc 
)
pure virtual

Locale independent conversion from a single wide character to a UTF8 multibyte string.

The resulting UTF8 multibyte character is stored in a char* that is NOT null terminated. The size of number of bytes required to encode the UTF8 character is returned in pDstSize. UTF8 uses at most 6 bytes per one wide character.

Parameters
pDst[ out ] Pointer to a single wide character converted from the UTF8 string
pDstSize[ in ] The size of the buffer pointed to by pDst (in bytes). [ out ] The number of bytes in pSrc that made up the output wide character. This length is necessary for the caller to increment to the next UTF8 character.
wc[ in ] A single wide character to convert.
Returns
SuccessP6R::eOk 
FailureP6R::eFailUnable to convert wide character to UTF8 multibyte character.
P6R::eInvalidArgIf pDst is equal to NULL.
P6R::eTooSmallpDst buffer is too small to hold the converted sequence.
P6R::eNotInitializedA successful call to initialize was not made before this call.