aboutsummaryrefslogtreecommitdiffstats
path: root/util/string
diff options
context:
space:
mode:
authoralbert <albert@yandex-team.ru>2022-02-10 16:48:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:15 +0300
commita817f5de12611ec73085eba17f8ec7740a46bdb7 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/string
parent9f25ef3232c288ca664ceee6c376cf64e4349a2e (diff)
downloadydb-a817f5de12611ec73085eba17f8ec7740a46bdb7.tar.gz
Restoring authorship annotation for <albert@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string')
-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 b42a5f20504..0d77a5042b8 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));
}