Overview   Class List   Class Hierarchy   Class Members   Functions & Constants   Defines   Header Files  

uima::CodePage2UnicodeConverter Class Reference

List of all members.

Detailed Description

The class CodePage2UnicodeConverter converts all characters in a specified buffer into UNICODE (CCSID: CCSID::EnCCSID_UCS2).

See also:
Unicode2CodePageConverter CodePage2UTF8Converter


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.


Constructor & Destructor Documentation

uima::CodePage2UnicodeConverter::CodePage2UnicodeConverter const char *  crConverterName  ) 
 

Create an instance for a converter from CCSID crclCCSID to CCSID CCSID::EnCCSID_UCS2.

uima::CodePage2UnicodeConverter::~CodePage2UnicodeConverter  ) 
 


Member Function Documentation

size_t uima::CodePage2UnicodeConverter::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 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.


The documentation for this class was generated from the following file:
Generated on Mon Oct 1 16:04:13 2012 for UIMACPP API by  doxygen 1.3.9.1