Function ucd_parse::parse_many_by_codepoint
source · pub fn parse_many_by_codepoint<P, D>(
ucd_dir: P
) -> Result<BTreeMap<Codepoint, Vec<D>>, Error>
Expand description
Parse a particular file in the UCD into a map from codepoint to all records associated with that codepoint.
This is useful for files that have multiple records for each codepoint.
For example, the NameAliases.txt
file lists multiple aliases for some
codepoints.
The given directory should be the directory to the UCD.