70 std::string separators;
71 bool merge_separators;
72 std::string begin_skip;
74 std::string escape_skip;
75 std::string whitespaces;
77 bool handle_skip(
token& result);
78 bool handle_separators(
token& result,
bool check_skip=
true);
79 bool reverse_handle_skip(
token& result);
80 bool reverse_handle_separators(
token& result,
bool check_skip=
true);
93 tokenizer& set_skip(
const std::string& open,
const std::string& close);
95 tokenizer& set_skip(
const std::string& open,
const std::string& close,
const std::string& escape);
97 tokenizer& set_sep(
const std::string& sep,
bool merge);
99 tokenizer& set_sep(
const std::string& sep);
105 token reverse_bite();
107 void reverse_skip_whitespaces();
109 void skip_whitespaces();
115 bool balanced_bite(
token& result,
const std::string& open_parenthesis,
const std::string& close_parenthesis,
bool wait_for_sep =
false);
117 void bite_all(std::vector<token>& result);
126 #include <cgv/config/lib_end.h>
Definition: tokenizer.h:68
bool reverse_skip_ws_check_empty()
skip whitespaces at the back and return whether the complete text has been processed
Definition: tokenizer.h:113
bool skip_ws_check_empty()
skip whitespaces at the front and return whether the complete text has been processed
Definition: tokenizer.h:111
token bite()
bite away a single token from the front
Definition: tokenizer.cxx:179
void bite_all(tokenizer &t, std::vector< token > &result)
bite all tokens into a token vector
Definition: tokenizer.h:121
the cgv namespace
Definition: vr_calib.cxx:9