Package org.unbescape.css
Class CssIdentifierEscapeUtil
java.lang.Object
org.unbescape.css.CssIdentifierEscapeUtil
Internal class in charge of performing the real escape operations.
- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static char[]
private static int
private static char
private static final byte[]
private static final char
private static final char
private static char[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
codePointAt
(char c1, char c2) (package private) static void
escape
(char[] text, int offset, int len, Writer writer, CssIdentifierEscapeType escapeType, CssIdentifierEscapeLevel escapeLevel) (package private) static void
escape
(Reader reader, Writer writer, CssIdentifierEscapeType escapeType, CssIdentifierEscapeLevel escapeLevel) (package private) static String
escape
(String text, CssIdentifierEscapeType escapeType, CssIdentifierEscapeLevel escapeLevel) (package private) static char[]
toCompactHexa
(int codepoint, char next, int level) (package private) static char[]
toSixDigitHexa
(int codepoint, char next, int level)
-
Field Details
-
ESCAPE_PREFIX
private static final char ESCAPE_PREFIX- See Also:
-
HEXA_CHARS_UPPER
private static char[] HEXA_CHARS_UPPER -
BACKSLASH_CHARS_LEN
private static int BACKSLASH_CHARS_LEN -
BACKSLASH_CHARS_NO_ESCAPE
private static char BACKSLASH_CHARS_NO_ESCAPE -
BACKSLASH_CHARS
private static char[] BACKSLASH_CHARS -
ESCAPE_LEVELS_LEN
private static final char ESCAPE_LEVELS_LEN- See Also:
-
ESCAPE_LEVELS
private static final byte[] ESCAPE_LEVELS
-
-
Constructor Details
-
CssIdentifierEscapeUtil
private CssIdentifierEscapeUtil()
-
-
Method Details
-
toCompactHexa
static char[] toCompactHexa(int codepoint, char next, int level) -
toSixDigitHexa
static char[] toSixDigitHexa(int codepoint, char next, int level) -
escape
static String escape(String text, CssIdentifierEscapeType escapeType, CssIdentifierEscapeLevel escapeLevel) -
escape
static void escape(Reader reader, Writer writer, CssIdentifierEscapeType escapeType, CssIdentifierEscapeLevel escapeLevel) throws IOException - Throws:
IOException
-
escape
static void escape(char[] text, int offset, int len, Writer writer, CssIdentifierEscapeType escapeType, CssIdentifierEscapeLevel escapeLevel) throws IOException - Throws:
IOException
-
codePointAt
private static int codePointAt(char c1, char c2)
-