C++ "range" for iterating over the empty and multi-character strings of a USet.
More...
C++ "range" for iterating over the empty and multi-character strings of a USet.
using U_HEADER_NESTED_NAMESPACE::USetStrings;
int32_t len32 = s.length();
char utf8[200];
s.data(), len32, 0xFFFD, nullptr, errorCode);
printf("uset.string length %ld \"%s\"\n", long{len32}, utf8);
}
"Smart pointer" class, closes a USet via uset_close().
U_CAPI USet * uset_openPattern(const UChar *pattern, int32_t patternLength, UErrorCode *ec)
Creates a set from the given pattern.
U_CAPI char * u_strToUTF8WithSub(char *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode)
Convert a UTF-16 string to UTF-8.
C++ UnicodeSet has member functions for iteration, including strings().
- Draft:
- This API may be changed in the future versions and was introduced in ICU 76
- See also
- USetCodePoints
-
USetRanges
-
USetElements
Definition at line 1718 of file uset.h.