X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..340931cb2e044a2141d11567dd0f782524e32994:/icuSources/i18n/unesctrn.h diff --git a/icuSources/i18n/unesctrn.h b/icuSources/i18n/unesctrn.h index 73f820c7..57dd8d32 100644 --- a/icuSources/i18n/unesctrn.h +++ b/icuSources/i18n/unesctrn.h @@ -1,12 +1,14 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* -********************************************************************** -* Copyright (c) 2001-2002, International Business Machines -* Corporation and others. All Rights Reserved. -********************************************************************** -* Date Name Description -* 11/20/2001 aliu Creation. -********************************************************************** -*/ + ********************************************************************** + * Copyright (c) 2001-2007, International Business Machines + * Corporation and others. All Rights Reserved. + ********************************************************************** + * Date Name Description + * 11/20/2001 aliu Creation. + ********************************************************************** + */ #ifndef UNESCTRN_H #define UNESCTRN_H @@ -28,7 +30,7 @@ U_NAMESPACE_BEGIN * * @author Alan Liu */ -class U_I18N_API UnescapeTransliterator : public Transliterator { +class UnescapeTransliterator : public Transliterator { private: @@ -75,21 +77,17 @@ class U_I18N_API UnescapeTransliterator : public Transliterator { /** * Transliterator API. */ - virtual Transliterator* clone() const; + virtual UnescapeTransliterator* clone() 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(); protected: @@ -102,29 +100,9 @@ class U_I18N_API UnescapeTransliterator : public Transliterator { * @param incremental if true, assume more text may be coming after * pos.contextLimit. Otherwise, assume the text is complete. */ - void handleTransliterate(Replaceable& text, UTransPosition& offset, + virtual void handleTransliterate(Replaceable& text, UTransPosition& offset, UBool isIncremental) const; - private: - - /** - * Factory methods - */ - static Transliterator* _createUnicode(const UnicodeString& ID, Token context); - static Transliterator* _createJava(const UnicodeString& ID, Token context); - static Transliterator* _createC(const UnicodeString& ID, Token context); - static Transliterator* _createXML(const UnicodeString& ID, Token context); - static Transliterator* _createXML10(const UnicodeString& ID, Token context); - static Transliterator* _createPerl(const UnicodeString& ID, Token context); - static Transliterator* _createAny(const UnicodeString& ID, Token context); - - static UChar* copySpec(const UChar* spec); - - /** - * The address of this static class variable serves as this class's ID - * for ICU "poor man's RTTI". - */ - static const char fgClassID; }; U_NAMESPACE_END