ICU-3003 fix containsNone

X-SVN-Rev: 12379
This commit is contained in:
Alan Liu 2003-06-09 18:55:55 +00:00
parent c750a537a8
commit b623c7596b

View File

@ -917,10 +917,11 @@ UBool UnicodeSet::containsAll(const UnicodeString& s) const {
* @return true if the test condition is met
*/
UBool UnicodeSet::containsNone(UChar32 start, UChar32 end) const {
int32_t i = -1;
for (;;) {
if (start < list[++i]) break;
}
//int32_t i = -1;
//for (;;) {
// if (start < list[++i]) break;
//}
int32_t i = findCodePoint(start);
return ((i & 1) == 0 && end < list[i]);
}