Package org.basex.util
Class FTToken
java.lang.Object
org.basex.util.FTToken
This class provides mapping tables for converting full-text tokens.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanlod(int cp) Returns true if the specified codepoint is a valid letter, digit, or a combining mark.static byte[]noDiacritics(byte[] token) Returns a token without diacritics.static intnoDiacritics(int cp) Returns a codepoint without diacritics.static booleanws(int ch) Returns true if the specified codepoint is whitespace.
-
Method Details
-
ws
public static boolean ws(int ch) Returns true if the specified codepoint is whitespace.- Parameters:
ch- codepoint to be tested- Returns:
- result of check
-
lod
public static boolean lod(int cp) Returns true if the specified codepoint is a valid letter, digit, or a combining mark.- Parameters:
cp- codepoint to be tested- Returns:
- result of check
-
noDiacritics
public static byte[] noDiacritics(byte[] token) Returns a token without diacritics.- Parameters:
token- token to be normalized- Returns:
- resulting token
-
noDiacritics
public static int noDiacritics(int cp) Returns a codepoint without diacritics.- Parameters:
cp- codepoint to be normalized- Returns:
- resulting character
-