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

UnicodeSet & UnicodeSet::retainAll ( const UnicodeString s  ) 

Retains EACH of the characters in this string. Note: "ch" == {"c", "h"} If this set already any particular character, it has no effect on that character. A frozen set will not be modified.

Parameters:
s the source string
Returns:
this object, for chaining ICU 2.4
Retains EACH of the characters in this string. Note: "ch" == {"c", "h"} If this set already any particular character, it has no effect on that character.
Parameters:
the source string
Returns:
the modified set, for chaining

Definition at line 1075 of file uniset.cpp.

References addAll().

Referenced by applyPattern(), Transliterator::getSourceSet(), TransliteratorTest::TestAny(), and UnicodeSetTest::TestCloseOver().

                                                        {
    UnicodeSet set;
    set.addAll(s);
    retainAll(set);
    return *this;
}


Generated by  Doxygen 1.6.0   Back to index