MCPcopy Create free account
hub / github.com/SOUI2/soui / newCharReader

Method newCharReader

third-part/jsoncpp/src/lib_json/json_reader.cpp:1951–1965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1949CharReaderBuilder::~CharReaderBuilder()
1950{}
1951CharReader* CharReaderBuilder::newCharReader() const
1952{
1953 bool collectComments = settings_["collectComments"].asBool();
1954 OurFeatures features = OurFeatures::all();
1955 features.allowComments_ = settings_["allowComments"].asBool();
1956 features.strictRoot_ = settings_["strictRoot"].asBool();
1957 features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool();
1958 features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool();
1959 features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool();
1960 features.stackLimit_ = settings_["stackLimit"].asInt();
1961 features.failIfExtra_ = settings_["failIfExtra"].asBool();
1962 features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool();
1963 features.allowSpecialFloats_ = settings_["allowSpecialFloats"].asBool();
1964 return new OurCharReader(collectComments, features);
1965}
1966static void getValidReaderKeys(std::set<JSONCPP_STRING>* valid_keys)
1967{
1968 valid_keys->clear();

Callers 2

parseFromStreamFunction · 0.80
JSONTEST_FIXTUREFunction · 0.80

Calls 2

asBoolMethod · 0.80
asIntMethod · 0.80

Tested by

no test coverage detected