Logo Search packages:      
Sourcecode: icu version File versions  Download package

UBool UnicodeSet::containsNone ( UChar32  start,
UChar32  end 
) const

Returns true if this set contains none of the characters of the given range.

Parameters:
start first character, inclusive, of the range
end last character, inclusive, of the range
Returns:
true if the test condition is met ICU 2.4
Returns true if this set contains none of the characters of the given range.
Parameters:
start first character, inclusive, of the range
end last character, inclusive, of the range
Returns:
true if the test condition is met

Definition at line 536 of file uniset.cpp.

References findCodePoint().

Referenced by containsNone(), and containsSome().

                                                               {
    //int32_t i = -1;
    //for (;;) {
    //    if (start < list[++i]) break;
    //}
    int32_t i = findCodePoint(start);
    return ((i & 1) == 0 && end < list[i]);
}


Generated by  Doxygen 1.6.0   Back to index