#include <llmessagetemplateparser.h>
| Public Member Functions | |
| LLTemplateTokenizer (const std::string &contents) | |
| U32 | line () const | 
| bool | atEOF () const | 
| std::string | next () | 
| bool | want (const std::string &token) | 
| bool | wantEOF () | 
| Private Member Functions | |
| void | inc () | 
| void | dec () | 
| std::string | get () const | 
| void | error (std::string message="generic") const | 
| Private Attributes | |
| bool | mStarted | 
| std::list< positioned_token > | mTokens | 
| std::list< positioned_token >::const_iterator | mCurrent | 
| Classes | |
| struct | positioned_token | 
Definition at line 38 of file llmessagetemplateparser.h.
| LLTemplateTokenizer::LLTemplateTokenizer | ( | const std::string & | contents | ) | 
Definition at line 245 of file llmessagetemplateparser.cpp.
References LLTemplateTokenizer::positioned_token::line, mCurrent, mTokens, and LLTemplateTokenizer::positioned_token::str.
| bool LLTemplateTokenizer::atEOF | ( | ) | const | 
| void LLTemplateTokenizer::dec | ( | ) |  [private] | 
| void LLTemplateTokenizer::error | ( | std::string | message = "generic" | ) | const  [private] | 
| std::string LLTemplateTokenizer::get | ( | ) | const  [private] | 
| void LLTemplateTokenizer::inc | ( | ) |  [private] | 
| U32 LLTemplateTokenizer::line | ( | ) | const | 
Definition at line 317 of file llmessagetemplateparser.cpp.
References atEOF(), and mCurrent.
Referenced by tut::LLMessageTemplateParserTestData::ensure_next(), error(), LLTemplateParser::LLTemplateParser(), LLTemplateParser::parseBlock(), LLTemplateParser::parseMessage(), and LLTemplateParser::parseVariable().
| std::string LLTemplateTokenizer::next | ( | ) | 
Definition at line 331 of file llmessagetemplateparser.cpp.
Referenced by tut::LLMessageTemplateParserTestData::ensure_next(), LLTemplateParser::LLTemplateParser(), LLTemplateParser::parseBlock(), LLTemplateParser::parseMessage(), and LLTemplateParser::parseVariable().
| bool LLTemplateTokenizer::want | ( | const std::string & | token | ) | 
Definition at line 337 of file llmessagetemplateparser.cpp.
References atEOF(), dec(), get(), and inc().
Referenced by LLTemplateParser::LLTemplateParser(), LLTemplateParser::parseBlock(), LLTemplateParser::parseMessage(), and LLTemplateParser::parseVariable().
| bool LLTemplateTokenizer::wantEOF | ( | ) | 
Definition at line 350 of file llmessagetemplateparser.cpp.
References atEOF(), dec(), and inc().
Referenced by LLTemplateParser::LLTemplateParser().
| std::list<positioned_token>::const_iterator LLTemplateTokenizer::mCurrent  [private] | 
Definition at line 63 of file llmessagetemplateparser.h.
Referenced by atEOF(), dec(), get(), inc(), line(), and LLTemplateTokenizer().
| bool LLTemplateTokenizer::mStarted  [private] | 
Definition at line 62 of file llmessagetemplateparser.h.
Referenced by atEOF(), dec(), inc(), and LLTemplateTokenizer().
 1.4.7
 1.4.7