|
ICU 78.3 78.3
|
Result of decoding a code unit sequence for one code point. More...
#include <utfiterator.h>
Public Member Functions | |
| UnsafeCodeUnits (CP32 codePoint, uint8_t length, UnitIter start, UnitIter limit) | |
| UnsafeCodeUnits (const UnsafeCodeUnits &other)=default | |
| Copy constructor. | |
| UnsafeCodeUnits & | operator= (const UnsafeCodeUnits &other)=default |
| Copy assignment operator. | |
| CP32 | codePoint () const |
| UnitIter | begin () const |
| UnitIter | end () const |
| uint8_t | length () const |
| template<typename Iter = UnitIter, typename Unit = typename std::iterator_traits<Iter>::value_type> | |
| std::enable_if_t< std::is_pointer_v< Iter >||std::is_same_v< Iter, typename std::basic_string< Unit >::iterator >||std::is_same_v< Iter, typename std::basic_string< Unit >::const_iterator >||std::is_same_v< Iter, typename std::basic_string_view< Unit >::iterator >||std::is_same_v< Iter, typename std::basic_string_view< Unit >::const_iterator >, std::basic_string_view< Unit > > | stringView () const |
Result of decoding a code unit sequence for one code point.
Returned from non-validating Unicode string code point iterators. Base class for class CodeUnits which is returned from validating iterators.
| CP32 | Code point type: UChar32 (=int32_t) or char32_t or uint32_t; should be signed if UTF_BEHAVIOR_NEGATIVE |
| UnitIter | An iterator (often a pointer) that returns a code unit type: UTF-8: char or char8_t or uint8_t; UTF-16: char16_t or uint16_t or (on Windows) wchar_t; UTF-32: char32_t or UChar32=int32_t or (on Linux) wchar_t |
Definition at line 367 of file utfiterator.h.
|
inline |
Definition at line 372 of file utfiterator.h.
References codePoint(), and length().
Referenced by U_HEADER_ONLY_NAMESPACE::CodeUnits< CP32, UnitIter, typename >::CodeUnits(), operator=(), and UnsafeCodeUnits().
|
default |
Copy constructor.
References UnsafeCodeUnits().
|
inline |
Definition at line 394 of file utfiterator.h.
|
inline |
Definition at line 387 of file utfiterator.h.
Referenced by U_HEADER_ONLY_NAMESPACE::CodeUnits< CP32, UnitIter, typename >::CodeUnits(), and UnsafeCodeUnits().
|
inline |
Definition at line 401 of file utfiterator.h.
|
inline |
Definition at line 407 of file utfiterator.h.
Referenced by U_HEADER_ONLY_NAMESPACE::CodeUnits< CP32, UnitIter, typename >::CodeUnits(), and UnsafeCodeUnits().
|
default |
Copy assignment operator.
References UnsafeCodeUnits().
|
inline |
Definition at line 432 of file utfiterator.h.