diff options
author | axc <axc@yandex-team.ru> | 2022-02-10 16:47:36 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:36 +0300 |
commit | 7b659037613268d5eac4a1b6a7c5eff3cd36d4bf (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/string/split.h | |
parent | 1f5217043ad70f25dc35e75b3bd261a1e23d045e (diff) | |
download | ydb-7b659037613268d5eac4a1b6a7c5eff3cd36d4bf.tar.gz |
Restoring authorship annotation for <axc@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/split.h')
-rw-r--r-- | util/string/split.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/string/split.h b/util/string/split.h index 079912c9e8..bc46d9e64c 100644 --- a/util/string/split.h +++ b/util/string/split.h @@ -71,7 +71,7 @@ SplitString(I b, const TDelim& d, TConsumer&& c) { } while (c.Consume(l, i, b) && (b != i)); } -template <class I1, class I2> +template <class I1, class I2> static inline I1* FastStrChr(I1* str, I2 f) noexcept { I1* ret = NStringSplitPrivate::Find(str, f); @@ -114,8 +114,8 @@ struct TStringDelimiter { : Delim(delim) , Len(len) { - } - + } + inline Char* Find(Char*& b, Char* e) const noexcept { const auto ret = std::basic_string_view<Char>(b, e - b).find(Delim, 0, Len); |