MCPcopy Create free account
hub / github.com/catboost/catboost / PatchEntry

Method PatchEntry

library/cpp/yconf/patcher/unstrict_config.cpp:274–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274bool TUnstrictConfig::PatchEntry(const TString& path, const TString& value, const TString& prefix /* = "" */) {
275 if (value == "__remove__")
276 return Remove(prefix + path);
277 else if (value == "__remove_all__")
278 return RemoveAll(prefix + path);
279 else if (value == "__add_section__")
280 return AddSection(prefix + path);
281 else
282 return SetValue(prefix + path, value);
283}
284
285[[nodiscard]] bool TUnstrictConfig::ParseJson(const NJson::TJsonValue& json) {
286 Y_ABORT_UNLESS(ParseMemory(""));

Callers 1

PatchMethod · 0.80

Calls 2

RemoveAllFunction · 0.85
SetValueFunction · 0.50

Tested by

no test coverage detected