| 645 | } |
| 646 | |
| 647 | std::string_view JSON::getRawString() const |
| 648 | { |
| 649 | Pos s = ptr_begin; |
| 650 | if (*s != '"') |
| 651 | throw JSONException(std::string("JSON: expected \", got ") + *s); |
| 652 | ++s; |
| 653 | while (s != ptr_end && *s != '"') |
| 654 | ++s; |
| 655 | if (s != ptr_end) |
| 656 | return std::string_view(ptr_begin + 1, s - ptr_begin - 1); |
| 657 | throw JSONException("JSON: incorrect syntax (expected end of string, found end of JSON)."); |
| 658 | } |
| 659 | |
| 660 | std::string_view JSON::getRawName() const |
| 661 | { |
no test coverage detected