| 708 | } |
| 709 | |
| 710 | std::string JSON::toString() const |
| 711 | { |
| 712 | ElementType type = getType(); |
| 713 | |
| 714 | if (type == TYPE_STRING) |
| 715 | return getString(); |
| 716 | |
| 717 | Pos pos = skipElement(); |
| 718 | return std::string(ptr_begin, pos - ptr_begin); |
| 719 | } |
| 720 | |
| 721 | |
| 722 | JSON::iterator JSON::iterator::begin() const |
no test coverage detected