aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/fast_sax
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:08 +0300
commit3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch)
tree26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /library/cpp/json/fast_sax
parentcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff)
downloadydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 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 edb4e9ee1b..ef3cfb5110 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 72109b0b5e..bf07db23dd 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));
}