// © 2016 and later: Unicode, Inc. and others.1// License & terms of use: http://www.unicode.org/copyright.html2/*3*******************************************************************************4*5* Copyright (C) 2001-2008, International Business Machines6* Corporation and others. All Rights Reserved.7*8*******************************************************************************9* file name: casetrn.h10* encoding: UTF-811* tab size: 8 (not used)12* indentation:413*14* created on: 2004sep0315* created by: Markus W. Scherer16*17* Implementation class for lower-/upper-/title-casing transliterators.18*/1920#ifndef __CASETRN_H__21#define __CASETRN_H__2223#include "unicode/utypes.h"2425#if !UCONFIG_NO_TRANSLITERATION2627#include "unicode/translit.h"28#include "ucase.h"2930U_NAMESPACE_BEGIN3132/**33* A transliterator that performs locale-sensitive34* case mapping.35*/36class CaseMapTransliterator : public Transliterator {37public:38/**39* Constructs a transliterator.40* @param loc the given locale.41* @param id the transliterator ID.42* @param map the full case mapping function (see ucase.h)43*/44CaseMapTransliterator(const UnicodeString &id, UCaseMapFull *map);4546/**47* Destructor.48*/49virtual ~CaseMapTransliterator();5051/**52* Copy constructor.53*/54CaseMapTransliterator(const CaseMapTransliterator&);5556/**57* Transliterator API.58* @return a copy of the object.59*/60virtual CaseMapTransliterator* clone() const override = 0;6162/**63* ICU "poor man's RTTI", returns a UClassID for the actual class.64*/65//virtual UClassID getDynamicClassID() const;6667/**68* ICU "poor man's RTTI", returns a UClassID for this class.69*/70U_I18N_API static UClassID U_EXPORT2 getStaticClassID();7172protected:73/**74* Implements {@link Transliterator#handleTransliterate}.75* @param text the buffer holding transliterated and76* untransliterated text77* @param offset the start and limit of the text, the position78* of the cursor, and the start and limit of transliteration.79* @param incremental if true, assume more text may be coming after80* pos.contextLimit. Otherwise, assume the text is complete.81*/82virtual void handleTransliterate(Replaceable& text,83UTransPosition& offsets,84UBool isIncremental) const override;8586UCaseMapFull *fMap;8788private:89/**90* Assignment operator.91*/92CaseMapTransliterator& operator=(const CaseMapTransliterator&);9394};9596U_NAMESPACE_END9798/** case context iterator using a Replaceable. This must be a C function because it is a callback. */99U_CFUNC UChar32 U_CALLCONV100utrans_rep_caseContextIterator(void *context, int8_t dir);101102#endif /* #if !UCONFIG_NO_TRANSLITERATION */103104#endif105106107