MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / newCharReader

Method newCharReader

Libraries/jsoncpp-0.y.z/src/lib_json/json_reader.cpp:1746–1760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1744CharReaderBuilder::~CharReaderBuilder()
1745{}
1746CharReader* CharReaderBuilder::newCharReader() const
1747{
1748 bool collectComments = settings_["collectComments"].asBool();
1749 OurFeatures features = OurFeatures::all();
1750 features.allowComments_ = settings_["allowComments"].asBool();
1751 features.strictRoot_ = settings_["strictRoot"].asBool();
1752 features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool();
1753 features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool();
1754 features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool();
1755 features.stackLimit_ = settings_["stackLimit"].asInt();
1756 features.failIfExtra_ = settings_["failIfExtra"].asBool();
1757 features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool();
1758 features.allowSpecialFloats_ = settings_["allowSpecialFloats"].asBool();
1759 return new OurCharReader(collectComments, features);
1760}
1761static void getValidReaderKeys(std::set<std::string>* valid_keys)
1762{
1763 valid_keys->clear();

Callers 2

parseFromStreamFunction · 0.45
JSONTEST_FIXTUREFunction · 0.45

Calls 2

asBoolMethod · 0.45
asIntMethod · 0.45

Tested by

no test coverage detected