| 16 | // ---------------------------------------------------------------------------------------- |
| 17 | |
| 18 | std::string pick_out_quoted_string ( |
| 19 | const std::string& str |
| 20 | ) |
| 21 | { |
| 22 | std::string temp; |
| 23 | bool in_quotes = false; |
| 24 | for (unsigned long i = 0; i < str.size(); ++i) |
| 25 | { |
| 26 | if (str[i] == '"') |
| 27 | { |
| 28 | in_quotes = !in_quotes; |
| 29 | } |
| 30 | else if (in_quotes) |
| 31 | { |
| 32 | temp += str[i]; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | return temp; |
| 37 | } |
| 38 | |
| 39 | // ---------------------------------------------------------------------------------------- |
| 40 |
no test coverage detected