|
ICU 78.2 78.2
|
C++ header-only API: C++ iterators over Unicode strings (=UTF-8/16/32 if well-formed). More...
#include "unicode/utypes.h"#include <iterator>#include <string>#include <string_view>#include <type_traits>#include "unicode/utf16.h"#include "unicode/utf8.h"#include "unicode/uversion.h"Go to the source code of this file.
Typedefs | |
| typedef enum UTFIllFormedBehavior | UTFIllFormedBehavior |
| Some defined behaviors for handling ill-formed Unicode strings. | |
| template<typename Iter > | |
| using | U_HEADER_ONLY_NAMESPACE::prv::iter_value_t = typename std::iterator_traits< Iter >::value_type |
| template<typename Iter > | |
| using | U_HEADER_ONLY_NAMESPACE::prv::iter_difference_t = typename std::iterator_traits< Iter >::difference_type |
Enumerations | |
| enum | UTFIllFormedBehavior { UTF_BEHAVIOR_NEGATIVE , UTF_BEHAVIOR_FFFD , UTF_BEHAVIOR_SURROGATE } |
| Some defined behaviors for handling ill-formed Unicode strings. More... | |
Variables | |
| template<typename Iter > | |
| constexpr bool | U_HEADER_ONLY_NAMESPACE::prv::forward_iterator |
| template<typename Iter > | |
| constexpr bool | U_HEADER_ONLY_NAMESPACE::prv::bidirectional_iterator |
| template<typename Range > | |
| constexpr bool | U_HEADER_ONLY_NAMESPACE::prv::range = range_type<Range>::value |
| template<typename T > | |
| constexpr bool | U_HEADER_ONLY_NAMESPACE::prv::is_basic_string_view_v = is_basic_string_view<T>::value |
C++ header-only API: C++ iterators over Unicode strings (=UTF-8/16/32 if well-formed).
Sample code:
Definition in file utfiterator.h.
| using U_HEADER_ONLY_NAMESPACE::prv::iter_difference_t = typedef typename std::iterator_traits<Iter>::difference_type |
Definition at line 203 of file utfiterator.h.
| using U_HEADER_ONLY_NAMESPACE::prv::iter_value_t = typedef typename std::iterator_traits<Iter>::value_type |
Definition at line 199 of file utfiterator.h.
| typedef enum UTFIllFormedBehavior UTFIllFormedBehavior |
Some defined behaviors for handling ill-formed Unicode strings.
This is a template parameter for UTFIterator and related classes.
When a validating UTFIterator encounters an ill-formed code unit sequence, then CodeUnits.codePoint() is a value according to this parameter.
| enum UTFIllFormedBehavior |
Some defined behaviors for handling ill-formed Unicode strings.
This is a template parameter for UTFIterator and related classes.
When a validating UTFIterator encounters an ill-formed code unit sequence, then CodeUnits.codePoint() is a value according to this parameter.
| Enumerator | |
|---|---|
| UTF_BEHAVIOR_NEGATIVE | Returns a negative value (-1=U_SENTINEL) instead of a code point. If the CP32 template parameter for the relevant classes is an unsigned type, then the negative value becomes 0xffffffff=UINT32_MAX.
|
| UTF_BEHAVIOR_FFFD | Returns U+FFFD Replacement Character.
|
| UTF_BEHAVIOR_SURROGATE | UTF-8: Not allowed; UTF-16: returns the unpaired surrogate; UTF-32: returns the surrogate code point, or U+FFFD if out of range.
|
Definition at line 149 of file utfiterator.h.
|
constexpr |
Definition at line 214 of file utfiterator.h.
|
constexpr |
Definition at line 207 of file utfiterator.h.
|
constexpr |
Definition at line 244 of file utfiterator.h.
|
constexpr |
Definition at line 232 of file utfiterator.h.