unicode

Branch: main

Switch branches or tags

Branch: main
Go to file t

413 files indexed

History
Code

tools/ucd/mark.mbt
1///|2/// Emit the bitset trie of General_Category group M (Mn, Mc, and Me).3pub fn emit_marks(data : UnicodeData) -> String raise {4  // Mn, Mc, and Me are ordinals 5 to 7.5  let ranges = ranges_where(data.general_categories, gc => gc >= 5 && gc <= 7)6  let out = @emitter.Emitter::new()7  out.write_file_header(8    "Mark (General_Category group M) lookup data", "UnicodeData.txt",9  )10  write_binary_property_trie(11    out,12    property="Mark",13    lookup_doc="Check whether a character is a mark (General_Category Mn, Mc, or Me)",14    ranges,15  )16  out.finish()17}18