| JsonCpp project page | JsonCpp home page | 
#include <json/value.h>

| Public Member Functions | |
| StaticString (const char *czstring) | |
| operator const char * () const | |
| const char * | c_str () const | 
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:
Json::Value aValue( StaticString("some text") ); Json::Value object; static const StaticString code("code"); object[code] = 1234;
Definition at line 69 of file value.h.
| Json::StaticString::StaticString | ( | const char * | czstring | ) |  [inline, explicit] | 
| const char* Json::StaticString::c_str | ( | ) | const  [inline] | 
Definition at line 82 of file value.h.
Referenced by Json::Value::Value().

|  | hosts this site. | Send comments to: Json-cpp Developers |