| 248 | } |
| 249 | |
| 250 | static std::pair<std::string,std::string> SplitLuxReplyLine(const std::string &s) |
| 251 | { |
| 252 | size_t ptr=0; |
| 253 | std::string type; |
| 254 | while (ptr < s.size() && s[ptr] != ' ') { |
| 255 | type.push_back(s[ptr]); |
| 256 | ++ptr; |
| 257 | } |
| 258 | if (ptr < s.size()) |
| 259 | ++ptr; // skip ' ' |
| 260 | return make_pair(type, s.substr(ptr)); |
| 261 | } |
| 262 | |
| 263 | |
| 264 | static std::map<std::string,std::string> ParseLuxReplyMapping(const std::string &s) |
no test coverage detected