12 #include "lib_begin.h"
21 line(
const char* _b = 0,
const char* _e = 0) :
token(_b, _e) {}
26 PLAIN, URL, FLOAT_VALUE, TIME_VALUE, DATE_VALUE
38 utils::time time_value;
39 utils::date date_value;
75 const char* begin,
const char* end,
76 std::vector<token>& tokens,
77 const std::string& separators,
78 bool merge_separators =
true,
79 const std::string& open_parenthesis =
"",
const std::string& close_parenthesis =
"",
80 const std::string& whitespaces =
" \t\n",
81 unsigned int max_nr_tokens = -1);
86 std::vector<token>& tokens,
87 const std::string& separators,
88 bool merge_separators =
true,
89 const std::string& open_parenthesis =
"",
const std::string& close_parenthesis =
"",
90 const std::string& whitespaces =
" \t\n",
96 separators,merge_separators,open_parenthesis,close_parenthesis,whitespaces);
101 const std::string& s,
102 std::vector<token>& tokens,
103 const std::string& separators,
104 bool merge_separators =
true,
105 const std::string& open_parenthesis =
"",
const std::string& close_parenthesis =
"",
106 const std::string& whitespaces =
" \t\n",
107 unsigned int = (
unsigned int)-1)
109 split_to_tokens(&s[0],&s[0]+s.size(),tokens,separators,merge_separators,open_parenthesis,close_parenthesis,whitespaces);
115 extern CGV_API
void split_to_lines(
const char* begin,
const char* end,
116 std::vector<line>& lines,
117 bool truncate_trailing_spaces =
true);
120 std::vector<line>& lines,
121 bool truncate_trailing_spaces =
true) {
127 std::vector<line>& lines,
128 bool truncate_trailing_spaces =
true) {
129 split_to_lines(&s[0],&s[0]+s.size(),lines,truncate_trailing_spaces);
143 const char* begin,
const char* end,
145 char open_parenthesis,
char close_parenthesis);
148 const token& expression,
150 char open_parenthesis,
char close_parenthesis) {
152 content,open_parenthesis,close_parenthesis);
155 const std::string& expression,
157 char open_parenthesis,
char close_parenthesis) {
159 content,open_parenthesis,close_parenthesis);
165 #include <cgv/config/lib_end.h>