diff options
author | a-square <a-square@yandex-team.ru> | 2022-02-10 16:50:24 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:24 +0300 |
commit | 34f3f9bd7972f67d913075206081554a3e39a0de (patch) | |
tree | 89df462bfae95c8d9063871a9eae476233768b09 /util/string/ascii.h | |
parent | e7879def805c52076a0b162a0270dfb229379d4e (diff) | |
download | ydb-34f3f9bd7972f67d913075206081554a3e39a0de.tar.gz |
Restoring authorship annotation for <a-square@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/ascii.h')
-rw-r--r-- | util/string/ascii.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/string/ascii.h b/util/string/ascii.h index 10344384d3..602938811d 100644 --- a/util/string/ascii.h +++ b/util/string/ascii.h @@ -19,8 +19,8 @@ namespace NPrivate { CC_DIGIT = 8, CC_ALPHA = 16, CC_ALNUM = 32, - CC_ISHEX = 64, - CC_PUNCT = 128, + CC_ISHEX = 64, + CC_PUNCT = 128, }; extern const unsigned char ASCII_CLASS[256]; @@ -92,10 +92,10 @@ inline bool IsAsciiHex(unsigned char c) { return ::NPrivate::ASCII_CLASS[c] & ::NPrivate::CC_ISHEX; } -inline bool IsAsciiPunct(unsigned char c) { - return ::NPrivate::ASCII_CLASS[c] & ::NPrivate::CC_PUNCT; -} - +inline bool IsAsciiPunct(unsigned char c) { + return ::NPrivate::ASCII_CLASS[c] & ::NPrivate::CC_PUNCT; +} + // some overloads template <class T> @@ -133,11 +133,11 @@ inline bool IsAsciiHex(T c) { return ::NPrivate::RangeOk(c) && IsAsciiHex(static_cast<unsigned char>(c)); } -template <class T> -inline bool IsAsciiPunct(T c) { - return ::NPrivate::RangeOk(c) && IsAsciiPunct(static_cast<unsigned char>(c)); -} - +template <class T> +inline bool IsAsciiPunct(T c) { + return ::NPrivate::RangeOk(c) && IsAsciiPunct(static_cast<unsigned char>(c)); +} + // some extra helpers inline ui8 AsciiToLower(ui8 c) noexcept { return ::NPrivate::ASCII_LOWER[c]; |