| 34 | }; |
| 35 | |
| 36 | static bool parseEntry(const std::string& input, std::string& outName, std::string& outCode) { |
| 37 | std::string partial_strip = input.substr(1, input.size() - 3); |
| 38 | auto first_end_quote = partial_strip.find('"'); |
| 39 | if (first_end_quote == std::string::npos) { |
| 40 | return false; |
| 41 | } else { |
| 42 | outName = partial_strip.substr(0, first_end_quote); |
| 43 | outCode = partial_strip.substr(first_end_quote + 3); |
| 44 | return true; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | // region Result |
| 49 |