summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/master_lexer_state.h
diff options
context:
space:
mode:
authorJINMEI Tatuya <jinmei@isc.org>2012-11-02 22:56:02 +0100
committerJINMEI Tatuya <jinmei@isc.org>2012-11-02 23:10:27 +0100
commit8baae428236f887b53988cf0c7b52c3275acd531 (patch)
treec0171aaf8844a085e886d858f4828928ca7676dd /src/lib/dns/master_lexer_state.h
parent[2372] handled spaces. (diff)
downloadkea-8baae428236f887b53988cf0c7b52c3275acd531.tar.xz
kea-8baae428236f887b53988cf0c7b52c3275acd531.zip
[2372] initial parentheses support
Diffstat (limited to 'src/lib/dns/master_lexer_state.h')
-rw-r--r--src/lib/dns/master_lexer_state.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/dns/master_lexer_state.h b/src/lib/dns/master_lexer_state.h
index dc1fd00ece..f4be18c10b 100644
--- a/src/lib/dns/master_lexer_state.h
+++ b/src/lib/dns/master_lexer_state.h
@@ -28,7 +28,8 @@ public:
enum ID {
Start, ///< TBD
CRLF,
- EatLine
+ EatLine,
+ String
};
virtual const State* handle(MasterLexer& lexer,
MasterLexer::Options& options,
@@ -38,8 +39,9 @@ public:
static const State& getInstance(ID state_id);
/// \name Read-only accessors for testing purposes.
- bool wasLastEOL(MasterLexer& lexer) const;
- const MasterLexer::Token getToken(MasterLexer& lexer) const;
+ bool wasLastEOL(const MasterLexer& lexer) const;
+ const MasterLexer::Token& getToken(const MasterLexer& lexer) const;
+ size_t getParenCount(const MasterLexer& lexer) const;
protected:
MasterLexer::MasterLexerImpl* getLexerImpl(MasterLexer& lexer) const {