aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/easy_parse/json_easy_parser.cpp
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:10 +0300
commitbaa58daefa91fde4b4769facdbd2903763b9c6a8 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/json/easy_parse/json_easy_parser.cpp
parent3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff)
downloadydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 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.cpp10
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 c2193ea553..3c781f544b 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];
}