2 **********************************************************************
3 * Copyright (C) 2001, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * Date Name Description
7 * 05/24/01 aliu Creation.
8 **********************************************************************
13 #include "unicode/utypes.h"
15 #if !UCONFIG_NO_TRANSLITERATION
17 #include "unicode/translit.h"
18 #include "unicode/locid.h"
23 * A transliterator that performs locale-sensitive toLower()
27 class U_I18N_API LowercaseTransliterator
: public Transliterator
{
32 * Constructs a transliterator.
33 * @param loc the given locale.
35 LowercaseTransliterator(const Locale
& loc
= Locale::getDefault());
40 virtual ~LowercaseTransliterator();
45 LowercaseTransliterator(const LowercaseTransliterator
&);
48 * Assignment operator.
50 LowercaseTransliterator
& operator=(const LowercaseTransliterator
&);
54 * @return a copy of the object.
56 Transliterator
* clone(void) const;
59 * ICU "poor man's RTTI", returns a UClassID for the actual class.
63 virtual inline UClassID
getDynamicClassID() const { return getStaticClassID(); }
66 * ICU "poor man's RTTI", returns a UClassID for this class.
70 static inline UClassID
getStaticClassID() { return (UClassID
)&fgClassID
; }
75 * Implements {@link Transliterator#handleTransliterate}.
76 * @param text the buffer holding transliterated and
77 * untransliterated text
78 * @param offset the start and limit of the text, the position
79 * of the cursor, and the start and limit of transliteration.
80 * @param incremental if true, assume more text may be coming after
81 * pos.contextLimit. Otherwise, assume the text is complete.
83 virtual void handleTransliterate(Replaceable
& text
,
84 UTransPosition
& offsets
,
85 UBool isIncremental
) const;
91 static const char _ID
[];
94 * The address of this static class variable serves as this class's ID
95 * for ICU "poor man's RTTI".
97 static const char fgClassID
;
102 #endif /* #if !UCONFIG_NO_TRANSLITERATION */