18 #include <u5e/utf8_string.hpp> 19 #include <u5e/utf8_string_grapheme_iterator.hpp> 21 using u5e::utf8_string;
22 using u5e::utf8_string_grapheme_iterator;
23 int main(
int argc,
char** argv) {
25 string str(
"Ola\xCC\x81!");
30 string::const_iterator stri = str.cbegin();
31 std::advance(stri, 4);
51 std::cout << output.native_string << std::endl;
basic_grapheme_iterator(const_codepoint_iterator b, const_codepoint_iterator e, const_codepoint_iterator w)
start at a specific point find the start and the end of the grapheme
basic_grapheme_iterator(const_codepoint_iterator b, const_codepoint_iterator e)
start at the beginning of the text
utf8_const_iterator(const NativeIterator raw_iterator)
basic_encodedstring(const NativeString &s)
basic_grapheme_iterator< utf8_string > utf8_string_grapheme_iterator
A basic_grapheme_iterator of utf8_string.
basic_encodedstring & append(basic_grapheme_iterator< basic_encodedstring > &first, basic_grapheme_iterator< basic_encodedstring > &last)
basic_encodedstring< utf8, std::string > utf8_string
A basic_encodedstring of utf8 and std::string.