diff options
author | pkalinnikov <pkalinnikov@yandex-team.ru> | 2022-02-10 16:50:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:15 +0300 |
commit | 9e33e026829d561d6fd46d72b88c367952e08075 (patch) | |
tree | 2af190fca83ac522e9a7e29de1daae32582064b4 /util/string/escape.h | |
parent | ba5325cc01aabb81effc91ff1bdbb461313cbd00 (diff) | |
download | ydb-9e33e026829d561d6fd46d72b88c367952e08075.tar.gz |
Restoring authorship annotation for <pkalinnikov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/escape.h')
-rw-r--r-- | util/string/escape.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/string/escape.h b/util/string/escape.h index b01be65b0e..9ab9cf574d 100644 --- a/util/string/escape.h +++ b/util/string/escape.h @@ -61,10 +61,10 @@ TUtf16String& UnescapeC(const TWtringBuf str, TUtf16String& res); TString UnescapeC(const TStringBuf str); TUtf16String UnescapeC(const TWtringBuf wtr); - -/// Returns number of chars in escape sequence. -/// - 0, if begin >= end -/// - 1, if [begin, end) starts with an unescaped char -/// - at least 2 (including '\'), if [begin, end) starts with an escaped symbol -template <class TChar> -size_t UnescapeCCharLen(const TChar* begin, const TChar* end); + +/// Returns number of chars in escape sequence. +/// - 0, if begin >= end +/// - 1, if [begin, end) starts with an unescaped char +/// - at least 2 (including '\'), if [begin, end) starts with an escaped symbol +template <class TChar> +size_t UnescapeCCharLen(const TChar* begin, const TChar* end); |