2005/5/9

     
 

class UCS2Encoding

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::locale::UCS2Encoding Class Reference

#include <UCS2Encoding.h>

Inheritance diagram for acdk::locale::UCS2Encoding:

acdk::locale::Encoding acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

encode/decode 2 bytes unicode character with given endian order from/to String


Public Member Functions

float averageBytesPerChar ()
 return the average bytes used to encode one character

float maxBytesPerChar ()
 return the maximum count of bytes use to encode one character

virtual REncoder getEncoder (CodingErrorAction onMalformed=ReportCodingError, CodingErrorAction onUnmappable=ReplaceCodingError)
virtual RDecoder getDecoder (CodingErrorAction onMalformed=ReportCodingError, CodingErrorAction onUnmappable=ReplaceCodingError)

Static Public Member Functions

REncoding getUCS2NativeEncoding ()
 return encoding with native endianess

REncoding getUCS2LeEncoding ()
 return encoding with little endianess

REncoding getUCS2BeEncoding ()
 return encoding with big endianess

REncoding getUCS2Encoding (IN(RString) str)
 understands UCS2, UCS2-LE, UCS2-BE


Protected Member Functions

 UCS2Encoding (IN(RString) name, UCSEndianess endian)

Protected Attributes

UCSEndianess _endian


Constructor & Destructor Documentation

acdk::locale::UCS2Encoding::UCS2Encoding IN(RString name,
UCSEndianess  endian
[protected]
 


Member Function Documentation

float acdk::locale::UCS2Encoding::averageBytesPerChar  )  [inline, virtual]
 

return the average bytes used to encode one character

Implements acdk::locale::Encoding.

virtual RDecoder acdk::locale::UCS2Encoding::getDecoder CodingErrorAction  onMalformed = ReportCodingError,
CodingErrorAction  onUnmappable = ReplaceCodingError
[virtual]
 

Implements acdk::locale::Encoding.

virtual REncoder acdk::locale::UCS2Encoding::getEncoder CodingErrorAction  onMalformed = ReportCodingError,
CodingErrorAction  onUnmappable = ReplaceCodingError
[virtual]
 

Implements acdk::locale::Encoding.

REncoding acdk::locale::UCS2Encoding::getUCS2BeEncoding  )  [static]
 

return encoding with big endianess

REncoding acdk::locale::UCS2Encoding::getUCS2Encoding IN(RString str  )  [static]
 

understands UCS2, UCS2-LE, UCS2-BE

REncoding acdk::locale::UCS2Encoding::getUCS2LeEncoding  )  [static]
 

return encoding with little endianess

REncoding acdk::locale::UCS2Encoding::getUCS2NativeEncoding  )  [static]
 

return encoding with native endianess

float acdk::locale::UCS2Encoding::maxBytesPerChar  )  [inline, virtual]
 

return the maximum count of bytes use to encode one character

Implements acdk::locale::Encoding.


Member Data Documentation

UCSEndianess acdk::locale::UCS2Encoding::_endian [protected]