C++ "range" for iterating over the code point ranges of a USet.
using U_HEADER_NESTED_NAMESPACE::USetRanges;
for (
auto [start, end] :
USetRanges(uset.getAlias())) {
printf("uset.range U+%04lx..U+%04lx\n", (long)start, (long)end);
}
printf("uset.range.c U+%04lx\n", (long)c);
}
}
C++ UnicodeSet has member functions for iteration, including ranges().
- Draft:
- This API may be changed in the future versions and was introduced in ICU 76
- See Also
- USetCodePoints
-
USetStrings
-
USetElements
Definition at line 1608 of file uset.h.