Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class WordCharacters
- Object
- 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.
Methods
public static boolean isMark(int codePoint) | Whether a code point is a combining mark (Unicode category M). |
public static boolean isWordCharacter(int codePoint) | Whether a code point belongs to a word: a letter, a mark, a decimal digit or _. |
Inherited methods
Method details
isMark
public static boolean isMark(int codePoint)Whether a code point is a combining mark (Unicode category M).
Parameters
codePointint- 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
codePointint- the code point
Returns
true for a word character