optimize
This commit is contained in:
parent
244477f0a0
commit
8d1336d7df
9 changed files with 47 additions and 55 deletions
|
@ -10,16 +10,15 @@ namespace mstch {
|
|||
text, variable, section_open, section_close, inverted_section_open,
|
||||
unescaped_variable, comment, partial
|
||||
};
|
||||
token(const std::string& raw_token);
|
||||
type token_type() const;
|
||||
std::string content() const;
|
||||
std::string raw() const;
|
||||
private:
|
||||
type type_val;
|
||||
std::string content_val;
|
||||
std::string raw_val;
|
||||
std::tuple<int,int,type> token_info(const std::string& inside);
|
||||
public:
|
||||
token(const std::string& raw_token);
|
||||
type token_type() const;
|
||||
std::string content() const;
|
||||
std::string raw() const;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue