diff options
author | albert <albert@yandex-team.ru> | 2022-02-10 16:48:14 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:14 +0300 |
commit | 9f25ef3232c288ca664ceee6c376cf64e4349a2e (patch) | |
tree | b192eaf3150845f7302fafd460a972b0439d6fe5 /util/string/util.h | |
parent | 6a1e535429145ec1ecfbc5f1efd3c95323261fb5 (diff) | |
download | ydb-9f25ef3232c288ca664ceee6c376cf64e4349a2e.tar.gz |
Restoring authorship annotation for <albert@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/util.h')
-rw-r--r-- | util/string/util.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/string/util.h b/util/string/util.h index 0d77a5042b..b42a5f2050 100644 --- a/util/string/util.h +++ b/util/string/util.h @@ -102,19 +102,19 @@ public: return cbrk(s) - s; } - size_t spn(const char* s, const char* e) const { - return cbrk(s, e) - s; - } - + size_t spn(const char* s, const char* e) const { + return cbrk(s, e) - s; + } + /// Offset of the first character in table, like strcspn(). size_t cspn(const char* s) const { return brk(s) - s; } - size_t cspn(const char* s, const char* e) const { - return brk(s, e) - s; - } - + size_t cspn(const char* s, const char* e) const { + return brk(s, e) - s; + } + char* brk(char* s) const { return const_cast<char*>(brk((const char*)s)); } |