|
ICU 78.1
78.1
|
A C++ "range" for non-validating iteration over all of the code points of a code unit range. More...
#include <utfiterator.h>
Public Member Functions | |
| UnsafeUTFStringCodePoints ()=default | |
| Constructs an empty C++ "range" object. More... | |
| template<typename R = Range, typename = std::enable_if_t<!std::is_reference_v<R>>> | |
| UnsafeUTFStringCodePoints (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> | |
| UnsafeUTFStringCodePoints (Range unitRange) | |
| Constructs a C++ "range" object over the code points in the string, keeping a reference to the code unit range. More... | |
| UnsafeUTFStringCodePoints (const UnsafeUTFStringCodePoints &other)=default | |
| Copy constructor. More... | |
| UnsafeUTFStringCodePoints & | operator= (const UnsafeUTFStringCodePoints &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 non-validating iteration over all of the code points of a code unit range.
The string must be well-formed.
Call unsafeUTFStringCodePoints() to have the compiler deduce the Range type.
| CP32 | Code point type: UChar32 (=int32_t) or char32_t or uint32_t |
| Range | A C++ "range" of Unicode UTF-8/16/32 code units |
Definition at line 2470 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 2485 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 2495 of file utfiterator.h.
|
default |
Copy constructor.
|
inline |
Definition at line 2507 of file utfiterator.h.
Referenced by U_HEADER_ONLY_NAMESPACE::UnsafeUTFStringCodePoints< CP32, Range >::rend().
|
inline |
Definition at line 2516 of file utfiterator.h.
|
inline |
Definition at line 2524 of file utfiterator.h.
Referenced by U_HEADER_ONLY_NAMESPACE::UnsafeUTFStringCodePoints< CP32, Range >::rbegin().
|
inline |
Definition at line 2540 of file utfiterator.h.
|
default |
Copy assignment operator.
|
inline |
Definition at line 2555 of file utfiterator.h.
References U_HEADER_ONLY_NAMESPACE::UnsafeUTFStringCodePoints< CP32, Range >::end().
|
inline |
Definition at line 2563 of file utfiterator.h.
References U_HEADER_ONLY_NAMESPACE::UnsafeUTFStringCodePoints< CP32, Range >::begin().