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

Convert control character codes (i.e., 0x000A, 0x0009, 0x000D) into their character string representation (i.e., '\n', '\t', '\r').

Since the resulting string can be larger than the orginial the output is placed into another buffer. Note that the parameter pDst is NULL then the size of the buffer required is computed and returned.

Parameters
pWs[ in ] Pointer to the string to translate.
pDst[ out ] Pointer to buffer to copy the generated string; can be NULL
pDstSize[ in ] Size of the buffer pointed to by pDst. [ out ] Size of the time string written into pDst.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgEither pWs or pDstSize is NULL.
P6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eNotFoundNo control characters found; so no translation occured.
P6R::eTooSmallThe buffer pointed to by pDst is too small for the resulting string. pDstSize contains the required size.