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

Method asCString

src/share/jsoncpp/jsoncpp.cpp:3090–3098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3088bool Value::operator!=(const Value& other) const { return !(*this == other); }
3089
3090const char* Value::asCString() const {
3091 JSON_ASSERT_MESSAGE(type_ == stringValue,
3092 "in Json::Value::asCString(): requires stringValue");
3093 if (value_.string_ == 0) return 0;
3094 unsigned this_len;
3095 char const* this_str;
3096 decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str);
3097 return this_str;
3098}
3099
3100#if JSONCPP_USING_SECURE_MEMORY
3101unsigned Value::getCStringLength() const {

Callers 1

readObjectMethod · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected