Class HtmlEscapeSymbols


  • final class HtmlEscapeSymbols
    extends java.lang.Object

    Instances of this class group all the complex data structures needed to support full escape and unescape operations for HTML.

    Most of the fields in objects of this class are package-accessible, as the class itself is, in order to allow them (the fields) to be directly accessed from the classes doing the real escape/unescape (basically, the HtmlEscapeUtil class.

    Since:
    1.0.0
    • Field Detail

      • NCRS_BY_CODEPOINT

        final short[] NCRS_BY_CODEPOINT
      • NCRS_BY_CODEPOINT_OVERFLOW

        final java.util.Map<java.lang.Integer,​java.lang.Short> NCRS_BY_CODEPOINT_OVERFLOW
      • ESCAPE_LEVELS

        final byte[] ESCAPE_LEVELS
      • SORTED_NCRS

        final char[][] SORTED_NCRS
      • SORTED_CODEPOINTS

        final int[] SORTED_CODEPOINTS
      • DOUBLE_CODEPOINTS

        final int[][] DOUBLE_CODEPOINTS
    • Method Detail

      • positionInList

        private static int positionInList​(java.util.List<char[]> list,
                                          char[] element)
      • compare

        private static int compare​(char[] ncr,
                                   java.lang.String text,
                                   int start,
                                   int end)
      • compare

        private static int compare​(char[] ncr,
                                   char[] text,
                                   int start,
                                   int end)
      • binarySearch

        static int binarySearch​(char[][] values,
                                java.lang.String text,
                                int start,
                                int end)
      • binarySearch

        static int binarySearch​(char[][] values,
                                char[] text,
                                int start,
                                int end)