Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6II18n::wcrtomb ( P6CHAR pDst,
P6WCHAR  pSrc,
mbstate_t *  pMbs,
P6UINT32 pResultSize 
)
pure virtual

Convert a wide-character code to a (multibyte) character (restartable)

If pMbs is NULL, then this function uses its own internal mbstate_t object, which is initialised at program startup to the initial conversion state.

Parameters
pDst[ out ] Pointer to the buffer to write the converted multibyte character.
pSrc[ in ] Pointer to the wide character to convert.
pMbs[ in ] Pointer to object set up by a call to mbsinit().
pResultSize[ out ] Returns the number of bytes written into pDst.
Returns
SuccessP6R::eOk 
FailureP6R::eFailUnable to perform the conversion.
P6R::eNotInitializedA successful call to initialize was not made before this call.