mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-09-10 21:36:50 -04:00
Updated Home (markdown)
parent
faf5fdb414
commit
95b4bfcbad
2
Home.md
2
Home.md
@ -54,7 +54,7 @@ std::string my_encoding = root.get("my-encoding", "UTF-32" ).asString();
|
|||||||
// there is no such member.
|
// there is no such member.
|
||||||
const Json::Value my_plugins = root["my-plug-ins"];
|
const Json::Value my_plugins = root["my-plug-ins"];
|
||||||
for ( int index = 0; index < my_plugins.size(); ++index ) // Iterates over the sequence elements.
|
for ( int index = 0; index < my_plugins.size(); ++index ) // Iterates over the sequence elements.
|
||||||
yourib::loadPlugIn( my_plugins[index].asString() );
|
yourlib::loadPlugIn( my_plugins[index].asString() );
|
||||||
|
|
||||||
yourlib::setIndentLength( root["my-indent"].get("length", 3).asInt() );
|
yourlib::setIndentLength( root["my-indent"].get("length", 3).asInt() );
|
||||||
yourlib::setIndentUseSpace( root["my-indent"].get("use_space", true).asBool() );
|
yourlib::setIndentUseSpace( root["my-indent"].get("use_space", true).asBool() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user