diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
commit | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch) | |
tree | 506dac10f5df94fab310584ee51b24fc5a081c22 /util/string/escape.h | |
parent | 2d37894b1b037cf24231090eda8589bbb44fb6fc (diff) | |
download | ydb-4e839db24a3bbc9f1c610c43d6faaaa99824dcca.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/escape.h')
-rw-r--r-- | util/string/escape.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/string/escape.h b/util/string/escape.h index b01be65b0e..91120fc292 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)); } |