• Home
  • Raw
  • Download

Lines Matching refs:tokens

31    vector< string > tokens =  split_unix(cmdline, " \t\n\r");  in split_whitespace()  local
33 BOOST_REQUIRE(tokens.size() == 7); in split_whitespace()
35 check_value(tokens[0], "prg"); in split_whitespace()
36 check_value(tokens[1], "--input"); in split_whitespace()
37 check_value(tokens[2], "input.txt"); in split_whitespace()
38 check_value(tokens[3], "--optimization"); in split_whitespace()
39 check_value(tokens[4], "4"); in split_whitespace()
40 check_value(tokens[5], "--opt"); in split_whitespace()
41 check_value(tokens[6], "option"); in split_whitespace()
44 store(command_line_parser(tokens).options(description).run(), vm); in split_whitespace()
53 vector< string > tokens = split_unix(cmdline, "= "); in split_equalsign() local
55 BOOST_REQUIRE(tokens.size() == 7); in split_equalsign()
56 check_value(tokens[0], "prg"); in split_equalsign()
57 check_value(tokens[1], "--input"); in split_equalsign()
58 check_value(tokens[2], "input.txt"); in split_equalsign()
59 check_value(tokens[3], "--optimization"); in split_equalsign()
60 check_value(tokens[4], "4"); in split_equalsign()
61 check_value(tokens[5], "--opt"); in split_equalsign()
62 check_value(tokens[6], "option"); in split_equalsign()
65 store(command_line_parser(tokens).options(description).run(), vm); in split_equalsign()
74 vector< string > tokens = split_unix(cmdline, "; "); in split_semi() local
76 BOOST_REQUIRE(tokens.size() == 7); in split_semi()
77 check_value(tokens[0], "prg"); in split_semi()
78 check_value(tokens[1], "--input"); in split_semi()
79 check_value(tokens[2], "input.txt"); in split_semi()
80 check_value(tokens[3], "--optimization"); in split_semi()
81 check_value(tokens[4], "4"); in split_semi()
82 check_value(tokens[5], "--opt"); in split_semi()
83 check_value(tokens[6], "option"); in split_semi()
86 store(command_line_parser(tokens).options(description).run(), vm); in split_semi()
94 vector< string > tokens = split_unix(cmdline, " "); in split_quotes() local
96 BOOST_REQUIRE(tokens.size() == 7); in split_quotes()
97 check_value(tokens[0], "prg"); in split_quotes()
98 check_value(tokens[1], "--input"); in split_quotes()
99 check_value(tokens[2], "input.txt input.txt"); in split_quotes()
100 check_value(tokens[3], "--optimization"); in split_quotes()
101 check_value(tokens[4], "4"); in split_quotes()
102 check_value(tokens[5], "--opt"); in split_quotes()
103 check_value(tokens[6], "option1 option2"); in split_quotes()
106 store(command_line_parser(tokens).options(description).run(), vm); in split_quotes()
114 vector< string > tokens = split_unix(cmdline, " "); in split_escape() local
116 BOOST_REQUIRE(tokens.size() == 7); in split_escape()
117 check_value(tokens[0], "prg"); in split_escape()
118 check_value(tokens[1], "--input"); in split_escape()
119 check_value(tokens[2], "\"input.txt\""); in split_escape()
120 check_value(tokens[3], "--optimization"); in split_escape()
121 check_value(tokens[4], "4"); in split_escape()
122 check_value(tokens[5], "--opt"); in split_escape()
123 check_value(tokens[6], "\"option1 option2\""); in split_escape()
126 store(command_line_parser(tokens).options(description).run(), vm); in split_escape()
135 vector< string > tokens = split_unix(cmdline, " ", "'"); in split_single_quote() local
137 BOOST_REQUIRE(tokens.size() == 7); in split_single_quote()
138 check_value(tokens[0], "prg"); in split_single_quote()
139 check_value(tokens[1], "--input"); in split_single_quote()
140 check_value(tokens[2], "input.txt input.txt"); in split_single_quote()
141 check_value(tokens[3], "--optimization"); in split_single_quote()
142 check_value(tokens[4], "4"); in split_single_quote()
143 check_value(tokens[5], "--opt"); in split_single_quote()
144 check_value(tokens[6], "option1 option2"); in split_single_quote()
147 store(command_line_parser(tokens).options(description).run(), vm); in split_single_quote()
155 vector< string > tokens = split_unix(cmdline); in split_defaults() local
157 BOOST_REQUIRE(tokens.size() == 7); in split_defaults()
158 check_value(tokens[0], "prg"); in split_defaults()
159 check_value(tokens[1], "--input"); in split_defaults()
160 check_value(tokens[2], "input file.txt"); in split_defaults()
161 check_value(tokens[3], "--optimization"); in split_defaults()
162 check_value(tokens[4], "4"); in split_defaults()
163 check_value(tokens[5], "--opt"); in split_defaults()
164 check_value(tokens[6], "\"option1 option2\""); in split_defaults()
167 store(command_line_parser(tokens).options(description).run(), vm); in split_defaults()