2005/5/9

     
 

class CEscapeEncoding

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

acdk::locale::CEscapeEncoding Class Reference

#include <CEscapeEncoding.h>

Inheritance diagram for acdk::locale::CEscapeEncoding:

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

Detailed Description

implements encoding C literals like \n for newline Only ASCII charactes are allowed


Public Member Functions

 CEscapeEncoding ()
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)
virtual int getMaxByteCount (int charcount)
virtual int getMaxCharCount (int bytecount)
virtual int encode (const ucchar *begin, const ucchar *end, byte *ts, byte *te, bool flush)
virtual int getByteCount (const ucchar *sb, const ucchar *se, bool flush)
virtual int decode (const byte *sb, const byte *se, ucchar *tb, ucchar *te)
virtual int getCharCount (const byte *sb, const byte *se)

Static Public Member Functions

REncoding getCEscapeEncoding (IN(RString))

Static Public Attributes

CEscapeEncoding _encoder


Constructor & Destructor Documentation

acdk::locale::CEscapeEncoding::CEscapeEncoding  ) 
 


Member Function Documentation

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

return the average bytes used to encode one character

Implements acdk::locale::Encoding.

virtual int acdk::locale::CEscapeEncoding::decode const byte sb,
const byte se,
ucchar tb,
ucchar te
[virtual]
 

virtual int acdk::locale::CEscapeEncoding::encode const ucchar begin,
const ucchar end,
byte ts,
byte te,
bool  flush
[virtual]
 

virtual int acdk::locale::CEscapeEncoding::getByteCount const ucchar sb,
const ucchar se,
bool  flush
[virtual]
 

REncoding acdk::locale::CEscapeEncoding::getCEscapeEncoding IN(RString  )  [inline, static]
 

virtual int acdk::locale::CEscapeEncoding::getCharCount const byte sb,
const byte se
[virtual]
 

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

Implements acdk::locale::Encoding.

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

Implements acdk::locale::Encoding.

virtual int acdk::locale::CEscapeEncoding::getMaxByteCount int  charcount  )  [virtual]
 

virtual int acdk::locale::CEscapeEncoding::getMaxCharCount int  bytecount  )  [virtual]
 

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

return the maximum count of bytes use to encode one character

Implements acdk::locale::Encoding.


Member Data Documentation

CEscapeEncoding acdk::locale::CEscapeEncoding::_encoder [static]