Class ExtendedPictographic
java.lang.Object
opennlp.tools.tokenize.uax29.ExtendedPictographic
Checks the Unicode
Extended_Pictographic property of a code point.
This is the one extra property the word boundary algorithm needs (rule WB3c), to keep emoji
zero-width-joiner sequences together. The data is loaded on first use from the bundled
ExtendedPictographic.txt resource, the Extended_Pictographic lines extracted
from the Unicode 18.0 emoji-data.txt, and stored in a BitSet, so membership is
an O(1) bit check.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanis(int codePoint) Returns whether a code point has theExtended_Pictographicproperty.
-
Method Details
-
is
public static boolean is(int codePoint) Returns whether a code point has theExtended_Pictographicproperty.- Parameters:
codePoint- The code point. Values outside[0, U+10FFFF]returnfalse.- Returns:
- whether a code point has the
Extended_Pictographicproperty
-