MCPcopy Create free account
hub / github.com/PlayFab/gsdk / getString

Method getString

cpp/cppsdk/jsoncpp.cpp:3109–3118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3107#endif
3108
3109bool Value::getString(char const** begin, char const** end) const {
3110 if (type_ != stringValue)
3111 return false;
3112 if (value_.string_ == 0)
3113 return false;
3114 unsigned length;
3115 decodePrefixedString(this->allocated_, this->value_.string_, &length, begin);
3116 *end = *begin + length;
3117 return true;
3118}
3119
3120JSONCPP_STRING Value::asString() const {
3121 switch (type_) {

Callers 1

writeValueMethod · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected