CodePage2UnicodeConverter
converts all characters in a specified buffer into UNICODE (CCSID: CCSID::EnCCSID_UCS2).
Public Member Functions | |
size_t | getMaximumLength (const char *cpacSource, size_t uiSourceLength) const |
the maximum size in bytes required when converted to Unicode using this code page converter | |
Constructors | |
CodePage2UnicodeConverter (const char *crConverterName) | |
Create an instance for a converter from CCSID crclCCSID to CCSID CCSID::EnCCSID_UCS2. | |
~CodePage2UnicodeConverter () | |
Miscellaneous | |
size_t | convertBytes (UChar *pclTarget, size_t uiTargetMaxSize, const char *cpacSource, size_t uiSourceSize) |
From this CCSID, convert the specified source buffer cpacSource with size uiSourceSize in bytes, to target buffer pclTarget with size uiTargetMaxSize in bytes to the UNICODE CCSID (CCSID::EnCCSID_UCS2), and return the number of bytes converted. | |
size_t | convertToUnicode (UChar *pclTarget, size_t uiTargetMaxLength, const char *cpacSource, size_t uiSourceLength) |
Using this code page converter, convert the specified source buffer cpacSource with size uiSourceSize in bytes, to target buffer pclTarget with size uiTargetMaxSize in bytes to UNICODE and return the number of unicode characters converted. |
|
Create an instance for a converter from CCSID
|
|
|
|
From this CCSID, convert the specified source buffer
|
|
the maximum size in bytes required when converted to Unicode using this code page converter
|
|
Using this code page converter, convert the specified source buffer
|