michael@0: /* michael@0: ********************************************************************** michael@0: * Copyright (c) 2000-2007, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: ********************************************************************** michael@0: * Date Name Description michael@0: * 01/11/2000 aliu Creation. michael@0: ********************************************************************** michael@0: */ michael@0: #ifndef NULTRANS_H michael@0: #define NULTRANS_H michael@0: michael@0: #include "unicode/utypes.h" michael@0: michael@0: #if !UCONFIG_NO_TRANSLITERATION michael@0: michael@0: #include "unicode/translit.h" michael@0: michael@0: U_NAMESPACE_BEGIN michael@0: michael@0: /** michael@0: * A transliterator that leaves text unchanged. michael@0: * @author Alan Liu michael@0: * @internal Use transliterator factory methods instead since this class will be removed in that release. michael@0: */ michael@0: class NullTransliterator : public Transliterator { michael@0: michael@0: public: michael@0: michael@0: /** michael@0: * Constructs a transliterator. michael@0: * @internal Use transliterator factory methods instead since this class will be removed in that release. michael@0: */ michael@0: NullTransliterator(); michael@0: michael@0: /** michael@0: * Destructor. michael@0: * @internal Use transliterator factory methods instead since this class will be removed in that release. michael@0: */ michael@0: virtual ~NullTransliterator(); michael@0: michael@0: /** michael@0: * Transliterator API. michael@0: * @internal Use transliterator factory methods instead since this class will be removed in that release. michael@0: */ michael@0: virtual Transliterator* clone(void) const; michael@0: michael@0: /** michael@0: * Implements {@link Transliterator#handleTransliterate}. michael@0: * @internal Use transliterator factory methods instead since this class will be removed in that release. michael@0: */ michael@0: virtual void handleTransliterate(Replaceable& text, UTransPosition& offset, michael@0: UBool isIncremental) const; michael@0: michael@0: /** michael@0: * ICU "poor man's RTTI", returns a UClassID for the actual class. michael@0: */ michael@0: virtual UClassID getDynamicClassID() const; michael@0: michael@0: /** michael@0: * ICU "poor man's RTTI", returns a UClassID for this class. michael@0: */ michael@0: U_I18N_API static UClassID U_EXPORT2 getStaticClassID(); michael@0: michael@0: }; michael@0: michael@0: U_NAMESPACE_END michael@0: michael@0: #endif /* #if !UCONFIG_NO_TRANSLITERATION */ michael@0: michael@0: #endif