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

Locale independent conversion from a UTF8 multibyte string to wide 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 wide 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 wide characters. [ out ] The number of bytes in pSrc that made up the output wide character.
pSrc[ in ] Pointer to the UTF8 string to convert.
Returns
SuccessP6R::eOk 
FailureP6R::eFailUnable to convert UTF8 string into a wide character string.
P6R::eInvalidArgIf pSrc 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.