Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISafeString::wcsToUtf8 ( P6CHAR pDest,
P6SIZE dstSize,
const P6WCHAR pSource 
)
pure virtual

Converts a P6WCHAR string to a P6CHAR UTF-8 string.

Parameters
pDest[ in ] A pointer to a buffer in which to place the converted UTF-8 string. If this is NULL, them the amount of space required for the converted string is calculated and returned in dstSize.
dstSize[INOUT] The address of a P6UINT32 which on entry must contain the size in characters of pDest. On exit, the number of characters written to pDest will be returned here.
pSource[ in ] A pointer to the NULL terminated P6WCHAR string to convert.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgdstSize and/or pSource is NULL
P6R::eTooSmallThe converted string would not fit in pDest.
P6R::eFailUnable to convert the string to UTF-8.