| 322 | } |
| 323 | |
| 324 | bool ParseAssignmentString(const std::string_view str, std::string_view* key, std::string_view* value) |
| 325 | { |
| 326 | const std::string_view::size_type pos = str.find('='); |
| 327 | if (pos == std::string_view::npos) |
| 328 | { |
| 329 | *key = std::string_view(); |
| 330 | *value = std::string_view(); |
| 331 | return false; |
| 332 | } |
| 333 | |
| 334 | *key = StripWhitespace(str.substr(0, pos)); |
| 335 | if (pos != (str.size() - 1)) |
| 336 | *value = StripWhitespace(str.substr(pos + 1)); |
| 337 | else |
| 338 | *value = std::string_view(); |
| 339 | |
| 340 | return true; |
| 341 | } |
| 342 | |
| 343 | void AppendUTF16CharacterToUTF8(std::string& s, u16 ch) |
| 344 | { |
no test coverage detected