Class CodePointTrie.Fast32

    • Field Detail

      • dataArray

        private final int[] dataArray
    • Constructor Detail

      • Fast32

        Fast32​(char[] index,
               int[] data32,
               int highStart,
               int index3NullOffset,
               int dataNullOffset)
    • Method Detail

      • 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.