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

Convert a wide-character string to a character string (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 resulting character string.
dstSize[ in ] Maximum number of characters to place in pDst.
pSrc[ in ] Pointer to a pointer to a wide-character string to convert. If the conversion is successful, then this pointer is modified to the address just past the last character converted (if any).
pMbs[ in ] Pointer to object set up by a call to mbsinit().
pResultSize[ out ] If function is successful, then this parameter is assigned the number of bytes successfully converted, not including the terminating null byte.
Returns
SuccessP6R::eOk 
FailureP6R::eFailUnable to perform the conversion.
P6R::eNotInitializedA successful call to initialize was not made before this call.