boost::text::grapheme_view
// In header: <boost/text/grapheme_view.hpp> template<code_point_iter I, std::sentinel_for< I > S = I> struct grapheme_view : public stl_interfaces::view_interface< grapheme_view< I, I > > { // types typedef grapheme_iterator< I, S > iterator; typedef unspecified sentinel; // construct/copy/destruct grapheme_view(); grapheme_view(iterator, sentinel); grapheme_view(I, S); template<code_point_iter I2> grapheme_view(I2, I2, I2, I2); // public member functions constexpr iterator begin() const; constexpr sentinel end() const; // friend functions std::ostream & operator<<(std::ostream &, grapheme_view); std::wostream & operator<<(std::wostream &, grapheme_view); };
A view over graphemes that occur in an underlying sequence of code points.
grapheme_view
public
construct/copy/destructgrapheme_view();
grapheme_view(iterator first, sentinel last);
Construct a grapheme view that covers all the graphemes in [first, last)
.
grapheme_view(I first, S last);
Construct a grapheme view that covers all the graphemes in [first, last)
.
template<code_point_iter I2> grapheme_view(I2 first, I2 view_first, I2 view_last, I2 last);
Construct a grapheme view that covers only the graphemes in [view_first, view_last)
.
Note | |
---|---|
You should prefer this constructor over the |
grapheme_view
friend functionsstd::ostream & operator<<(std::ostream & os, grapheme_view v);
Stream inserter; performs unformatted output, in UTF-8 encoding.
std::wostream & operator<<(std::wostream & os, grapheme_view v);
Stream inserter; performs unformatted output, in UTF-16 encoding. Defined on Windows only.