u5e
UnicodeTextC++Library
smallest_code.cpp
1 /**
2  * \page smallest_code Example: using utf8_iterator with const char*
3  *
4  * This example shows that it's possible to use the utf8 iterator with a
5  * bare const char*, even without getting a string or a string_view.
6  *
7  * \code
8  */// example
9 
10 #include <u5e/utf8_iterator.hpp>
11 int main(int argc, char** argv) {
12  // you can instantiate utf8_iterator even with const char*
13  u5e::utf8_iterator<const char*> it(argv[1]);
14  return *it;
15 }
16 
17 /**
18  * \endcode
19  */
utf8_iterator(const NativeIterator raw_iterator)
main u5e namespace
mutable utf8 iterator
proxyobject operator*()