17 std::vector<std::string>
string_tokenize(
const std::string& src,
const char delim =
'.');
31 vout.
general(
m_vl,
"-------------------------------------------------\n");
32 vout.
general(
m_vl,
"------------ <Bridge++ 1.1> Test Menu -----------\n");
33 vout.
general(
m_vl,
"-------------------------------------------------\n");
69 m_root_node(
"<top_level>"),
98 std::string jobname =
"<terminate>";
114 if (jobname ==
"<terminate>")
break;
177 if (p->
m_next.size() == 0) {
180 for (
size_t i = 0; i < p->
m_next.size(); ++i) {
190 if (!p)
return false;
195 if (p->
m_next.size() == 0) {
201 bool do_continue =
true;
206 for (
unsigned int i = 0; i < p->
m_next.size(); ++i) {
222 bool do_alltest =
false;
223 bool do_setprecision =
false;
231 if (buf[0] == 0)
return false;
239 do_setprecision =
true;
244 if (buf[0] ==
'u')
return true;
246 if (buf[0] ==
'q')
return false;
252 if ((choice >= 1) && (choice <=
int(p->
m_next.size())))
break;
261 }
else if (do_setprecision) {
267 if (!do_continue)
break;
287 int prec = atoi(buf);
288 if ((prec >= 1) && (prec <= 14)) {
303 if (v.size() == 0)
return p;
305 for (std::vector<std::string>::const_iterator r = v.begin(); r != v.end(); ++r) {
306 bool is_found =
false;
308 for (i = 0; i < p->
m_next.size(); ++i) {
309 if (p->
m_next[i]->m_name == (*r)) {
315 if (!is_found)
return 0;
329 if (v.size() == 0)
return p;
331 for (std::vector<std::string>::const_iterator r = v.begin(); r != v.end(); ++r) {
332 bool is_found =
false;
334 for (i = 0; i < p->
m_next.size(); ++i) {
335 if (p->
m_next[i]->m_name == (*r)) {
359 if (argc == 0)
return p;
362 for (
int i = 0; i < argc; ++i) {
367 for (
size_t i = 0; i < p->
m_next.size(); ++i) {
368 if (p->
m_next[i]->m_name == argv[0]) {
385 if (!p->
m_prev)
return path;
387 if (path.length() > 0) {
416 m_list_failure.push_back(test_name);
448 if (p->
m_next.size() == 0) {
455 for (
size_t i = 0; i < p->
m_next.size(); ++i) {
464 std::vector<std::string> retv;
466 size_t npos = src.length();
471 size_t q = src.find(delim, p);
474 retv.push_back(src.substr(p));
478 retv.push_back(src.substr(p, q - p));