+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
*
-* Copyright (C) 2001-2004, 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
*
#if !UCONFIG_NO_TRANSLITERATION
#include "unicode/translit.h"
-#include "unicode/locid.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.
* @param id the transliterator ID.
* @param map the full case mapping function (see ucase.h)
*/
- CaseMapTransliterator(const Locale &loc, const UnicodeString &id, UCaseMapFull *map);
+ CaseMapTransliterator(const UnicodeString &id, UCaseMapFull *map);
/**
* Destructor.
*/
CaseMapTransliterator(const CaseMapTransliterator&);
- /**
- * Assignment operator.
- */
- CaseMapTransliterator& operator=(const CaseMapTransliterator&);
-
/**
* Transliterator API.
* @return a copy of the object.
*/
- virtual Transliterator* clone(void) const;
+ virtual Transliterator* clone(void) 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:
/**
UTransPosition& offsets,
UBool isIncremental) const;
- Locale fLoc;
- const char *fLocName;
- UCaseProps *fCsp;
UCaseMapFull *fMap;
+
+private:
+ /**
+ * Assignment operator.
+ */
+ CaseMapTransliterator& operator=(const CaseMapTransliterator&);
+
};
U_NAMESPACE_END