Class CaseFoldData.CaseFoldEquivalenceTable
java.lang.Object
com.oracle.truffle.regex.tregex.parser.CaseFoldData.CaseFoldEquivalenceTable
- All Implemented Interfaces:
CharacterSet,SortedListOfRanges
- Enclosing class:
CaseFoldData
public static final class CaseFoldData.CaseFoldEquivalenceTable
extends Object
implements SortedListOfRanges
Maps characters to their respective set of equivalent characters in case-insensitive context,
e.g.
A -> [Aa].-
Method Summary
Modifier and TypeMethodDescriptionvoidappendRangesTo(RangesBuffer buffer, int startIndex, int endIndex) Append all ranges fromstartIndex(inclusive) toendIndex(exclusive) to the givenbuffer.intgetHi(int i) Returns the inclusive upper bound of the range stored at indexi.intgetLo(int i) Returns the inclusive lower bound of the range stored at indexi.intsize()Returns the number of disjoint ranges contained in this list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oracle.truffle.regex.charset.SortedListOfRanges
addRangeTo, adjacent, adjacent, binarySearch, binarySearchExactMatch, binarySearchExactMatch, binarySearchGetFirstIntersecting, binarySearchGetFirstIntersecting, binarySearchGetFirstIntersectingOrAdjacent, binarySearchGetFirstIntersectingOrAdjacent, binarySearchNoIntersectingFound, containedBy, contains, contains, contains, contains, defaultToString, equal, equal, equalsListOfRanges, getMax, getMin, intersects, intersects, intersects, inverseGetMax, inverseGetMin, inverseRangesToString, inverseValueCount, isEmpty, isSingle, leftOf, leftOf, matches2CharsWith1BitDifference, matchesEverything, matchesMinAndMax, matchesNothing, matchesSingleAscii, matchesSingleChar, matchesSomething, rangesAreSortedAndDisjoint, rangesAreSortedNonAdjacentAndDisjoint, rangesToString, rightOf, rightOf, size, sizeOfInverse, valueCount, valueCountEquals, valueCountMax
-
Method Details
-
getLo
public int getLo(int i) Description copied from interface:SortedListOfRangesReturns the inclusive lower bound of the range stored at indexi.- Specified by:
getLoin interfaceSortedListOfRanges
-
getHi
public int getHi(int i) Description copied from interface:SortedListOfRangesReturns the inclusive upper bound of the range stored at indexi.- Specified by:
getHiin interfaceSortedListOfRanges
-
size
public int size()Description copied from interface:SortedListOfRangesReturns the number of disjoint ranges contained in this list.- Specified by:
sizein interfaceSortedListOfRanges
-
appendRangesTo
Description copied from interface:SortedListOfRangesAppend all ranges fromstartIndex(inclusive) toendIndex(exclusive) to the givenbuffer. The caller is responsible for not violating the target buffer's sortedness; This effectively means that the range atstartIndexmust berightOfthe buffer's last range.- Specified by:
appendRangesToin interfaceSortedListOfRanges
-