unicode

Branch: main

Switch branches or tags

Branch: main
Go to file t

413 files indexed

History
Code

ucd/punctuation.mbt
1///|2/// Check whether a character is punctuation.3///4/// Punctuation is the General_Category group `P`, covering the connector,5/// dash, open, close, initial, final, and other punctuation categories6/// (Pc, Pd, Ps, Pe, Pi, Pf, and Po). Symbols such as `$` (Sc) and `+` (Sm)7/// are not punctuation.8///9/// The predicate uses its own compact table instead of the General_Category10/// trie, so code that only tests punctuation does not link the whole category11/// table.12pub fn is_punctuation(c : Char) -> Bool {13  @punctuation.is_punctuation(c)14}15