00001 /* 00002 ********************************************************************** 00003 * Copyright (c) 2000, International Business Machines 00004 * Corporation and others. All Rights Reserved. 00005 ********************************************************************** 00006 * Date Name Description 00007 * 01/11/2000 aliu Creation. 00008 ********************************************************************** 00009 */ 00010 #ifndef NULTRANS_H 00011 #define NULTRANS_H 00012 00013 #include "unicode/translit.h" 00014 00015 U_NAMESPACE_BEGIN 00016 00022 class U_I18N_API NullTransliterator : public Transliterator { 00023 00024 public: 00025 00030 static const UChar ID[]; // public for Transliterator 00031 00036 static const UChar SHORT_ID[]; // public for Transliterator 00037 00042 NullTransliterator(); 00043 00048 virtual ~NullTransliterator(); 00049 00054 Transliterator* clone(void) const; 00055 00060 virtual void handleTransliterate(Replaceable& text, UTransPosition& offset, 00061 UBool isIncremental) const; 00062 00068 virtual inline UClassID getDynamicClassID() const { return getStaticClassID(); } 00069 00075 static inline UClassID getStaticClassID() { return (UClassID)&fgClassID; } 00076 00077 private: 00078 00083 static const char fgClassID; 00084 }; 00085 00086 inline NullTransliterator::NullTransliterator() : Transliterator(ID, 0) {} 00087 00088 inline NullTransliterator::~NullTransliterator() {} 00089 00090 U_NAMESPACE_END 00091 00092 #endif