Class WordCharacters
Unicode 16.0.0 letters, marks, decimal digits and underscore. Generated by scripts/generate-word-ranges.py; do not edit the ranges manually. The core compiles against CLDC, whose Character API lacks Unicode categories. These ranges keep classification consistent across ports. This is not dictionary segmentation or the UAX 29 word boundary algorithm.
Every editor uses this one definition of a word character -- word movement and double-tap
selection in EditorView and the word processing DocumentView, and the tokens the
spell checker checks -- so they agree on where a word ends on every port.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisMark(int codePoint) Whether a code point is a combining mark (Unicode category M).static booleanisWordCharacter(int codePoint) Whether a code point belongs to a word: a letter, a mark, a decimal digit or_.
-
Method Details
-
isMark
public static boolean isMark(int codePoint) Whether a code point is a combining mark (Unicode category M).
Parameters
codePoint: the code point
Returns
true for a mark
-
isWordCharacter
public static boolean isWordCharacter(int codePoint) Whether a code point belongs to a word: a letter, a mark, a decimal digit or
_.Parameters
codePoint: the code point
Returns
true for a word character
-