Lexer: Implemented ::readWord
- Lexer::readWord is a general-purpose text parser, for finding plain words and quoted strings. It supports \uNNNN and U+NNNN unicode sequences, and general escapes, \t, \', \" etc.
This commit is contained in:
10
src/Lexer.h
10
src/Lexer.h
@@ -75,13 +75,13 @@ public:
|
||||
static bool isOneWord (const std::string&);
|
||||
static void dequote (std::string&);
|
||||
static bool wasQuoted (const std::string&);
|
||||
static bool readWord (const std::string&, const std::string&, std::string::size_type&, std::string&);
|
||||
static bool decomposePair (const std::string&, std::string&, std::string&, std::string&, std::string&);
|
||||
static int hexToInt (int);
|
||||
static int hexToInt (int, int);
|
||||
static int hexToInt (int, int, int, int);
|
||||
|
||||
// Helpers.
|
||||
bool isEOS () const;
|
||||
int hexToInt (int) const;
|
||||
int hexToInt (int, int) const;
|
||||
int hexToInt (int, int, int, int) const;
|
||||
bool isEOS () const;
|
||||
|
||||
// Stream Classifiers.
|
||||
bool isString (std::string&, Lexer::Type&, int quote);
|
||||
|
||||
Reference in New Issue
Block a user