Package com.javacc.preprocessor
Interface PreprocessorConstants
-
- All Known Implementing Classes:
InvalidToken,ParseException,PreprocessorLexer,PreprocessorParser,Token
public interface PreprocessorConstantsToken literal values and constants.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPreprocessorConstants.LexicalStateLexical Statesstatic classPreprocessorConstants.TokenType
-
Field Summary
Fields Modifier and Type Field Description static intBUF_SIZE
-
Method Summary
Static Methods Modifier and Type Method Description static StringaddEscapes(String str)static StringdisplayChar(int ch)static StringreadFully(Reader reader)static StringreadToEnd(Reader reader)static StringstringFromBytes(byte[] bytes)Rather bloody-minded way of converting a byte array into a string taking into account the initial byte order mark (used by Microsoft a lot seemingly) See: https://docs.microsoft.com/es-es/globalization/encoding/byte-order-markc
-
-
-
Field Detail
-
BUF_SIZE
static final int BUF_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
displayChar
static String displayChar(int ch)
-
readFully
static String readFully(Reader reader) throws IOException
- Throws:
IOException
-
stringFromBytes
static String stringFromBytes(byte[] bytes)
Rather bloody-minded way of converting a byte array into a string taking into account the initial byte order mark (used by Microsoft a lot seemingly) See: https://docs.microsoft.com/es-es/globalization/encoding/byte-order-markc- Parameters:
bytes- the raw byte array- Returns:
- A String taking into account the encoding in the byte order mark (if it was present). If no byte-order mark was present, it assumes the raw input is in UTF-8.
-
-