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
Success | P6R::eOk | |
Failure | P6R::eFail | Unable to convert wide character to UTF8 multibyte character. |
P6R::eInvalidArg | If pDst is equal to NULL. |
P6R::eTooSmall | pDst buffer is too small to hold the converted sequence. |
P6R::eNotInitialized | A successful call to initialize was not made before this call. |