Lines Matching full:uset
8 * file name: uset.c
16 * There are functions to efficiently serialize a USet into an array of uint16_t
18 * instantiating a new USet.
23 #include "unicode/uset.h"
31 U_CAPI USet* U_EXPORT2
33 return (USet*) new UnicodeSet();
36 U_CAPI USet* U_EXPORT2
38 return (USet*) new UnicodeSet(start, end);
42 uset_close(USet* set) {
46 U_CAPI USet * U_EXPORT2
47 uset_clone(const USet *set) {
48 return (USet*) (((UnicodeSet*) set)->UnicodeSet::clone());
52 uset_isFrozen(const USet *set) {
57 uset_freeze(USet *set) {
61 U_CAPI USet * U_EXPORT2
62 uset_cloneAsThawed(const USet *set) {
63 return (USet*) (((UnicodeSet*) set)->UnicodeSet::cloneAsThawed());
67 uset_set(USet* set,
73 uset_addAll(USet* set, const USet *additionalSet) {
78 uset_add(USet* set, UChar32 c) {
83 uset_addRange(USet* set, UChar32 start, UChar32 end) {
88 uset_addString(USet* set, const UChar* str, int32_t strLen) {
95 uset_addAllCodePoints(USet* set, const UChar *str, int32_t strLen) {
102 uset_remove(USet* set, UChar32 c) {
107 uset_removeRange(USet* set, UChar32 start, UChar32 end) {
112 uset_removeString(USet* set, const UChar* str, int32_t strLen) {
118 uset_removeAll(USet* set, const USet* remove) {
123 uset_retain(USet* set, UChar32 start, UChar32 end) {
128 uset_retainAll(USet* set, const USet* retain) {
133 uset_compact(USet* set) {
138 uset_complement(USet* set) {
143 uset_complementAll(USet* set, const USet* complement) {
148 uset_clear(USet* set) {
153 uset_closeOver(USet* set, int32_t attributes) {
158 uset_removeAllStrings(USet* set) {
163 uset_isEmpty(const USet* set) {
168 uset_contains(const USet* set, UChar32 c) {
173 uset_containsRange(const USet* set, UChar32 start, UChar32 end) {
178 uset_containsString(const USet* set, const UChar* str, int32_t strLen) {
184 uset_containsAll(const USet* set1, const USet* set2) {
189 uset_containsAllCodePoints(const USet* set, const UChar *str, int32_t strLen) {
196 uset_containsNone(const USet* set1, const USet* set2) {
201 uset_containsSome(const USet* set1, const USet* set2) {
206 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition) {
211 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition) {
216 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition) {
221 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition) {
226 uset_equals(const USet* set1, const USet* set2) {
231 uset_indexOf(const USet* set, UChar32 c) {
236 uset_charAt(const USet* set, int32_t index) {
241 uset_size(const USet* set) {
248 * USet support API. Declaring a class a friend is more portable than
268 uset_getItemCount(const USet* uset) {
269 const UnicodeSet& set = *(const UnicodeSet*)uset;
274 uset_getItem(const USet* uset, int32_t itemIndex,
279 const UnicodeSet& set = *(const UnicodeSet*)uset;
302 //uset_getRangeCount(const USet* set) {
307 //uset_getRange(const USet* set, int32_t rangeIndex,
319 * Serialize a USet into 16-bit units.
337 uset_serialize(const USet* set, uint16_t* dest, int32_t destCapacity, UErrorCode* ec) {
524 // TODO The old, internal uset.c had an efficient uset_containsOne function.
526 // Consider adding such a function to both C and C++ UnicodeSet/uset.
553 // addRemove(USet* set, UChar32 c, int32_t doRemove) {
637 // uset_add(USet* set, UChar32 c) {
642 // uset_remove(USet* set, UChar32 c) {