X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/48b980fed3435926e0b3a8d72ecb58be703a1c7a..729e4ab9bc6618bc3d8a898e575df7f4019e29ca:/icuSources/common/uset.cpp diff --git a/icuSources/common/uset.cpp b/icuSources/common/uset.cpp index add0ee0f..f4d34474 100644 --- a/icuSources/common/uset.cpp +++ b/icuSources/common/uset.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2002-2007, International Business Machines +* Copyright (C) 2002-2010, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -13,9 +13,6 @@ * created on: 2002mar07 * created by: Markus W. Scherer * -* The serialized structure, the array of range limits, is -* the same as in UnicodeSet, except that the HIGH value is not stored. -* * There are functions to efficiently serialize a USet into an array of uint16_t * and functions to use such a serialized form efficiently without * instantiating a new USet. @@ -31,6 +28,11 @@ U_NAMESPACE_USE +U_CAPI USet* U_EXPORT2 +uset_openEmpty() { + return (USet*) new UnicodeSet(); +} + U_CAPI USet* U_EXPORT2 uset_open(UChar32 start, UChar32 end) { return (USet*) new UnicodeSet(start, end); @@ -147,6 +149,16 @@ uset_clear(USet* set) { ((UnicodeSet*) set)->UnicodeSet::clear(); } +U_CAPI void U_EXPORT2 +uset_closeOver(USet* set, int32_t attributes) { + ((UnicodeSet*) set)->UnicodeSet::closeOver(attributes); +} + +U_CAPI void U_EXPORT2 +uset_removeAllStrings(USet* set) { + ((UnicodeSet*) set)->UnicodeSet::removeAllStrings(); +} + U_CAPI UBool U_EXPORT2 uset_isEmpty(const USet* set) { return ((const UnicodeSet*) set)->UnicodeSet::isEmpty(); @@ -482,13 +494,12 @@ uset_getSerializedRange(const USerializedSet* set, int32_t rangeIndex, if(rangeIndex