Lines Matching refs:uset
10 * file name: uset.cpp
18 * There are functions to efficiently serialize a USet into an array of uint16_t
20 * instantiating a new USet.
25 #include "unicode/uset.h"
33 U_CAPI USet* U_EXPORT2
35 return (USet*) new UnicodeSet();
38 U_CAPI USet* U_EXPORT2
40 return (USet*) new UnicodeSet(start, end);
44 uset_close(USet* set) {
48 U_CAPI USet * U_EXPORT2
49 uset_clone(const USet *set) {
50 return (USet*) (((UnicodeSet*) set)->UnicodeSet::clone());
54 uset_isFrozen(const USet *set) {
59 uset_freeze(USet *set) {
63 U_CAPI USet * U_EXPORT2
64 uset_cloneAsThawed(const USet *set) {
65 return (USet*) (((UnicodeSet*) set)->UnicodeSet::cloneAsThawed());
69 uset_set(USet* set,
75 uset_addAll(USet* set, const USet *additionalSet) {
80 uset_add(USet* set, UChar32 c) {
85 uset_addRange(USet* set, UChar32 start, UChar32 end) {
90 uset_addString(USet* set, const UChar* str, int32_t strLen) {
97 uset_addAllCodePoints(USet* set, const UChar *str, int32_t strLen) {
104 uset_remove(USet* set, UChar32 c) {
109 uset_removeRange(USet* set, UChar32 start, UChar32 end) {
114 uset_removeString(USet* set, const UChar* str, int32_t strLen) {
120 uset_removeAll(USet* set, const USet* remove) {
125 uset_retain(USet* set, UChar32 start, UChar32 end) {
130 uset_retainAll(USet* set, const USet* retain) {
135 uset_compact(USet* set) {
140 uset_complement(USet* set) {
145 uset_complementAll(USet* set, const USet* complement) {
150 uset_clear(USet* set) {
155 uset_removeAllStrings(USet* set) {
160 uset_isEmpty(const USet* set) {
165 uset_contains(const USet* set, UChar32 c) {
170 uset_containsRange(const USet* set, UChar32 start, UChar32 end) {
175 uset_containsString(const USet* set, const UChar* str, int32_t strLen) {
181 uset_containsAll(const USet* set1, const USet* set2) {
186 uset_containsAllCodePoints(const USet* set, const UChar *str, int32_t strLen) {
193 uset_containsNone(const USet* set1, const USet* set2) {
198 uset_containsSome(const USet* set1, const USet* set2) {
203 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition) {
208 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition) {
213 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition) {
218 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition) {
223 uset_equals(const USet* set1, const USet* set2) {
228 uset_indexOf(const USet* set, UChar32 c) {
233 uset_charAt(const USet* set, int32_t index) {
238 uset_size(const USet* set) {
245 * USet support API. Declaring a class a friend is more portable than
265 uset_getItemCount(const USet* uset) {
266 const UnicodeSet& set = *(const UnicodeSet*)uset;
271 uset_getItem(const USet* uset, int32_t itemIndex,
276 const UnicodeSet& set = *(const UnicodeSet*)uset;
299 //uset_getRangeCount(const USet* set) {
304 //uset_getRange(const USet* set, int32_t rangeIndex,
316 * Serialize a USet into 16-bit units.
334 uset_serialize(const USet* set, uint16_t* dest, int32_t destCapacity, UErrorCode* ec) {
521 // TODO The old, internal uset.c had an efficient uset_containsOne function.
523 // Consider adding such a function to both C and C++ UnicodeSet/uset.
550 // addRemove(USet* set, UChar32 c, int32_t doRemove) {
634 // uset_add(USet* set, UChar32 c) {
639 // uset_remove(USet* set, UChar32 c) {