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

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

A NULL value for pDst results in pDstSize assigned the required size of pDst for the conversion. The resulting wide character string is NULL terminated.

Parameters
pDst[ out ] Pointer to a buffer to write converted UTF8 character string. If this paramter is NULL the function will return the required buffer size.
pDstSize[ in ] The size of the buffer pointed to by pDst (in bytes). [ out ] The number of bytes in pDst that make up the UTF8 string.
pWs[ in ] Pointer to the wide character string to convert.
cCount[ in ] Max number of characters in pWs to convert to UTF8
Returns
SuccessP6R::eOk 
FailureP6R::eFailUnable to convert wide character string into a UTF8 character string.
P6R::eInvalidArgIf pWs or pDstSize is equal to NULL.
P6R::eTooSmallThe buffer pointed to by pDst is not big enough. pDstSize points to the required buffer size.
P6R::eNotInitializedA successful call to initialize was not made before this call.