u5e
UnicodeTextC++Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
examples
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
*/
u5e::utf8_iterator::utf8_iterator
utf8_iterator(const NativeIterator raw_iterator)
Definition:
utf8_iterator.hpp:218
u5e
main u5e namespace
Definition:
basic_encodedstring.hpp:10
u5e::utf8_iterator
mutable utf8 iterator
Definition:
utf8_iterator.hpp:207
u5e::utf8_iterator::operator*
proxyobject operator*()
Definition:
utf8_iterator.hpp:340
Generated by
1.8.11