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

UnicodeSet & UnicodeSet::remove ( UChar32  start,
UChar32  end 
) [virtual]

Removes the specified range from this set if it is present. The set will not contain the specified range once the call returns. If end > start then an empty range is removed, leaving the set unchanged. A frozen set will not be modified.

Parameters:
start first character, inclusive, of range to be removed from this set.
end last character, inclusive, of range to be removed from this set. ICU 2.0
Removes the specified range from this set if it is present. The set will not contain the specified range once the call returns. If end > start then an empty range is removed, leaving the set unchanged.

Parameters:
start first character, inclusive, of range to be removed from this set.
end last character, inclusive, of range to be removed from this set.

Definition at line 1177 of file uniset.cpp.

References retain().

Referenced by UnicodeSetTest::TestCloseOver(), and ThaiBreakEngine::ThaiBreakEngine().

                                                         {
    if (pinCodePoint(start) <= pinCodePoint(end)) {
        UChar32 range[3] = { start, end+1, UNICODESET_HIGH };
        retain(range, 2, 2);
    }
    return *this;
}


Generated by  Doxygen 1.6.0   Back to index