aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson/parser_detail.h
diff options
context:
space:
mode:
authorlaplab <laplab@yandex-team.ru>2022-02-10 16:47:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:56 +0300
commit9968a46231e337bd46eca82216b40f8eadec679c (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/yson/parser_detail.h
parentf102186b7df1a2a26c35c81eeed5ae914484bdab (diff)
downloadydb-9968a46231e337bd46eca82216b40f8eadec679c.tar.gz
Restoring authorship annotation for <laplab@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yson/parser_detail.h')
-rw-r--r--library/cpp/yson/parser_detail.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/yson/parser_detail.h b/library/cpp/yson/parser_detail.h
index ba44c92e7e..44223caf12 100644
--- a/library/cpp/yson/parser_detail.h
+++ b/library/cpp/yson/parser_detail.h
@@ -40,7 +40,7 @@ namespace NYson {
while (!(TBase::IsFinished() && TBase::IsEmpty())) {
if (TBase::template SkipSpaceAndGetChar<true>() != EndSymbol) {
- ythrow TYsonException() << "Stray '" << (*TBase::Begin()) << "' found";
+ ythrow TYsonException() << "Stray '" << (*TBase::Begin()) << "' found";
} else if (!TBase::IsEmpty()) {
TBase::Advance(1);
}
@@ -163,7 +163,7 @@ namespace NYson {
Consumer->OnDoubleScalar(TBase::template ReadNanOrInf<AllowFinish>());
}
} else {
- ythrow TYsonException() << "Unexpected '" << ch << "' while parsing node";
+ ythrow TYsonException() << "Unexpected '" << ch << "' while parsing node";
}
}
}
@@ -195,7 +195,7 @@ namespace NYson {
TBase::ReadUnquotedString(&value);
Consumer->OnKeyedItem(value);
} else {
- ythrow TYsonException() << "Unexpected '" << ch << "' while parsing key";
+ ythrow TYsonException() << "Unexpected '" << ch << "' while parsing key";
}
}
}
@@ -210,7 +210,7 @@ namespace NYson {
if (ch == KeyValueSeparatorSymbol) {
TBase::Advance(1);
} else {
- ythrow TYsonException() << "Expected '" << KeyValueSeparatorSymbol << "' but '" << ch << "' found";
+ ythrow TYsonException() << "Expected '" << KeyValueSeparatorSymbol << "' but '" << ch << "' found";
}
ParseNode<AllowFinish>();
ch = TBase::template SkipSpaceAndGetChar<AllowFinish>();
@@ -218,8 +218,8 @@ namespace NYson {
TBase::Advance(1);
ch = TBase::template SkipSpaceAndGetChar<AllowFinish>();
} else if (ch != endSymbol) {
- ythrow TYsonException() << "Expected '" << KeyedItemSeparatorSymbol
- << "' or '" << endSymbol << "' but '" << ch << "' found";
+ ythrow TYsonException() << "Expected '" << KeyedItemSeparatorSymbol
+ << "' or '" << endSymbol << "' but '" << ch << "' found";
}
}
}
@@ -246,8 +246,8 @@ namespace NYson {
TBase::Advance(1);
return true;
} else if (ch != endSymbol) {
- ythrow TYsonException() << "Expected '" << ListItemSeparatorSymbol
- << "' or '" << endSymbol << "' but '" << ch << "' found";
+ ythrow TYsonException() << "Expected '" << ListItemSeparatorSymbol
+ << "' or '" << endSymbol << "' but '" << ch << "' found";
}
return false;
}
@@ -273,7 +273,7 @@ namespace NYson {
value = FromString<double>(valueBuffer);
} catch (yexception& e) {
// This exception is wrapped in parser.
- ythrow TYsonException() << "Failed to parse double literal '" << valueBuffer << "'" << e;
+ ythrow TYsonException() << "Failed to parse double literal '" << valueBuffer << "'" << e;
}
Consumer->OnDoubleScalar(value);
} else if (numericResult == ENumericResult::Int64) {
@@ -282,7 +282,7 @@ namespace NYson {
value = FromString<i64>(valueBuffer);
} catch (yexception& e) {
// This exception is wrapped in parser.
- ythrow TYsonException() << "Failed to parse int64 literal '" << valueBuffer << "'" << e;
+ ythrow TYsonException() << "Failed to parse int64 literal '" << valueBuffer << "'" << e;
}
Consumer->OnInt64Scalar(value);
} else if (numericResult == ENumericResult::Uint64) {
@@ -291,7 +291,7 @@ namespace NYson {
value = FromString<ui64>(valueBuffer.SubStr(0, valueBuffer.size() - 1));
} catch (yexception& e) {
// This exception is wrapped in parser.
- ythrow TYsonException() << "Failed to parse uint64 literal '" << valueBuffer << "'" << e;
+ ythrow TYsonException() << "Failed to parse uint64 literal '" << valueBuffer << "'" << e;
}
Consumer->OnUint64Scalar(value);
}