artefaktur
software engineer &        architecture

 
 
 
 

class AsciiUtfEncoding

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

acdk::locale::AsciiUtfEncoding Class Reference

#include <AsciiUtfEncoding.h>

Inheritance diagram for acdk::locale::AsciiUtfEncoding:

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

Detailed Description

Encodes/Decodes ASCII with UTF escapes.

There are 2 variants:

This implements the Java Literal encoding, which is also be used in properties files

Used in ASCII source code to decode UCS2 streams


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 getAsciiUtfEncoding ()
REncoding getAsciiUtfCEscapeEncoding ()
REncoding getAsciiUtfCEscapeEncoding (IN(RString))
REncoding getAsciiUtfEncoding (IN(RString))

Protected Member Functions

 AsciiUtfEncoding (bool withCEscapes=true)
 if withCEscapes = true also
are encodes as \n


Protected Attributes

bool _withCEscapes

Constructor & Destructor Documentation

acdk::locale::AsciiUtfEncoding::AsciiUtfEncoding bool  withCEscapes = true  )  [protected]
 

if withCEscapes = true also
are encodes as \n


Member Function Documentation

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

return the average bytes used to encode one character

Implements acdk::locale::Encoding.

REncoding acdk::locale::AsciiUtfEncoding::getAsciiUtfCEscapeEncoding IN(RString  )  [inline, static]
 

REncoding acdk::locale::AsciiUtfEncoding::getAsciiUtfCEscapeEncoding  )  [static]
 

REncoding acdk::locale::AsciiUtfEncoding::getAsciiUtfEncoding IN(RString  )  [inline, static]
 

REncoding acdk::locale::AsciiUtfEncoding::getAsciiUtfEncoding  )  [static]
 

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

Implements acdk::locale::Encoding.

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

Implements acdk::locale::Encoding.

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

return the maximum count of bytes use to encode one character

Implements acdk::locale::Encoding.


Member Data Documentation

bool acdk::locale::AsciiUtfEncoding::_withCEscapes [protected]
 

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