aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/util.h
diff options
context:
space:
mode:
authorantonovvk <antonovvk@yandex-team.ru>2022-02-10 16:47:51 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:51 +0300
commit37a63debdc21e372d99e1808cdd31aecf75018c3 (patch)
treefd84293fb9a1b16381dd6c1a5e14c78afacb8710 /util/string/util.h
parent1fe621e70df847cc201ac942fe6d7804ea10508d (diff)
downloadydb-37a63debdc21e372d99e1808cdd31aecf75018c3.tar.gz
Restoring authorship annotation for <antonovvk@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/util.h')
-rw-r--r--util/string/util.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/string/util.h b/util/string/util.h
index 0d77a5042b8..4901e8ba22e 100644
--- a/util/string/util.h
+++ b/util/string/util.h
@@ -77,12 +77,12 @@ public:
return s;
}
- const char* brk(const char* s, const char* e) const {
- while (s < e && c_chars_table[(ui8)*s])
+ const char* brk(const char* s, const char* e) const {
+ while (s < e && c_chars_table[(ui8)*s])
++s;
- return s;
- }
-
+ return s;
+ }
+
/// Return first character not in table, like strpbrk() for inverted table.
/// That is, skip all characters in table
const char* cbrk(const char* s) const {
@@ -91,12 +91,12 @@ public:
return s;
}
- const char* cbrk(const char* s, const char* e) const {
- while (s < e && chars_table[(ui8)*s])
+ const char* cbrk(const char* s, const char* e) const {
+ while (s < e && chars_table[(ui8)*s])
++s;
- return s;
- }
-
+ return s;
+ }
+
/// Offset of the first character not in table, like strspn().
size_t spn(const char* s) const {
return cbrk(s) - s;
@@ -172,7 +172,7 @@ public:
void Do(char* s, size_t l) const {
for (size_t i = 0; i < l && s[i]; i++)
s[i] = ConvertChar(s[i]);
- }
+ }
void Do(TString& str) const;
private: