unicode

Branch: main

Switch branches or tags

Branch: main
Go to file t

413 files indexed

History
Code

tools/ucd/case_context.mbt
1///|2/// Emit the private properties used by the default casing contexts. They3/// come from DerivedCoreProperties.txt rather than approximations based on4/// case mappings: some cased characters map to themselves, and a character5/// can be both Cased and Case_Ignorable.6pub fn emit_case_context(content : String) -> String raise {7  let out = @emitter.Emitter::new()8  out.write_file_header(9    "Cased and Case_Ignorable lookup data", "DerivedCoreProperties.txt",10  )11  for property in ["Cased", "Case_Ignorable"] {12    write_binary_property_trie(13      out,14      property~,15      exported=false,16      parse_property_ranges(content, property),17    )18  }19  out.finish()20}21