X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..e4f10fab0c078f399c9deef476d9c9b73b47dff8:/icuSources/i18n/anytrans.h?ds=sidebyside diff --git a/icuSources/i18n/anytrans.h b/icuSources/i18n/anytrans.h index 2d8d94fd..228ccbe0 100644 --- a/icuSources/i18n/anytrans.h +++ b/icuSources/i18n/anytrans.h @@ -1,14 +1,11 @@ /* -***************************************************************** -* Copyright (c) 2002, International Business Machines Corporation +*********************************************************************** +* Copyright (c) 2002-2007, International Business Machines Corporation * and others. All Rights Reserved. -***************************************************************** -* $Source: /cvs/root/ICU/icuSources/i18n/anytrans.h,v $ -* $Revision: 1.1.1.1 $ -***************************************************************** +*********************************************************************** * Date Name Description * 06/06/2002 aliu Creation. -***************************************************************** +*********************************************************************** */ #ifndef _ANYTRANS_H_ #define _ANYTRANS_H_ @@ -35,7 +32,7 @@ U_NAMESPACE_BEGIN * * @author Alan Liu */ -class U_I18N_API AnyTransliterator : public Transliterator { +class AnyTransliterator : public Transliterator { /** * Cache mapping UScriptCode values to Transliterator*. @@ -52,14 +49,8 @@ class U_I18N_API AnyTransliterator : public Transliterator { */ UScriptCode targetScript; - /** - * The address of this static class variable serves as this class's ID - * for ICU "poor man's RTTI". - */ - static const char fgClassID; - public: - + /** * Destructor. */ @@ -73,27 +64,23 @@ public: /** * Transliterator API. */ - Transliterator* clone() const; + virtual Transliterator* clone() const; /** * Implements {@link Transliterator#handleTransliterate}. */ virtual void handleTransliterate(Replaceable& text, UTransPosition& index, UBool incremental) const; - + /** * ICU "poor man's RTTI", returns a UClassID for the actual class. - * - * @draft ICU 2.2 */ - virtual inline UClassID getDynamicClassID() const { return getStaticClassID(); } + virtual UClassID getDynamicClassID() const; /** * ICU "poor man's RTTI", returns a UClassID for this class. - * - * @draft ICU 2.2 */ - static inline UClassID getStaticClassID() { return (UClassID)&fgClassID; } + U_I18N_API static UClassID U_EXPORT2 getStaticClassID(); private: @@ -133,12 +120,6 @@ private: static void registerIDs(); friend class Transliterator; // for registerIDs() - - /** - * Return the script code for a given name, or - * USCRIPT_INVALID_CODE if not found. - */ - static UScriptCode scriptNameToCode(const UnicodeString& name); }; U_NAMESPACE_END