ICU-3746 add @internal containsAll and equals
X-SVN-Rev: 15343
This commit is contained in:
parent
850661f537
commit
d9e5047559
@ -1,7 +1,7 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2002-2003, International Business Machines
|
||||
* Copyright (C) 2002-2004, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
@ -387,6 +387,20 @@ uset_getItem(const USet* set, int32_t itemIndex,
|
||||
UChar* str, int32_t strCapacity,
|
||||
UErrorCode* ec);
|
||||
|
||||
/* TODO: propose the following to the list and make them public */
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
U_CAPI UBool U_EXPORT2
|
||||
uset_containsAll(const USet* set1, const USet* set2);
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
U_CAPI UBool U_EXPORT2
|
||||
uset_equals(const USet* set1, const USet* set2);
|
||||
|
||||
/*********************************************************************
|
||||
* Serialized set API
|
||||
*********************************************************************/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2002-2003, International Business Machines
|
||||
* Copyright (C) 2002-2004, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
@ -193,6 +193,16 @@ uset_containsString(const USet* set, const UChar* str, int32_t strLen) {
|
||||
return ((const UnicodeSet*) set)->contains(s);
|
||||
}
|
||||
|
||||
U_CAPI UBool U_EXPORT2
|
||||
uset_containsAll(const USet* set1, const USet* set2) {
|
||||
return ((const UnicodeSet*) set1)->containsAll(* (const UnicodeSet*) set2);
|
||||
}
|
||||
|
||||
U_CAPI UBool U_EXPORT2
|
||||
uset_equals(const USet* set1, const USet* set2) {
|
||||
return *(const UnicodeSet*)set1 == *(const UnicodeSet*)set2;
|
||||
}
|
||||
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
uset_size(const USet* set) {
|
||||
return ((const UnicodeSet*) set)->size();
|
||||
|
Loading…
Reference in New Issue
Block a user