is_combining_mark
Mojo function 🡭
is_combining_mark
fn def is_combining_mark(cp: Int) -> BoolWhether the codepoint is a non-spacing mark (UAX #9’s NSM).
Exact for every codepoint, read from the generated table rather than a hand-kept list of ranges: a mark that reordering separates from its base renders on the wrong letter, and the scripts that would show it are not ones this package can enumerate with any confidence.
Args:
- cp (
Int): The codepoint to test.
Returns:
Bool: True if the codepoint is a non-spacing mark.