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

TranscoderUtf8Checked Class Reference

Inheritance diagram for TranscoderUtf8Checked:

TranscoderUtf8 List of all members.

Public Member Functions

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

Private Member Functions

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

Detailed Description

Fast UTF-8 to Unicode transcoder. This adds some validation to the decoding process.

Definition at line 227 of file Utf8.d.


Member Function Documentation

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

Check the incoming stream for validity while decoding. This does not perform the full range of validations, but catches a large percentage of content errors due to the block-nature of these methods. That is; those cases where an error is not spotted will typically lead to an error within the following segment. Errors not explicitly looked for are those relating to the five & six byte utf-8 combinations.

Currently executes at about 2x of the unchecked version.

Reimplemented from TranscoderUtf8.

Definition at line 243 of file Utf8.d.

References Transcoder::fault().

char [] toString  )  [inline, inherited]
 

Return the encoding name of this transcoder

Reimplemented from Transcoder.

Definition at line 76 of file Utf8.d.

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

Encode UTF-8 up to a maximum of 4 bytes long (five & six byte variations are not supported). Throws an exception where the input dchar is greater than 0x10ffff.

Reimplemented from Transcoder.

Definition at line 89 of file Utf8.d.

References Transcoder::fault().


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