Class HtmlEscapeSymbols

java.lang.Object
org.unbescape.html.HtmlEscapeSymbols

final class HtmlEscapeSymbols extends 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 Details

    • NCRS_BY_CODEPOINT_LEN

      static final int NCRS_BY_CODEPOINT_LEN
      See Also:
    • NCRS_BY_CODEPOINT

      final short[] NCRS_BY_CODEPOINT
    • NCRS_BY_CODEPOINT_OVERFLOW

      final Map<Integer,Short> NCRS_BY_CODEPOINT_OVERFLOW
    • MAX_ASCII_CHAR

      static final char MAX_ASCII_CHAR
      See Also:
    • ESCAPE_LEVELS

      final byte[] ESCAPE_LEVELS
    • SORTED_NCRS

      final char[][] SORTED_NCRS
    • SORTED_CODEPOINTS

      final int[] SORTED_CODEPOINTS
    • DOUBLE_CODEPOINTS

      final int[][] DOUBLE_CODEPOINTS
    • NO_NCR

      static final short NO_NCR
      See Also:
    • HTML4_SYMBOLS

      static final HtmlEscapeSymbols HTML4_SYMBOLS
    • HTML5_SYMBOLS

      static final HtmlEscapeSymbols HTML5_SYMBOLS
  • Constructor Details

  • Method Details

    • positionInList

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

      private static int compare(char[] ncr, 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, String text, int start, int end)
    • binarySearch

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