u5e
UnicodeTextC++Library
|
Represents a single grapheme cluster. More...
#include <u5e/basic_grapheme.hpp>
Public Types | |
typedef UnderlyingEncodedStringView::const_iterator | const_codepoint_iterator |
Public Member Functions | |
basic_grapheme () | |
basic_grapheme (const_codepoint_iterator b, const_codepoint_iterator e) | |
const_codepoint_iterator | codepoint_begin () |
const_codepoint_iterator | codepoint_end () |
Represents a single grapheme cluster.
It works by holding start and end values for an underlying encodedstring_view-like object.
UnderlyingEncodedStringView | a basic_encodedstring instantiation. |
Definition at line 15 of file basic_grapheme.hpp.
typedef UnderlyingEncodedStringView::const_iterator u5e::basic_grapheme< UnderlyingEncodedStringView >::const_codepoint_iterator |
const_codepoint_iterator allows you to traverse the codepoints inside this grapheme.
Definition at line 22 of file basic_grapheme.hpp.
|
inline |
Default constructor is only valid if the underlying type allows it
Definition at line 39 of file basic_grapheme.hpp.
|
inline |
Construct it with the iterators representing the begin and the end of the grapheme.
Definition at line 45 of file basic_grapheme.hpp.
|
inline |
get the beginning of the codepoints
Definition at line 52 of file basic_grapheme.hpp.
|
inline |
get the end of the codepoints
Definition at line 59 of file basic_grapheme.hpp.