qxLib
string_view_view.inl
Go to the documentation of this file.
1 /**
2 
3  @file string_view_view.inl
4  @author Khrapov
5  @date 24.10.2023
6  @copyright © Nick Khrapov, 2023. All right reserved.
7 
8 **/
9 
10 namespace qx
11 {
12 
13 template<class char_t>
15  basic_string_view<char_t> svFull,
16  char_t chDelimiter,
17  flags<delimiter_inclusion_flags> eDelimiterInclusionFlags) noexcept
18  : m_svFull(svFull)
19  , m_chDelimiter(chDelimiter)
20  , m_eDelimiterInclusionFlags(eDelimiterInclusionFlags)
21 {
22 }
23 
24 template<class char_t>
26 {
27  return string_view_iterator<char_t>::begin(m_svFull, m_chDelimiter, m_eDelimiterInclusionFlags);
28 }
29 
30 template<class char_t>
32 {
34 }
35 
36 } // namespace qx
Iterator class that allows to iterate over a string view using a delimiter character.
static constexpr string_view_iterator begin(value_type svFull, char_t chDelimiter, flags< delimiter_inclusion_flags > eDelimiterInclusionFlags=delimiter_inclusion_flags::none)
Return iterator to beginning.
static constexpr string_view_iterator end()
Return iterator to end.
string_view_iterator< char_t > end() const noexcept
Return iterator to end.
constexpr string_view_view(basic_string_view< char_t > svFull, char_t chDelimiter, flags< delimiter_inclusion_flags > eDelimiterInclusionFlags=delimiter_inclusion_flags::none) noexcept
string_view_view object constructor
string_view_iterator< char_t > begin() const noexcept
Return iterator to beginning.