aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/escape.h
diff options
context:
space:
mode:
authorRuslan Kovalev <ruslan.a.kovalev@gmail.com>2022-02-10 16:46:44 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:44 +0300
commit59e19371de37995fcb36beb16cd6ec030af960bc (patch)
treefa68e36093ebff8b805462e9e6d331fe9d348214 /util/string/escape.h
parent89db6fe2fe2c32d2a832ddfeb04e8d078e301084 (diff)
downloadydb-59e19371de37995fcb36beb16cd6ec030af960bc.tar.gz
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/string/escape.h')
-rw-r--r--util/string/escape.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/util/string/escape.h b/util/string/escape.h
index b01be65b0e..fe69e21edd 100644
--- a/util/string/escape.h
+++ b/util/string/escape.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include <util/generic/string.h>
#include <util/generic/strbuf.h>
@@ -6,21 +6,21 @@
template <class TChar>
TBasicString<TChar>& EscapeCImpl(const TChar* str, size_t len, TBasicString<TChar>&);
-template <class TChar>
+template <class TChar>
TBasicString<TChar>& UnescapeCImpl(const TChar* str, size_t len, TBasicString<TChar>&);
-
+
template <class TChar>
TChar* UnescapeC(const TChar* str, size_t len, TChar* buf);
template <typename TChar>
static inline TBasicString<TChar>& EscapeC(const TChar* str, size_t len, TBasicString<TChar>& s) {
- return EscapeCImpl(str, len, s);
-}
-
-template <typename TChar>
+ return EscapeCImpl(str, len, s);
+}
+
+template <typename TChar>
static inline TBasicString<TChar> EscapeC(const TChar* str, size_t len) {
TBasicString<TChar> s;
- return EscapeC(str, len, s);
+ return EscapeC(str, len, s);
}
template <typename TChar>
@@ -30,16 +30,16 @@ static inline TBasicString<TChar> EscapeC(const TBasicStringBuf<TChar>& str) {
template <typename TChar>
static inline TBasicString<TChar>& UnescapeC(const TChar* str, size_t len, TBasicString<TChar>& s) {
- return UnescapeCImpl(str, len, s);
-}
-
-template <typename TChar>
+ return UnescapeCImpl(str, len, s);
+}
+
+template <typename TChar>
static inline TBasicString<TChar> UnescapeC(const TChar* str, size_t len) {
TBasicString<TChar> s;
- return UnescapeCImpl(str, len, s);
-}
-
-template <typename TChar>
+ return UnescapeCImpl(str, len, s);
+}
+
+template <typename TChar>
static inline TBasicString<TChar> EscapeC(TChar ch) {
return EscapeC(&ch, 1);
}
@@ -51,14 +51,14 @@ static inline TBasicString<TChar> EscapeC(const TChar* str) {
TString& EscapeC(const TStringBuf str, TString& res);
TUtf16String& EscapeC(const TWtringBuf str, TUtf16String& res);
-
+
// these two need to be methods, because of TBasicString::Quote implementation
TString EscapeC(const TString& str);
TUtf16String EscapeC(const TUtf16String& str);
-
+
TString& UnescapeC(const TStringBuf str, TString& res);
TUtf16String& UnescapeC(const TWtringBuf str, TUtf16String& res);
-
+
TString UnescapeC(const TStringBuf str);
TUtf16String UnescapeC(const TWtringBuf wtr);