Package org.unbescape.html
Class HtmlEscapeSymbols
java.lang.Object
org.unbescape.html.HtmlEscapeSymbols
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
(package private) static final class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int[][]
(package private) final byte[]
(package private) static final HtmlEscapeSymbols
(package private) static final HtmlEscapeSymbols
(package private) static final char
(package private) final short[]
(package private) static final int
(package private) static final short
(package private) final int[]
(package private) final char[][]
-
Constructor Summary
ConstructorsConstructorDescriptionHtmlEscapeSymbols
(HtmlEscapeSymbols.References references, byte[] escapeLevels) -
Method Summary
Modifier and TypeMethodDescription(package private) static int
binarySearch
(char[][] values, char[] text, int start, int end) (package private) static int
binarySearch
(char[][] values, String text, int start, int end) private static int
compare
(char[] ncr, char[] text, int start, int end) private static int
private static int
positionInList
(List<char[]> list, char[] element)
-
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
-
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
-
HTML5_SYMBOLS
-
-
Constructor Details
-
HtmlEscapeSymbols
HtmlEscapeSymbols(HtmlEscapeSymbols.References references, byte[] escapeLevels)
-
-
Method Details
-
positionInList
-
compare
-
compare
private static int compare(char[] ncr, char[] text, int start, int end) -
binarySearch
-
binarySearch
static int binarySearch(char[][] values, char[] text, int start, int end)
-