aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson/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/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/detail.h')
-rw-r--r--library/cpp/yson/detail.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/yson/detail.h b/library/cpp/yson/detail.h
index b585e5dcd8..27f5e8ffff 100644
--- a/library/cpp/yson/detail.h
+++ b/library/cpp/yson/detail.h
@@ -380,9 +380,9 @@ namespace NYson {
void CheckMemoryLimit() {
if (MemoryLimit_ && Buffer_.capacity() > *MemoryLimit_) {
- ythrow TYsonException()
- << "Memory limit exceeded while parsing YSON stream: allocated "
- << Buffer_.capacity() << ", limit " << (*MemoryLimit_);
+ ythrow TYsonException()
+ << "Memory limit exceeded while parsing YSON stream: allocated "
+ << Buffer_.capacity() << ", limit " << (*MemoryLimit_);
}
}
@@ -411,7 +411,7 @@ namespace NYson {
Buffer_.push_back(ch);
result = ENumericResult::Uint64;
} else if (isalpha(ch)) {
- ythrow TYsonException() << "Unexpected '" << ch << "' in numeric literal";
+ ythrow TYsonException() << "Unexpected '" << ch << "' in numeric literal";
} else {
break;
}
@@ -531,7 +531,7 @@ namespace NYson {
i32 length = ZigZagDecode32(ulength);
if (length < 0) {
- ythrow TYsonException() << "Negative binary string literal length " << length;
+ ythrow TYsonException() << "Negative binary string literal length " << length;
}
if (TBaseStream::Begin() + length <= TBaseStream::End()) {
@@ -564,7 +564,7 @@ namespace NYson {
static TStringBuf falseString = "false";
auto throwIncorrectBoolean = [&]() {
- ythrow TYsonException() << "Incorrect boolean string " << TString(Buffer_.data(), Buffer_.size());
+ ythrow TYsonException() << "Incorrect boolean string " << TString(Buffer_.data(), Buffer_.size());
};
Buffer_.push_back(TBaseStream::template GetChar<AllowFinish>());
@@ -637,7 +637,7 @@ namespace NYson {
void SkipCharToken(char symbol) {
char ch = SkipSpaceAndGetChar();
if (ch != symbol) {
- ythrow TYsonException() << "Expected '" << symbol << "' but found '" << ch << "'";
+ ythrow TYsonException() << "Expected '" << symbol << "' but found '" << ch << "'";
}
TBaseStream::Advance(1);