| Modifier and Type | Field and Description |
|---|---|
| public static final String[] | ANTLRLiteralCharValueEscape
Given a char, we need to be able to show as an ANTLR literal. |
| public static final int[] | ANTLRLiteralEscapedCharValue
When converting ANTLR char and string literals, here is the value set of escape chars. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static String | |
| public static int | getCharValueFromCharInGrammarLiteral(String cstr)
Given char x or \\t or \\u1234 return the char value; Unnecessary escapes like '\{' yield -1. |
| public static int | getCharValueFromGrammarCharLiteral(String literal)
Given a literal like (the 3 char sequence with single quotes) 'a', return the int value of 'a'. |
| public static String | |
| public static String | |
| public static String | |
| public static int |
| ANTLRLiteralCharValueEscape | back to summary |
|---|---|
| public static final String[] ANTLRLiteralCharValueEscape Given a char, we need to be able to show as an ANTLR literal. | |
| ANTLRLiteralEscapedCharValue | back to summary |
|---|---|
| public static final int[] ANTLRLiteralEscapedCharValue When converting ANTLR char and string literals, here is the value set of escape chars. | |
| CharSupport | back to summary |
|---|---|
| public CharSupport() | |
| capitalize | back to summary |
|---|---|
| public static String capitalize(String s) | |
| getANTLRCharLiteralForChar | back to summary |
|---|---|
| public static String getANTLRCharLiteralForChar(int c) Return a string representing the escaped char for code c. E.g., If c has value 0x100, you will get "\\u0100". ASCII gets the usual char (non-hex) representation. Non-ASCII characters are spit out as \\uXXXX or \\u{XXXXXX} escapes. | |
| getCharValueFromCharInGrammarLiteral | back to summary |
|---|---|
| public static int getCharValueFromCharInGrammarLiteral(String cstr) Given char x or \\t or \\u1234 return the char value; Unnecessary escapes like '\{' yield -1. | |
| getCharValueFromGrammarCharLiteral | back to summary |
|---|---|
| public static int getCharValueFromGrammarCharLiteral(String literal) Given a literal like (the 3 char sequence with single quotes) 'a', return the int value of 'a'. Convert escape sequences here also. Return -1 if not single char. | |
| getIntervalSetEscapedString | back to summary |
|---|---|
| public static String getIntervalSetEscapedString(IntervalSet intervalSet) | |
| getRangeEscapedString | back to summary |
|---|---|
| public static String getRangeEscapedString(int codePointStart, int codePointEnd) | |
| getStringFromGrammarStringLiteral | back to summary |
|---|---|
| public static String getStringFromGrammarStringLiteral(String literal) | |
| parseHexValue | back to summary |
|---|---|
| public static int parseHexValue(String cstr, int startOff, int endOff) | |