Expand description
dcBasenb encoding/decoding: pack arbitrary Dcs into Unicode PUA.
Constants§
- DC_
BASENB_ EMBEDDED_ END - DC_
BASENB_ EMBEDDED_ END_ UUID_ BYTES - End UUID bytes for embedded dcBasenb: 60bc936b-f10f-4f50-ab65-3778084060e2
- DC_
BASENB_ EMBEDDED_ START - DC_
BASENB_ EMBEDDED_ START_ BYTES - Start UUID bytes for embedded dcBasenb: e82eef60-19bc-4a00-a44a-763a3445c16f In StageL/JS, this was called getArmoredUtf8EmbeddedStartUuid. I think it’s specific to dcBasenb, though, not any basenb embedded within UTF-8.
Functions§
- dca_
from_ dcbnb_ fragment_ utf8 - Decode Dcs from a dcBasenb fragment (without enclosing UUIDs) from UTF-8.
- dca_
from_ dcbnb_ utf8 - Decode Dcs from a dcBasenb run (with enclosing UUIDs) from UTF-8.
- dca_
to_ dcbnb_ fragment_ utf8 - Encode Dcs to a dcBasenb fragment (without enclosing UUIDs) UTF-8.
- dca_
to_ dcbnb_ utf8 - Encode Dcs to a dcBasenb run (with enclosing UUIDs) in UTF-8.
- dcbnb_
get_ first_ char - Return the first “character” of a dcbnb UTF-8 byte slice, without doing any conversion. (?? The implementation actually appears to extract a whole dcbnb run up until the next non-dcbnb char. Maybe just a weird function name.)
- dcbnb_
get_ last_ char - Return the last “character” (run of base-nb digits from the right, including at most one distinct remainder char) of a dcbnb UTF-8 byte slice, in the same packed form.