| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final char[] | |
| private static final char[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final String | |
| public static <T extends Appendable> boolean | escapeUnprintable(T result, int c)
Escape unprintable characters using <backslash>uxxxx notation for U+0000 to U+FFFF and <backslash>Uxxxxxxxx for U+10000 and above. |
| public static String | |
| public static boolean | |
| public static int | Returns: character value from 0 to 10FFFF, or -1 on error.an array containing offset to the character
after the backslash. Upon return offset16[0] will
be updated to point after the escape sequence. offset16)Convert an escape to a 32-bit code point value. |
| DIGITS | back to summary |
|---|---|
| pack-priv static final char[] DIGITS | |
| UNESCAPE_MAP | back to summary |
|---|---|
| private static final char[] UNESCAPE_MAP | |
| Utility | back to summary |
|---|---|
| public Utility() | |
| escape | back to summary |
|---|---|
| public static final String escape(String s) Convert characters outside the range U+0020 to U+007F to Unicode escapes, and convert backslash to a double backslash. | |
| escapeUnprintable | back to summary |
|---|---|
| public static <T extends Appendable> boolean escapeUnprintable(T result, int c) Escape unprintable characters using <backslash>uxxxx notation for U+0000 to U+FFFF and <backslash>Uxxxxxxxx for U+10000 and above. If the character is printable ASCII, then do nothing and return false. Otherwise, append the escaped notation and return true. | |
| hex | back to summary |
|---|---|
| public static String hex(long i, int places) Supplies a zero-padded hex representation of an integer (without 0x) | |
| isUnprintable | back to summary |
|---|---|
| public static boolean isUnprintable(int c) Return true if the character is NOT printable ASCII. The tab, newline and linefeed characters are considered unprintable. | |
| unescapeAt | back to summary |
|---|---|
| public static int unescapeAt(String s, int[] offset16) Convert an escape to a 32-bit code point value. We attempt to parallel the icu4c unescapeAt() function.
| |