]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/strrepl.h
ICU-511.35.tar.gz
[apple/icu.git] / icuSources / i18n / strrepl.h
index 161bf5c46268effcbe53145a6e50ef3118374290..faf96b629624253a880f35cf5c93e20e5b27f083 100644 (file)
@@ -1,6 +1,6 @@
 /*
 **********************************************************************
-*   Copyright (c) 2002, International Business Machines Corporation
+*   Copyright (c) 2002-2011, International Business Machines Corporation
 *   and others.  All Rights Reserved.
 **********************************************************************
 *   Date        Name        Description
@@ -67,12 +67,6 @@ class StringReplacer : public UnicodeFunctor, public UnicodeReplacer {
      */
     const TransliterationRuleData* data;
 
-    /**
-     * The address of this static class variable serves as this class's ID
-     * for ICU "poor man's RTTI".
-     */
-    static const char fgClassID;
-
  public:
 
     /**
@@ -148,18 +142,14 @@ class StringReplacer : public UnicodeFunctor, public UnicodeReplacer {
     virtual void setData(const TransliterationRuleData*);
 
     /**
-     * ICU "poor man's RTTI", returns a UClassID for the actual class.
-     *
-     * @draft ICU 2.2
+     * ICU "poor man's RTTI", returns a UClassID for this class.
      */
-    virtual inline UClassID getDynamicClassID() const { return getStaticClassID(); }
+    static UClassID U_EXPORT2 getStaticClassID();
 
     /**
-     * ICU "poor man's RTTI", returns a UClassID for this class.
-     *
-     * @draft ICU 2.2
+     * ICU "poor man's RTTI", returns a UClassID for the actual class.
      */
-    static inline UClassID getStaticClassID() { return (UClassID)&fgClassID; }
+    virtual UClassID getDynamicClassID() const;
 };
 
 U_NAMESPACE_END