MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / asCString

Method asCString

Source/ThirdParty/jsoncpp/src/lib_json/json_value.cpp:666–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664bool Value::operator!=(const Value& other) const { return !(*this == other); }
665
666const char* Value::asCString() const {
667 JSON_ASSERT_MESSAGE(type_ == stringValue,
668 "in Json::Value::asCString(): requires stringValue");
669 if (value_.string_ == 0) return 0;
670 unsigned this_len;
671 char const* this_str;
672 decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str);
673 return this_str;
674}
675
676#if JSONCPP_USING_SECURE_MEMORY
677unsigned Value::getCStringLength() const {

Callers 13

readObjectMethod · 0.80
DeserializeMethod · 0.80
LoadTextureInfoMethod · 0.80
LoadMethod · 0.80
CreateMethod · 0.80
CloneEntityMethod · 0.80
SpawnEntityFromJsonMethod · 0.80
DeserializeMethod · 0.80
CreateEntityMethod · 0.80
CloneEntityValueMethod · 0.80
LoadMethod · 0.80
LoadMethod · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected