| 539 | } |
| 540 | |
| 541 | bool JSON::getBool() const |
| 542 | { |
| 543 | if (*ptr_begin == 't') |
| 544 | return true; |
| 545 | if (*ptr_begin == 'f') |
| 546 | return false; |
| 547 | throw JSONException("JSON: cannot parse boolean."); |
| 548 | } |
| 549 | |
| 550 | std::string JSON::getString() const |
| 551 | { |
no outgoing calls
no test coverage detected