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 | |
TODO: fix implementation of convertBytes is probably wrong.
used in taf_doc_buffer.cpp and taf_htmlparser.cpp to support test suite | |
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. |
uima::CodePage2UnicodeConverter::CodePage2UnicodeConverter | ( | const char * | crConverterName | ) |
uima::CodePage2UnicodeConverter::~CodePage2UnicodeConverter | ( | ) |
size_t uima::CodePage2UnicodeConverter::convertBytes | ( | UChar * | pclTarget, | |
size_t | uiTargetMaxSize, | |||
const char * | cpacSource, | |||
size_t | uiSourceSize | |||
) |
size_t uima::CodePage2UnicodeConverter::getMaximumLength | ( | const char * | cpacSource, | |
size_t | uiSourceLength | |||
) | const |
the maximum size in bytes required when converted to Unicode using this code page converter
size_t uima::CodePage2UnicodeConverter::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.