|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::locale::Encoder Class Reference#include <Encoder.h>
Inheritance diagram for acdk::locale::Encoder:
List of all members.
Detailed Description
Base interface to encode a character into a byte sequence.
Constructor & Destructor Documentation
|
Please refer to REncoder getEncoder(CodingErrorAction onMalformed = ReportCodingError, CodingErrorAction onUnmappable = ReplaceCodingError).
|
Member Function Documentation
int acdk::locale::Encoder::bytesWritten |
( |
|
) |
[inline] |
|
|
return the bytes written by this Encoder
|
virtual RString acdk::locale::Encoder::encode |
( |
IN(RString) |
str |
) |
[pure virtual] |
|
virtual void acdk::locale::Encoder::encode |
( |
IN(acdk::io::RWriter) |
out, |
|
|
IN(RString) |
str, |
|
|
int |
stopOn = -1 |
|
) |
[pure virtual] |
|
REncoding acdk::locale::Encoder::getEncoding |
( |
|
) |
[inline, virtual] |
|
|
return the encoding for this Encoder
|
RbyteArray acdk::locale::Encoder::getEncodingReplacement |
( |
|
) |
[inline] |
|
|
return the bytes which should be written in case of unmappable characters The returned bytes must be valid encodable/decodable
|
|
in case an Encoder cannot map an character this method will be called, which performces the CodingErrorAction
|
void acdk::locale::Encoder::onMalformedInput |
( |
CodingErrorAction |
newAction |
) |
[inline] |
|
void acdk::locale::Encoder::onUnmappableCharacter |
( |
CodingErrorAction |
newAction |
) |
[inline] |
|
virtual void acdk::locale::Encoder::reset |
( |
|
) |
[inline, virtual] |
|
void acdk::locale::Encoder::setEncodingReplacement |
( |
IN(RbyteArray) |
replacement |
) |
[inline] |
|
|
set the replace byte sequence for unmappable characters
|
Member Data Documentation
|
|