MCPcopy Create free account
hub / github.com/cinience/RedisStudio / GetStringLength

Function GetStringLength

include/rapidjson/document.h:1338–1338  ·  view source on GitHub ↗

Get the length of string. ! Since rapidjson permits "\\u0000" in the json string, strlen(v.GetString()) may not equal to v.GetStringLength(). */

Source from the content-addressed store, hash-verified

1336 /*! Since rapidjson permits "\\u0000" in the json string, strlen(v.GetString()) may not equal to v.GetStringLength().
1337 */
1338 SizeType GetStringLength() const { RAPIDJSON_ASSERT(IsString()); return ((flags_ & kInlineStrFlag) ? (data_.ss.GetLength()) : data_.s.length); }
1339
1340 //! Set this value as a string without copying source string.
1341 /*! This version has better performance with supplied length, and also support string containing null character.

Callers 2

AcceptFunction · 0.85
StringEqualFunction · 0.85

Calls 2

IsStringFunction · 0.85
GetLengthMethod · 0.45

Tested by

no test coverage detected