Expand description
Implementation of Dcts (DcText short) serialization.
Encodes sequences of Document Character (Dc) IDs to canonical Dcts text representation:
- Plain text characters become literal Unicode (except
@which becomes@@). - Short Dcs are formatted as
@{id}@. - Formats are formatted as
@f{id}@. - Unicode escapes outside standard scalar characters are
@u{hex}@. - Local node references (Dc 296 followed by a numeral) are
@L{number}@. - Long Dcs are
@l{id}@.
Structs§
- Dcts
Options - Options for Dcts serialization.
Functions§
- dclist_
to_ dcts - Serializes a sequence of Document Character IDs (
&[u128]) to Dcts format bytes using default options. - dclist_
to_ dcts_ string_ with_ options - Serializes a sequence of Document Character IDs (
&[u128]) to a DctsStringusing the specified formatting options. - dclist_
to_ dcts_ with_ options - Serializes a sequence of Document Character IDs (
&[u128]) to Dcts format bytes using the specified options. - parse_
dcts_ strict_ to_ dc_ chars - Parses strict Dcts text (
&[u8]) into a sequence ofDcChars.