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

void Transliterator::adoptFilter ( UnicodeFilter filterToAdopt  )  [inherited]

Changes the filter used by this transliterator. If the filter is set to null then no filtering will occur.

Callers must take care if a transliterator is in use by multiple threads. The filter should not be changed by one thread while another thread may be transliterating.

Parameters:
adoptedFilter the new filter to be adopted. ICU 2.0
Changes the filter used by this transliterator. If the filter is set to null then no filtering will occur.

Callers must take care if a transliterator is in use by multiple threads. The filter should not be changed by one thread while another thread may be transliterating.

Definition at line 859 of file translit.cpp.

References Transliterator::filter.

Referenced by RemoveTransliterator::clone(), TransliteratorAlias::create(), Transliterator::createFromRules(), CompoundTransliterator::init(), Transliterator::operator=(), TransliteratorTest::TestCompoundFilter(), and TransliteratorTest::TestFiltering().

                                                             {
    delete filter;
    filter = filterToAdopt;
}


Generated by  Doxygen 1.6.0   Back to index