pub fn dcts_to_dcstring(document: &[u8]) -> Result<ConversionOutput<DcString>>Expand description
Parses a Dcts document (&[u8]) directly into a DcString.
Plain text characters become their corresponding Unicode codepoints (0..=0x10FFFF).
Tokens enclosed in @...@ are parsed according to their prefix:
@@: codepoint 64 (@)@<number>@: short Dc ID (e.g.@123@->SHORT_DC_REGION_START + 123)@l<number>@: long Dc ID (e.g.@l123@->123)@L<number>@: local node reference (short Dc 296 + Dc number<number>)@u<hex>@: Unicode codepoint (e.g.@u123a@->U+123A)@f<number>@: Format ID (e.g.@f123@->FORMAT_REGION_START + 123)
ยงErrors
Returns an error if the document cannot be parsed into a DcString.