IsWordCharacter
function · ui · orchestration
- Address
0x49b940· 42 bytes, up to0x49b969- Meaning
- Returns whether a code point is a letter, digit, apostrophe or above 0xff
- Confidence
- verified, proof one
- Finding
- ui/chatlanguage#splitting-a-line-into-words
Finding: Splitting a line into words in ui: languages in chat
The line is read as UTF-8 (0x41aab0) and cut into runs of word characters and runs of anything else.
A code point is a word character when it is A to Z, a to z, 0xc0 to 0xdd except 0xd7, 0xdf, or
0xe0 to 0xff except 0xf7 (0x6c9c60), an ASCII digit (0x6c9c30), ', or above 0xff; the last test also admits the value that marks a
malformed byte. A run of other characters is written as one space on the chat path; with keepPunct it
is copied unchanged, and with keepAngle a span from < to > is copied unchanged.
The derivation is in the doc.
Callers 1
Callees 2
- IsAsciiDigit unassigned
- IsLatin1Letter unassigned
Calls and jumps by a bare address, from tables/calls.tsv.