Skip to main content

Module decomp

Module decomp 

Source
Expand description

Owned character-decomposition data (char → Decomp) and a parser for data/seed.txt.

The runtime encoder works against the borrowed crate::codec::DecompRef. Decomp is the convenient owned counterpart used by tools and tests; it exposes as_ref() to feed the codec.

Structs§

Decomp
Owned counterpart of DecompRef. Use Decomp::as_ref to feed the runtime encoder; the encoder itself only ever sees the borrowed form.

Functions§

embedded_seed
Parse the seed bundled into the binary at compile time. Equivalent to parse_seed(include_str!("data/seed.txt")).
parse_seed
Parse a seed-format TSV string into (char, Decomp) pairs.