aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/escape.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/string/escape.h
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
downloadydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/escape.h')
-rw-r--r--util/string/escape.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/string/escape.h b/util/string/escape.h
index 91120fc292..b01be65b0e 100644
--- a/util/string/escape.h
+++ b/util/string/escape.h
@@ -4,48 +4,48 @@
#include <util/generic/strbuf.h>
template <class TChar>
-TBasicString<TChar>& EscapeCImpl(const TChar* str, size_t len, TBasicString<TChar>&);
+TBasicString<TChar>& EscapeCImpl(const TChar* str, size_t len, TBasicString<TChar>&);
template <class TChar>
-TBasicString<TChar>& UnescapeCImpl(const TChar* str, size_t len, TBasicString<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) {
+static inline TBasicString<TChar>& EscapeC(const TChar* str, size_t len, TBasicString<TChar>& s) {
return EscapeCImpl(str, len, s);
}
template <typename TChar>
-static inline TBasicString<TChar> EscapeC(const TChar* str, size_t len) {
- TBasicString<TChar> s;
+static inline TBasicString<TChar> EscapeC(const TChar* str, size_t len) {
+ TBasicString<TChar> s;
return EscapeC(str, len, s);
}
template <typename TChar>
-static inline TBasicString<TChar> EscapeC(const TBasicStringBuf<TChar>& str) {
+static inline TBasicString<TChar> EscapeC(const TBasicStringBuf<TChar>& str) {
return EscapeC(str.data(), str.size());
}
template <typename TChar>
-static inline TBasicString<TChar>& UnescapeC(const TChar* str, size_t len, TBasicString<TChar>& s) {
+static inline TBasicString<TChar>& UnescapeC(const TChar* str, size_t len, TBasicString<TChar>& s) {
return UnescapeCImpl(str, len, s);
}
template <typename TChar>
-static inline TBasicString<TChar> UnescapeC(const TChar* str, size_t len) {
- TBasicString<TChar> s;
+static inline TBasicString<TChar> UnescapeC(const TChar* str, size_t len) {
+ TBasicString<TChar> s;
return UnescapeCImpl(str, len, s);
}
template <typename TChar>
-static inline TBasicString<TChar> EscapeC(TChar ch) {
+static inline TBasicString<TChar> EscapeC(TChar ch) {
return EscapeC(&ch, 1);
}
template <typename TChar>
-static inline TBasicString<TChar> EscapeC(const TChar* str) {
+static inline TBasicString<TChar> EscapeC(const TChar* str) {
return EscapeC(str, std::char_traits<TChar>::length(str));
}