aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson/detail.h
diff options
context:
space:
mode:
authorlevysotsky <levysotsky@yandex-team.ru>2022-02-10 16:47:29 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:29 +0300
commit32b231c8474a1ade4bdf776ade6a20341691d9d7 (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/yson/detail.h
parent57f874ffc2a75047c1c4fea7a9fc86cb0f56ed50 (diff)
downloadydb-32b231c8474a1ade4bdf776ade6a20341691d9d7.tar.gz
Restoring authorship annotation for <levysotsky@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yson/detail.h')
-rw-r--r--library/cpp/yson/detail.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/yson/detail.h b/library/cpp/yson/detail.h
index 1b0bd4c449..27f5e8ffff 100644
--- a/library/cpp/yson/detail.h
+++ b/library/cpp/yson/detail.h
@@ -453,7 +453,7 @@ namespace NYson {
default:
ythrow TYsonException() << "Incorrect %-literal prefix: '" << ch << "'";
}
-
+
for (size_t i = 0; i < expectedString.size(); ++i) {
if (expectedString[i] != ch) {
ythrow TYsonException()
@@ -464,10 +464,10 @@ namespace NYson {
TBaseStream::Advance(1);
ch = TBaseStream::template GetChar<AllowFinish>();
}
-
+
return expectedValue;
- }
-
+ }
+
void ReadQuotedString(TStringBuf* value) {
Buffer_.clear();
while (true) {
@@ -494,14 +494,14 @@ namespace NYson {
}
CheckMemoryLimit();
}
-
+
auto unquotedValue = UnescapeC(Buffer_.data(), Buffer_.size());
Buffer_.clear();
Buffer_.insert(Buffer_.end(), unquotedValue.data(), unquotedValue.data() + unquotedValue.size());
CheckMemoryLimit();
*value = TStringBuf(Buffer_.data(), Buffer_.size());
}
-
+
template <bool AllowFinish>
void ReadUnquotedString(TStringBuf* value) {
Buffer_.clear();