Class CodePointTrie.Fast32

All Implemented Interfaces:
Iterable<CodePointMap.Range>
Enclosing class:
CodePointTrie

public static final class CodePointTrie.Fast32 extends CodePointTrie.Fast
  • Method Details

    • fromBinary

      public static CodePointTrie.Fast32 fromBinary(ByteBuffer bytes)
      Parameters:
      bytes - a buffer containing the binary data of a CodePointTrie
      Returns:
      the trie
    • get

      public final int get(int c)
      Returns the value for a code point as stored in the map, with range checking. Returns an implementation-defined error value if c is not in the range 0..U+10FFFF.
      Overrides:
      get in class CodePointTrie
      Parameters:
      c - the code point
      Returns:
      the map value, or an implementation-defined error value if the code point is not in the range 0..U+10FFFF
    • bmpGet

      public final int bmpGet(int c)
      Returns a trie value for a BMP code point (U+0000..U+FFFF), without range checking. Can be used to look up a value for a UTF-16 code unit if other parts of the string processing check for surrogates.
      Specified by:
      bmpGet in class CodePointTrie.Fast
      Parameters:
      c - the input code point, must be U+0000..U+FFFF
      Returns:
      The BMP code point's trie value.
    • suppGet

      public final int suppGet(int c)
      Returns a trie value for a supplementary code point (U+10000..U+10FFFF), without range checking.
      Specified by:
      suppGet in class CodePointTrie.Fast
      Parameters:
      c - the input code point, must be U+10000..U+10FFFF
      Returns:
      The supplementary code point's trie value.