artefaktur
software engineer &        architecture

 
 
 
 

class CEscapeDecoder

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

acdk::locale::CEscapeDecoder Class Reference

#include <CEscapeEncoding.h>

Inheritance diagram for acdk::locale::CEscapeDecoder:

acdk::locale::Decoder 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

 CEscapeDecoder (IN(REncoding) encoding, CodingErrorAction onMalformed=ReportCodingError, CodingErrorAction onUnmappable=ReplaceCodingError)
virtual int decodeToChar (IN(acdk::io::RReader) in)
 decodes one char

virtual RString decodeToString (IN(acdk::io::RReader) in, int stopOn=-1)
 decodes from a byte stream to a string.

virtual RString decode (IN(RString) str)
 decodes a string from one encoding to another


Static Public Member Functions

int decodeEscapeByte (byte b)
 decodes a byte escaped via leading '\'


Constructor & Destructor Documentation

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


Member Function Documentation

virtual RString acdk::locale::CEscapeDecoder::decode IN(RString str  )  [virtual]
 

decodes a string from one encoding to another

Implements acdk::locale::Decoder.

int acdk::locale::CEscapeDecoder::decodeEscapeByte byte  b  )  [static]
 

decodes a byte escaped via leading '\'

Returns:
a ucchar

virtual int acdk::locale::CEscapeDecoder::decodeToChar IN(acdk::io::RReader in  )  [virtual]
 

decodes one char

Returns:
return ucchar or -1 if end of file, -2 if input is not mappable

Implements acdk::locale::Decoder.

virtual RString acdk::locale::CEscapeDecoder::decodeToString IN(acdk::io::RReader in,
int  stopOn = -1
[virtual]
 

decodes from a byte stream to a string.

In normal cases the String contains a Ascii encoding if only 7bit character are in the byte stream.

Parameters:
in reader to read from
stopOn -1 = until end of string -2 = until internal 0 terminating character (normally '' >= 0 character number to write

Implements acdk::locale::Decoder.

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