Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Transcoder Class Reference

Inheritance diagram for Transcoder:

TranscoderIso8859_1 TranscoderUtf8 TranscoderUtf8Checked List of all members.

Public Member Functions

char[] encode (dchar[] input, char[] output, out uint consumed)
dchar[] decode (char[] input, dchar[] output, out uint consumed)
char[] toString ()

Protected Member Functions

void fault (char[] msg)

Member Function Documentation

char [] encode dchar[]  input,
char[]  output,
out uint  consumed
 

Convert the input into the output, respecting the boundaries of the provided arrays. Returns a valid slice of the output, along with the number of items consumed from the input.

Reimplemented in TranscoderIso8859_1, and TranscoderUtf8.

dchar [] decode char[]  input,
dchar[]  output,
out uint  consumed
 

Convert the input into the output, respecting the boundaries of the provided arrays. Returns a valid slice of the output, along with the number of items consumed from the input.

Reimplemented in TranscoderIso8859_1, TranscoderUtf8, and TranscoderUtf8Checked.

char [] toString  ) 
 

Return the encoding name of this transcoder

Reimplemented in TranscoderIso8859_1, and TranscoderUtf8.

void fault char[]  msg  )  [inline, protected]
 

overridable exception thrower

Definition at line 78 of file Transcoder.d.

References Exception.

Referenced by TranscoderUtf8Checked::decode(), TranscoderUtf8::encode(), and TranscoderIso8859_1::encode().


The documentation for this class was generated from the following file:
Generated on Sun Oct 24 22:31:32 2004 for Mango by doxygen 1.3.6