diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2021-10-28 09:15:28 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2021-10-28 09:15:28 +0300 |
commit | 44a241b241af6453d4459c79b1a562c447e36636 (patch) | |
tree | 0b90326241b6e647b9f8991cddeee5e8d4d93e9f /thirdparty/icu4c/common/uset.cpp | |
parent | 157cba39331c5ca945c8c3bb2173c5363550a680 (diff) |
ICU: Update to version 70.1
Diffstat (limited to 'thirdparty/icu4c/common/uset.cpp')
-rw-r--r-- | thirdparty/icu4c/common/uset.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/thirdparty/icu4c/common/uset.cpp b/thirdparty/icu4c/common/uset.cpp index a7e3046dbf..871a5d8986 100644 --- a/thirdparty/icu4c/common/uset.cpp +++ b/thirdparty/icu4c/common/uset.cpp @@ -197,6 +197,11 @@ uset_isEmpty(const USet* set) { } U_CAPI UBool U_EXPORT2 +uset_hasStrings(const USet* set) { + return ((const UnicodeSet*) set)->UnicodeSet::hasStrings(); +} + +U_CAPI UBool U_EXPORT2 uset_contains(const USet* set, UChar32 c) { return ((const UnicodeSet*) set)->UnicodeSet::contains(c); } @@ -297,6 +302,11 @@ private: U_NAMESPACE_END U_CAPI int32_t U_EXPORT2 +uset_getRangeCount(const USet *set) { + return ((const UnicodeSet *)set)->UnicodeSet::getRangeCount(); +} + +U_CAPI int32_t U_EXPORT2 uset_getItemCount(const USet* uset) { const UnicodeSet& set = *(const UnicodeSet*)uset; return set.getRangeCount() + USetAccess::getStringCount(set); @@ -330,11 +340,6 @@ uset_getItem(const USet* uset, int32_t itemIndex, } } -//U_CAPI int32_t U_EXPORT2 -//uset_getRangeCount(const USet* set) { -// return ((const UnicodeSet*) set)->getRangeCount(); -//} -// //U_CAPI UBool U_EXPORT2 //uset_getRange(const USet* set, int32_t rangeIndex, // UChar32* pStart, UChar32* pEnd) { @@ -355,7 +360,7 @@ uset_getItem(const USet* uset, int32_t itemIndex, * therefore all BMP code points precede all supplementary code points. * * Store each supplementary code point in 2 16-bit units, - * simply with higher-then-lower 16-bit halfs. + * simply with higher-then-lower 16-bit halves. * * Precede the entire list with the length. * If there are supplementary code points, then set bit 15 in the length |