dclist_to_dcarray

Function dclist_to_dcarray 

Source
pub fn dclist_to_dcarray(dclist: &[u128]) -> Result<ConversionOutput<Vec<u32>>>
Expand description

Converts a DcList (&[u128]) to an EITE DcArray (short Dcs, Vec<u32>).

Directly represents Document Characters in range 1_114_112..=2_228_223 ([SHORT_DC_REGION_START]..=[SHORT_DC_REGION_END], short IDs 0..=1_114_111), with escaping for Dc 308 ([255, 308]) and Dc 255 ([255, 255]). All other long Dcs (<= 0x10_FFFF Unicode codepoints and > 2_228_223 out-of-range IDs) are embedded via Dc 308 ([308, ...u128_to_dc_number_short(dcid)...]).