Inheritance diagram for TranscoderUtf8Checked:
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) |
Definition at line 227 of file Utf8.d.
|
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(). |
|
Return the encoding name of this transcoder Reimplemented from Transcoder. |
|
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(). |