2005/5/9

     
 

class AsciiEncoding

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

acdk::locale::AsciiEncoding Class Reference

#include <AsciiEncoding.h>

Inheritance diagram for acdk::locale::AsciiEncoding:

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

Detailed Description

Class to encode/decode strings for US-ASCII.


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 getAsciiEncoding ()
 see AsciiEncoding

REncoding getAsciiEncoding (IN(RString))
RString decodeToString (const byte *buffer, int len=-1)
 just force a byte buffer to be a ascii string


Protected Member Functions

 AsciiEncoding ()


Constructor & Destructor Documentation

acdk::locale::AsciiEncoding::AsciiEncoding  )  [protected]
 


Member Function Documentation

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

return the average bytes used to encode one character

Implements acdk::locale::Encoding.

RString acdk::locale::AsciiEncoding::decodeToString const byte buffer,
int  len = -1
[static]
 

just force a byte buffer to be a ascii string

REncoding acdk::locale::AsciiEncoding::getAsciiEncoding IN(RString  )  [inline, static]
 

REncoding acdk::locale::AsciiEncoding::getAsciiEncoding  )  [static]
 

see AsciiEncoding

Reimplemented from acdk::locale::Encoding.

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

Implements acdk::locale::Encoding.

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

Implements acdk::locale::Encoding.

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

return the maximum count of bytes use to encode one character

Implements acdk::locale::Encoding.