diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
commit | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch) | |
tree | 26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /library/cpp/json/easy_parse/json_easy_parser.cpp | |
parent | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff) | |
download | ydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/json/easy_parse/json_easy_parser.cpp')
-rw-r--r-- | library/cpp/json/easy_parse/json_easy_parser.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/json/easy_parse/json_easy_parser.cpp b/library/cpp/json/easy_parse/json_easy_parser.cpp index 3c781f544b..c2193ea553 100644 --- a/library/cpp/json/easy_parse/json_easy_parser.cpp +++ b/library/cpp/json/easy_parse/json_easy_parser.cpp @@ -66,7 +66,7 @@ namespace NJson { bool CheckFilter(const TVector<TPathElem>& path) const { if (Stack.size() < path.size()) return false; - for (size_t n = 0; n < path.size(); ++n) { + for (size_t n = 0; n < path.size(); ++n) { if (!PathElementMatch(path[n], Stack[n])) return false; } @@ -74,7 +74,7 @@ namespace NJson { } void UpdateRule() { - for (size_t n = 0; n < Parent.Fields.size(); ++n) { + for (size_t n = 0; n < Parent.Fields.size(); ++n) { if (FieldValues[n].empty() && CheckFilter(Parent.Fields[n].Path)) { CurrentFieldIdx = n; return; @@ -113,7 +113,7 @@ namespace NJson { , CurrentFieldIdx(-1) , HasFormatError(false) { - for (size_t n = 0; n < Parent.Fields.size(); ++n) { + for (size_t n = 0; n < Parent.Fields.size(); ++n) { if (!Parent.Fields[n].Path.empty() && Parent.Fields[n].Path.back().Type == NImpl::ARRAY) ShouldUpdateOnArrayChange = true; } @@ -187,14 +187,14 @@ namespace NJson { bool IsOK() const { if (HasFormatError) return false; - for (size_t n = 0; n < FieldValues.size(); ++n) + for (size_t n = 0; n < FieldValues.size(); ++n) if (Parent.Fields[n].NonEmpty && FieldValues[n].empty()) return false; return true; } void WriteTo(IOutputStream& out) const { - for (size_t n = 0; n < FieldValues.size(); ++n) + for (size_t n = 0; n < FieldValues.size(); ++n) out << "\t" << FieldValues[n]; } |