Home | History | Annotate | Download | only in tests

Lines Matching refs:cur

55 	input_output<char const *, char const*> const * cur;
56 for (cur = expect_erase; cur->input; ++cur) {
57 string result = erase_to_last_of(cur->input, ';');
58 check_result("erase_to_last_of()", cur->input, cur->output,
81 input_output<char const *, pair<string, string> > const * cur;
82 for (cur = expect_split; cur->input; ++cur) {
83 string temp = cur->input;
85 check_result("split()", cur->input, cur->output.first, temp);
86 check_result("split()", cur->input, cur->output.second, result);
106 input_output<char const *, pair<string, bool> > const * cur;
107 for (cur = expect_is_prefix; cur->input; ++cur) {
108 bool result = is_prefix(cur->input, cur->output.first);
109 if (result != cur->output.second) {
110 cerr << "is_prefix(" << cur->input << ", "
111 << cur->output.first << ") "
138 input_output<char const *, char const *[max_token]> const * cur;
139 for (cur = expect_separate_token; cur->input; ++cur) {
140 vector<string> result = separate_token(cur->input, ';');
144 << '"' << cur->input << "\"\n"
151 if (result[i] != cur->output[i]) {
154 << cur->input << endl;
157 if (!cur->output[i])
159 cerr << cur->output[i] << endl;
185 input_output<char const *, char const*> const * cur;
186 for (cur = expect_rtrim; cur->input; ++cur) {
187 string result = rtrim(cur->input);
188 check_result("rtrim()", cur->input, cur->output, result);
207 input_output<char const *, char const*> const * cur;
208 for (cur = expect_ltrim; cur->input; ++cur) {
209 string result = ltrim(cur->input);
210 check_result("ltrim()", cur->input, cur->output, result);
229 input_output<char const *, char const*> const * cur;
230 for (cur = expect_trim; cur->input; ++cur) {
231 string result = trim(cur->input);
232 check_result("trim()", cur->input, cur->output, result);
251 input_output<double, char const*> const * cur;
252 for (cur = expect_format_percent; cur->input != -1.0; ++cur) {
253 string result = format_percent(cur->input, percent_int_width,
255 check_result("format_percent()", cur->input, cur->output,
271 input_output<unsigned int, char const *> const * cur;
272 for (cur = expect_from_str_to_uint; cur->output; ++cur) {
273 string result = op_lexical_cast<string>(cur->input);
274 check_result("op_lexical_cast()", cur->input,
275 cur->output, result);
282 input_output<unsigned int, char const *> const * cur;
283 for (cur = expect_from_str_to_uint; cur->output; ++cur) {
285 op_lexical_cast<unsigned int>(cur->output);
286 check_result("op_lexical_cast()", cur->output, cur->input,
301 input_output<char const *, bool> const * cur;
302 for (cur = expect_from_str_to_bool; cur->input; ++cur) {
303 bool result = op_lexical_cast<bool>(cur->input);
304 check_result("op_lexical_cast()", cur->input, cur->output,