aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/fast_sax
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/fast_sax
parent3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff)
downloadydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json/fast_sax')
-rw-r--r--library/cpp/json/fast_sax/parser.rl66
-rw-r--r--library/cpp/json/fast_sax/unescape.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/json/fast_sax/parser.rl6 b/library/cpp/json/fast_sax/parser.rl6
index ef3cfb5110..edb4e9ee1b 100644
--- a/library/cpp/json/fast_sax/parser.rl6
+++ b/library/cpp/json/fast_sax/parser.rl6
@@ -31,8 +31,8 @@ struct TParserCtx {
TParserCtx(TJsonCallbacks& h, TStringBuf data)
: Hndl(h)
- , p0(data.data())
- , p(data.data())
+ , p0(data.data())
+ , p(data.data())
, pe(data.end())
, eof(data.end())
{}
@@ -145,7 +145,7 @@ struct TParserCtx {
Buffer.Clear();
Buffer.Reserve(2 * (te - ts));
- return OnString(UnescapeJsonUnicode(TStringBuf(ts + 1, te - ts - 2), Buffer.data()), SS_MUSTCOPY);
+ return OnString(UnescapeJsonUnicode(TStringBuf(ts + 1, te - ts - 2), Buffer.data()), SS_MUSTCOPY);
}
bool OnMapClose() {
diff --git a/library/cpp/json/fast_sax/unescape.cpp b/library/cpp/json/fast_sax/unescape.cpp
index bf07db23dd..72109b0b5e 100644
--- a/library/cpp/json/fast_sax/unescape.cpp
+++ b/library/cpp/json/fast_sax/unescape.cpp
@@ -3,5 +3,5 @@
#include <util/string/escape.h>
TStringBuf UnescapeJsonUnicode(TStringBuf data, char* scratch) {
- return TStringBuf(scratch, UnescapeC(data.data(), data.size(), scratch));
+ return TStringBuf(scratch, UnescapeC(data.data(), data.size(), scratch));
}