| 2999 | |
| 3000 | #if JSONCPP_USING_SECURE_MEMORY |
| 3001 | unsigned Value::getCStringLength() const { |
| 3002 | JSON_ASSERT_MESSAGE(type() == stringValue, |
| 3003 | "in Json::Value::asCString(): requires stringValue"); |
| 3004 | if (value_.string_ == 0) |
| 3005 | return 0; |
| 3006 | unsigned this_len; |
| 3007 | char const *this_str; |
| 3008 | decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len, |
| 3009 | &this_str); |
| 3010 | return this_len; |
| 3011 | } |
| 3012 | #endif |
| 3013 | |
| 3014 | bool Value::getString(char const **begin, char const **end) const { |
nothing calls this directly
no test coverage detected