2005/5/9

     
 

class CEscapeEncoder

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

acdk::locale::CEscapeEncoder Class Reference

#include <CEscapeEncoding.h>

Inheritance diagram for acdk::locale::CEscapeEncoder:

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

Detailed Description

Please refer to acdk::util::CEscapeEncoding.


Public Member Functions

 CEscapeEncoder (IN(REncoding) encoding, CodingErrorAction onMalformed=ReportCodingError, CodingErrorAction onUnmappable=ReplaceCodingError)
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


Static Public Member Functions

int encodeChar (ucchar c, byte *buffer)
 encode a char.


Constructor & Destructor Documentation

acdk::locale::CEscapeEncoder::CEscapeEncoder IN(REncoding encoding,
CodingErrorAction  onMalformed = ReportCodingError,
CodingErrorAction  onUnmappable = ReplaceCodingError
[inline]
 


Member Function Documentation

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

encode the current string into this encoding

Implements acdk::locale::Encoder.

virtual void acdk::locale::CEscapeEncoder::encode IN(acdk::io::RWriter out,
ucchar  ch
[virtual]
 

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

Parameters:
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.

int acdk::locale::CEscapeEncoder::encodeChar ucchar  c,
byte buffer
[static]
 

encode a char.

Parameters:
c character to encode
buffer buffer to write in. need at least 2 bytes
Returns:
return number of bytes needed