public class MultiCharacterCaseFolding extends Object
| Constructor and Description |
|---|
MultiCharacterCaseFolding() |
| Modifier and Type | Method and Description |
|---|---|
static void |
caseClosure(CaseFoldData.CaseFoldAlgorithm algorithm,
CodePointSetAccumulator charClass,
CodePointSetAccumulator tmp,
BiPredicate<Integer,Integer> filter,
CodePointSet allowedCodePoints)
This method modifies
charClass to contains its closure on case mapping. |
static List<org.graalvm.collections.Pair<Integer,int[]>> |
caseClosureMultiCodePoint(CaseFoldData.CaseFoldAlgorithm algorithm,
CodePointSetAccumulator charClass)
Finds any characters in
charClass that have multi-codepoint expansions. |
static int[] |
caseFold(CaseFoldData.CaseFoldAlgorithm algorithm,
int codePoint) |
static void |
caseFoldUnfoldString(CaseFoldData.CaseFoldAlgorithm algorithm,
int[] codepoints,
CodePointSet encodingRange,
boolean dropAsciiOnStart,
RegexASTBuilder astBuilder)
Appends to the
astBuilder a matcher that matches all case variants of the input
string. |
static void |
caseFoldUnfoldString(CaseFoldData.CaseFoldAlgorithm algorithm,
int[] codepoints,
CodePointSet encodingRange,
RegexASTBuilder astBuilder) |
static boolean |
equalsIgnoreCase(CaseFoldData.CaseFoldAlgorithm algorithm,
int codePointA,
int codePointB) |
public static void caseFoldUnfoldString(CaseFoldData.CaseFoldAlgorithm algorithm, int[] codepoints, CodePointSet encodingRange, RegexASTBuilder astBuilder)
public static void caseFoldUnfoldString(CaseFoldData.CaseFoldAlgorithm algorithm, int[] codepoints, CodePointSet encodingRange, boolean dropAsciiOnStart, RegexASTBuilder astBuilder)
astBuilder a matcher that matches all case variants of the input
string.codepoints - the input string as an array of Unicode codepointsencodingRange - the range of characters that we should limit ourselves todropAsciiOnStart - whether we should forbid ASCII characters on the first positions of
the variantsastBuilder - where to append the matcherpublic static int[] caseFold(CaseFoldData.CaseFoldAlgorithm algorithm, int codePoint)
public static void caseClosure(CaseFoldData.CaseFoldAlgorithm algorithm, CodePointSetAccumulator charClass, CodePointSetAccumulator tmp, BiPredicate<Integer,Integer> filter, CodePointSet allowedCodePoints)
charClass to contains its closure on case mapping.public static List<org.graalvm.collections.Pair<Integer,int[]>> caseClosureMultiCodePoint(CaseFoldData.CaseFoldAlgorithm algorithm, CodePointSetAccumulator charClass)
charClass that have multi-codepoint expansions.public static boolean equalsIgnoreCase(CaseFoldData.CaseFoldAlgorithm algorithm, int codePointA, int codePointB)