MCPcopy Create free account
hub / github.com/SOUI2/soui / getCStringLength

Method getCStringLength

third-part/jsoncpp/src/lib_json/json_value.cpp:677–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675
676#if JSONCPP_USING_SECURE_MEMORY
677unsigned Value::getCStringLength() const {
678 JSON_ASSERT_MESSAGE(type_ == stringValue,
679 "in Json::Value::asCString(): requires stringValue");
680 if (value_.string_ == 0) return 0;
681 unsigned this_len;
682 char const* this_str;
683 decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str);
684 return this_len;
685}
686#endif
687
688bool 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