From 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 Mon Sep 17 00:00:00 2001 From: danlark <danlark@yandex-team.ru> Date: Thu, 10 Feb 2022 16:46:08 +0300 Subject: Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2. --- library/cpp/string_utils/relaxed_escaper/relaxed_escaper.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'library/cpp/string_utils/relaxed_escaper') diff --git a/library/cpp/string_utils/relaxed_escaper/relaxed_escaper.h b/library/cpp/string_utils/relaxed_escaper/relaxed_escaper.h index d7ea7c1259..068e8368d9 100644 --- a/library/cpp/string_utils/relaxed_escaper/relaxed_escaper.h +++ b/library/cpp/string_utils/relaxed_escaper/relaxed_escaper.h @@ -151,12 +151,12 @@ namespace NEscJ { template <bool quote, bool tounicode> inline void EscapeJ(TStringBuf in, IOutputStream& out, TStringBuf safe = TStringBuf(), TStringBuf unsafe = TStringBuf()) { - TTempBuf b(SuggestBuffer(in.size()) + 2); + TTempBuf b(SuggestBuffer(in.size()) + 2); if (quote) b.Append("\"", 1); - b.Proceed(EscapeJ<tounicode>(in.data(), in.size(), b.Current(), safe, unsafe)); + b.Proceed(EscapeJ<tounicode>(in.data(), in.size(), b.Current(), safe, unsafe)); if (quote) b.Append("\"", 1); @@ -166,12 +166,12 @@ namespace NEscJ { template <bool quote, bool tounicode> inline void EscapeJ(TStringBuf in, TString& out, TStringBuf safe = TStringBuf(), TStringBuf unsafe = TStringBuf()) { - TTempBuf b(SuggestBuffer(in.size()) + 2); + TTempBuf b(SuggestBuffer(in.size()) + 2); if (quote) b.Append("\"", 1); - b.Proceed(EscapeJ<tounicode>(in.data(), in.size(), b.Current(), safe, unsafe)); + b.Proceed(EscapeJ<tounicode>(in.data(), in.size(), b.Current(), safe, unsafe)); if (quote) b.Append("\"", 1); -- cgit v1.2.3