Module utf8

Module utf8 

Source
Expand description

This implements conversion to and from UTF-8, as well as to and from the dcBasenb format (which is implemented as a private-use extension of UTF-8).

Structs§

UTF8FormatSettings

Functions§

dca_from_utf8
Decode UTF-8 bytes to an internal Dc array, honoring dcBasenb embedding. Translation of original dcaFromUtf8. Should return an Ok() result for all inputs; Err() should only occur for internal errors (= bugs).
dca_to_utf8
Convert an internal Dc array to UTF-8 bytes, optionally embedding unmappable Dcs inside dcBasenb armored regions.
utf8_variant_settings
Retrieve enabled UTF-8 variant settings for a direction (“in” / “out”)