/* ********************************************************************** * Copyright (C) 1999, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Date Name Description * 11/17/99 aliu Creation. ********************************************************************** */ #ifndef UNIFILT_H #define UNIFILT_H /** * UnicodeFilter defines a protocol for selecting a * subset of the full range (U+0000 to U+FFFF) of Unicode characters. * Currently, filters are used in conjunction with classes like {@link * Transliterator} to only process selected characters through a * transformation. * * @see UnicodeFilterLogic */ class U_I18N_API UnicodeFilter { public: virtual ~UnicodeFilter(); /** * Returns true for characters that are in the selected * subset. In other words, if a character is to be * filtered, then isIn() returns * false. */ virtual bool_t isIn(UChar c) const = 0; /** * Returns a copy of this object. All UnicodeFilter objects have * to support cloning in order to allow classes using * UnicodeFilters, such as Transliterator, to implement cloning. */ virtual UnicodeFilter* clone() const = 0; protected: UnicodeFilter(); }; inline UnicodeFilter::UnicodeFilter() {} inline UnicodeFilter::~UnicodeFilter() {} #endif