| 3097 | |
| 3098 | #if JSONCPP_USING_SECURE_MEMORY |
| 3099 | unsigned Value::getCStringLength() const { |
| 3100 | JSON_ASSERT_MESSAGE(type_ == stringValue, |
| 3101 | "in Json::Value::asCString(): requires stringValue"); |
| 3102 | if (value_.string_ == 0) |
| 3103 | return 0; |
| 3104 | unsigned this_len; |
| 3105 | char const* this_str; |
| 3106 | decodePrefixedString(this->allocated_, this->value_.string_, &this_len, |
| 3107 | &this_str); |
| 3108 | return this_len; |
| 3109 | } |
| 3110 | #endif |
| 3111 | |
| 3112 | bool Value::getString(char const** str, char const** cend) const { |
nothing calls this directly
no test coverage detected