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 Details

    • getLo

      public int getLo(int i)
      Description copied from interface: SortedListOfRanges
      Returns the inclusive lower bound of the range stored at index i.
      Specified by:
      getLo in interface SortedListOfRanges
    • getHi

      public int getHi(int i)
      Description copied from interface: SortedListOfRanges
      Returns the inclusive upper bound of the range stored at index i.
      Specified by:
      getHi in interface SortedListOfRanges
    • size

      public int size()
      Description copied from interface: SortedListOfRanges
      Returns the number of disjoint ranges contained in this list.
      Specified by:
      size in interface SortedListOfRanges
    • appendRangesTo

      public void appendRangesTo(RangesBuffer buffer, int startIndex, int endIndex)
      Description copied from interface: SortedListOfRanges
      Append all ranges from startIndex (inclusive) to endIndex (exclusive) to the given buffer. The caller is responsible for not violating the target buffer's sortedness; This effectively means that the range at startIndex must be rightOf the buffer's last range.
      Specified by:
      appendRangesTo in interface SortedListOfRanges