| 75 | } |
| 76 | |
| 77 | bool |
| 78 | PartialExpander::parse_options(const std::string &options, char sep_char) |
| 79 | { |
| 80 | size_t pos = 0; |
| 81 | size_t start_pos = 0; |
| 82 | |
| 83 | while(true) { |
| 84 | // Shouldn't happen |
| 85 | assert(options[pos] != ' '); |
| 86 | |
| 87 | start_pos = pos; |
| 88 | pos = options.find_first_of(sep_char, pos); |
| 89 | std::string s = options.substr(start_pos, (pos - start_pos)); |
| 90 | if (!PartialExpander::set_expand(s)) |
| 91 | return false; |
| 92 | if (pos == string::npos) |
| 93 | break; |
| 94 | pos++; |
| 95 | } |
| 96 | return true; |
| 97 | } |
| 98 | |
| 99 | void |
| 100 | PartialExpander::set_stmt_expand(eStatementType t, bool value) |
nothing calls this directly
no outgoing calls
no test coverage detected