|
ICU 78.1
78.1
|
A C++ "range" for validating iteration over all of the code points of a code unit range. More...
#include <utfiterator.h>
Public Member Functions | |
| UTFStringCodePoints ()=default | |
| Constructs an empty C++ "range" object. More... | |
| template<typename R = Range, typename = std::enable_if_t<!std::is_reference_v<R>>> | |
| UTFStringCodePoints (Range unitRange) | |
| Constructs a C++ "range" object over the code points in the string. More... | |
| template<typename R = Range, typename = std::enable_if_t<std::is_reference_v<R>>, typename = void> | |
| UTFStringCodePoints (Range unitRange) | |
| Constructs a C++ "range" object over the code points in the string, keeping a reference to the code unit range. More... | |
| UTFStringCodePoints (const UTFStringCodePoints &other)=default | |
| Copy constructor. More... | |
| UTFStringCodePoints & | operator= (const UTFStringCodePoints &other)=default |
| Copy assignment operator. More... | |
| auto | begin () |
| template<typename R = Range, typename = std::enable_if_t<prv::range<const R>>> | |
| auto | begin () const |
| auto | end () |
| template<typename R = Range, typename = std::enable_if_t<prv::range<const R>>> | |
| auto | end () const |
| auto | rbegin () const |
| auto | rend () const |
A C++ "range" for validating iteration over all of the code points of a code unit range.
Call utfStringCodePoints() to have the compiler deduce the Range type.
| CP32 | Code point type: UChar32 (=int32_t) or char32_t or uint32_t; should be signed if UTF_BEHAVIOR_NEGATIVE |
| behavior | How to handle ill-formed Unicode strings |
| Range | A C++ "range" of Unicode UTF-8/16/32 code units |
Definition at line 1752 of file utfiterator.h.
|
default |
Constructs an empty C++ "range" object.
|
inlineexplicit |
Constructs a C++ "range" object over the code points in the string.
| unitRange | input range |
Definition at line 1767 of file utfiterator.h.
|
inlineexplicit |
Constructs a C++ "range" object over the code points in the string, keeping a reference to the code unit range.
This overload is used by utfStringCodePoints in C++17; in C+20, a ref_view is used instead (via views::all).
| unitRange | input range |
Definition at line 1777 of file utfiterator.h.
|
default |
Copy constructor.
|
inline |
Definition at line 1789 of file utfiterator.h.
Referenced by U_HEADER_ONLY_NAMESPACE::UTFStringCodePoints< CP32, behavior, Range >::rend().
|
inline |
Definition at line 1798 of file utfiterator.h.
|
inline |
Definition at line 1806 of file utfiterator.h.
Referenced by U_HEADER_ONLY_NAMESPACE::UTFStringCodePoints< CP32, behavior, Range >::rbegin().
|
inline |
Definition at line 1825 of file utfiterator.h.
|
default |
Copy assignment operator.
|
inline |
Definition at line 1843 of file utfiterator.h.
References U_HEADER_ONLY_NAMESPACE::UTFStringCodePoints< CP32, behavior, Range >::end().
|
inline |
Definition at line 1851 of file utfiterator.h.
References U_HEADER_ONLY_NAMESPACE::UTFStringCodePoints< CP32, behavior, Range >::begin().