ICU 77.1  77.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
U_HEADER_ONLY_NAMESPACE::USetCodePoints Class Reference

C++ "range" for iterating over the code points of a USet. More...

#include <uset.h>

Public Member Functions

 USetCodePoints (const USet *pUset)
 Constructs a C++ "range" object over the code points of the USet. More...
 
 USetCodePoints (const USetCodePoints &other)=default
 
USetCodePointIterator begin () const
 
USetCodePointIterator end () const
 

Detailed Description

C++ "range" for iterating over the code points of a USet.

using U_HEADER_NESTED_NAMESPACE::USetCodePoints;
LocalUSetPointer uset(uset_openPattern(u"[abcçカ🚴]", -1, &errorCode));
for (UChar32 c : USetCodePoints(uset.getAlias())) {
printf("uset.codePoint U+%04lx\n", (long)c);
}

C++ UnicodeSet has member functions for iteration, including codePoints().

Draft:
This API may be changed in the future versions and was introduced in ICU 76
See Also
USetRanges
USetStrings
USetElements

Definition at line 1427 of file uset.h.

Constructor & Destructor Documentation

U_HEADER_ONLY_NAMESPACE::USetCodePoints::USetCodePoints ( const USet pUset)
inline

Constructs a C++ "range" object over the code points of the USet.

Draft:
This API may be changed in the future versions and was introduced in ICU 76

Definition at line 1433 of file uset.h.

U_HEADER_ONLY_NAMESPACE::USetCodePoints::USetCodePoints ( const USetCodePoints other)
default
Draft:
This API may be changed in the future versions and was introduced in ICU 76

Member Function Documentation

USetCodePointIterator U_HEADER_ONLY_NAMESPACE::USetCodePoints::begin ( ) const
inline
Draft:
This API may be changed in the future versions and was introduced in ICU 76

Definition at line 1439 of file uset.h.

USetCodePointIterator U_HEADER_ONLY_NAMESPACE::USetCodePoints::end ( ) const
inline
Draft:
This API may be changed in the future versions and was introduced in ICU 76

Definition at line 1444 of file uset.h.


The documentation for this class was generated from the following file: