aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/util.h
diff options
context:
space:
mode:
authoralbert <albert@yandex-team.ru>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:14 +0300
commit9f25ef3232c288ca664ceee6c376cf64e4349a2e (patch)
treeb192eaf3150845f7302fafd460a972b0439d6fe5 /util/string/util.h
parent6a1e535429145ec1ecfbc5f1efd3c95323261fb5 (diff)
downloadydb-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.h16
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));
}