aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvadim-xd <vadim-xd@yandex-team.com>2023-12-04 22:49:22 +0300
committervadim-xd <vadim-xd@yandex-team.com>2023-12-05 07:27:15 +0300
commit13a0c7240bec3fb689296001a29f836bd7c5abfe (patch)
treea4d05f5a5d57e134ada36cc98e9c0d17c11ec41a
parent281e071434110042abd52486e6a6fabc0c2c8ab3 (diff)
downloadydb-13a0c7240bec3fb689296001a29f836bd7c5abfe.tar.gz
Add string_utils lib
-rw-r--r--util/string/strspn.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/string/strspn.h b/util/string/strspn.h
index 8229e74a9c..c33b980d25 100644
--- a/util/string/strspn.h
+++ b/util/string/strspn.h
@@ -15,9 +15,9 @@ public:
Init(s, TCStringEndIterator());
}
- //FirstOf
- template <class It>
- inline It FindFirstOf(It b, const char* e) const noexcept {
+ // FirstOf
+ template <class It1, class It2>
+ inline It1 FindFirstOf(It1 b, It2 e) const noexcept {
return FindFirst<false>(b, e);
}
@@ -26,9 +26,9 @@ public:
return FindFirst<false>(s, TCStringEndIterator());
}
- //FirstNotOf
- template <class It>
- inline It FindFirstNotOf(It b, const char* e) const noexcept {
+ // FirstNotOf
+ template <class It1, class It2>
+ inline It1 FindFirstNotOf(It1 b, It2 e) const noexcept {
return FindFirst<true>(b, e);
}