artefaktur
software engineer &        architecture

 
 
 
 

class AsciiUtfDecoder

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

acdk::locale::AsciiUtfDecoder Class Reference

#include <AsciiUtfEncoding.h>

Inheritance diagram for acdk::locale::AsciiUtfDecoder:

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

Detailed Description

Please refer to acdk::locale::AsciiUtfEncoding.


Public Member Functions

 AsciiUtfDecoder (bool withCEscapes, 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

RString decodeString (IN(RString) str)
int _decode (byte *bytes)

Protected Attributes

bool _withCEscapes

Constructor & Destructor Documentation

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


Member Function Documentation

int acdk::locale::AsciiUtfDecoder::_decode byte bytes  )  [static]
 

virtual RString acdk::locale::AsciiUtfDecoder::decode IN(RString str  )  [inline, virtual]
 

decodes a string from one encoding to another

Implements acdk::locale::Decoder.

RString acdk::locale::AsciiUtfDecoder::decodeString IN(RString str  )  [static]
 

virtual int acdk::locale::AsciiUtfDecoder::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::AsciiUtfDecoder::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.


Member Data Documentation

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

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