MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / getCStringLength

Method getCStringLength

src/share/jsoncpp/jsoncpp.cpp:3101–3109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected