software engineer &        architecture


class UCS2Encoder

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

acdk::locale::UCS2Encoder Class Reference

#include <UCS2Encoding.h>

Inheritance diagram for acdk::locale::UCS2Encoder:

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

Detailed Description

Encode String to 2 bytes unicode character with given endian order.

Public Member Functions

 UCS2Encoder (IN(REncoding) encoding, UCSEndianess endian=NativeEndian, CodingErrorAction onMalformed=ReportCodingError, CodingErrorAction onUnmappable=ReplaceCodingError)
UCSEndianess getEndian ()
void setEndian (UCSEndianess endian)
virtual void encode (IN(acdk::io::RWriter) out, IN(RString) str, int stopOn=-1)
virtual void encode (IN(acdk::io::RWriter) out, ucchar ch)
virtual RString encode (IN(RString) str)
 encode the current string into this encoding

Private Attributes

UCSEndianess _endian

Constructor & Destructor Documentation

acdk::locale::UCS2Encoder::UCS2Encoder IN(REncoding encoding,
UCSEndianess  endian = NativeEndian,
CodingErrorAction  onMalformed = ReportCodingError,
CodingErrorAction  onUnmappable = ReplaceCodingError

Member Function Documentation

virtual RString acdk::locale::UCS2Encoder::encode IN(RString str  )  [virtual]

encode the current string into this encoding

Implements acdk::locale::Encoder.

virtual void acdk::locale::UCS2Encoder::encode IN(acdk::io::RWriter out,
ucchar  ch

virtual void acdk::locale::UCS2Encoder::encode IN(acdk::io::RWriter out,
IN(RString str,
int  stopOn = -1

target writer
the string to encode
stopOn -1 = until end of string -2 = until internal 0 terminating character (normally '' >= 0 character number to write

Implements acdk::locale::Encoder.

UCSEndianess acdk::locale::UCS2Encoder::getEndian  )  [inline]

void acdk::locale::UCS2Encoder::setEndian UCSEndianess  endian  )  [inline]

Member Data Documentation

UCSEndianess acdk::locale::UCS2Encoder::_endian [private]

Last modified 2005-05-08 18:32 by SYSTEM By Artefaktur, Ing. Bureau Kommer