Package com.javacc.preprocessor
Interface PreprocessorConstants
- All Known Implementing Classes:
InvalidToken,ParseException,PreprocessorLexer,PreprocessorParser,Token
public interface PreprocessorConstants
Token literal values and constants.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumLexical Statesstatic enum -
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic StringaddEscapes(String str) static StringdisplayChar(int ch) static Stringstatic Stringstatic 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 Details
-
BUF_SIZE
static final int BUF_SIZE- See Also:
-
-
Method Details
-
displayChar
-
addEscapes
-
readToEnd
-
readFully
- Throws:
IOException
-
stringFromBytes
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.
-