X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..HEAD:/icuSources/i18n/casetrn.h diff --git a/icuSources/i18n/casetrn.h b/icuSources/i18n/casetrn.h index 747fa1b5..2ec3e736 100644 --- a/icuSources/i18n/casetrn.h +++ b/icuSources/i18n/casetrn.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-2005, International Business Machines +* Copyright (C) 2001-2008, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* * file name: casetrn.h -* encoding: US-ASCII +* encoding: UTF-8 * tab size: 8 (not used) * indentation:4 * @@ -26,23 +28,13 @@ #include "unicode/translit.h" #include "ucase.h" -U_CDECL_BEGIN - -typedef int32_t U_CALLCONV -UCaseMapFull(const UCaseProps *csp, UChar32 c, - UCaseContextIterator *iter, void *context, - const UChar **pString, - const char *locale, int32_t *locCache); - -U_CDECL_END - U_NAMESPACE_BEGIN /** * A transliterator that performs locale-sensitive * case mapping. */ -class U_I18N_API CaseMapTransliterator : public Transliterator { +class CaseMapTransliterator : public Transliterator { public: /** * Constructs a transliterator. @@ -62,26 +54,21 @@ public: */ CaseMapTransliterator(const CaseMapTransliterator&); - /** - * Assignment operator. - */ - CaseMapTransliterator& operator=(const CaseMapTransliterator&); - /** * Transliterator API. * @return a copy of the object. */ - virtual Transliterator* clone(void) const; + virtual CaseMapTransliterator* clone() const = 0; /** * ICU "poor man's RTTI", returns a UClassID for the actual class. */ - virtual UClassID getDynamicClassID() const; + //virtual UClassID getDynamicClassID() const; /** * ICU "poor man's RTTI", returns a UClassID for this class. */ - static UClassID U_EXPORT2 getStaticClassID(); + U_I18N_API static UClassID U_EXPORT2 getStaticClassID(); protected: /** @@ -97,8 +84,14 @@ protected: UTransPosition& offsets, UBool isIncremental) const; - const UCaseProps *fCsp; UCaseMapFull *fMap; + +private: + /** + * Assignment operator. + */ + CaseMapTransliterator& operator=(const CaseMapTransliterator&); + }; U_NAMESPACE_END