Lightweight wrapper to tag static string. More...
#include <json.h>
Public Member Functions | |
const char * | c_str () const |
const char * | c_str () const |
operator const char * () const | |
operator const char * () const | |
StaticString (const char *czstring) | |
StaticString (const char *czstring) | |
Private Attributes | |
const char * | c_str_ |
Lightweight wrapper to tag static string.
Value constructor and objectValue member assignement takes advantage of the StaticString and avoid the cost of string duplication when storing the string or the member name.
Example of usage:
Definition at line 501 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
inlineexplicit |
Definition at line 503 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
inlineexplicit |
Definition at line 503 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
inline |
Definition at line 507 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
inline |
Definition at line 507 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
inline |
Definition at line 505 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
inline |
Definition at line 505 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 510 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.