nxt::utf8::word_view class

Forward range over non-separator words in a string view.

Public types

class iterator
Iterator over words.

Constructors, destructors, conversion operators

word_view() defaulted
Construct an empty view.
word_view(std::string_view text) explicit
Construct a word view over borrowed text.

Public functions

auto begin() const →  iterator noexcept
Begin iterating words.
auto end() const →  std::default_sentinel_t noexcept
End sentinel.