MCPcopy Create free account
hub / github.com/Illumina/paragraph / getCStringLength

Method getCStringLength

external/jsoncpp/jsoncpp.cpp:3146–3154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3144
3145#if JSONCPP_USING_SECURE_MEMORY
3146unsigned Value::getCStringLength() const {
3147 JSON_ASSERT_MESSAGE(type_ == stringValue,
3148 "in Json::Value::asCString(): requires stringValue");
3149 if (value_.string_ == 0) return 0;
3150 unsigned this_len;
3151 char const* this_str;
3152 decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str);
3153 return this_len;
3154}
3155#endif
3156
3157bool 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