2 **********************************************************************
3 * Copyright (C) 2001-2004, 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"
25 * A transliterator that converts all letters (as defined by
26 * <code>UCharacter.isLetter()</code>) to lower case, except for those
27 * letters preceded by non-letters. The latter are converted to title
28 * case using <code>u_totitle()</code>.
31 class U_I18N_API TitlecaseTransliterator
: public CaseMapTransliterator
{
35 * Constructs a transliterator.
36 * @param loc the given locale.
38 TitlecaseTransliterator(const Locale
& loc
= Locale::getDefault());
43 virtual ~TitlecaseTransliterator();
48 TitlecaseTransliterator(const TitlecaseTransliterator
&);
51 * Assignment operator.
53 TitlecaseTransliterator
& operator=(const TitlecaseTransliterator
&);
57 * @return a copy of the object.
59 virtual Transliterator
* clone(void) const;
62 * ICU "poor man's RTTI", returns a UClassID for the actual class.
66 virtual UClassID
getDynamicClassID() const;
69 * ICU "poor man's RTTI", returns a UClassID for this class.
73 static UClassID U_EXPORT2
getStaticClassID();
78 * Implements {@link Transliterator#handleTransliterate}.
79 * @param text the buffer holding transliterated and
80 * untransliterated text
81 * @param offset the start and limit of the text, the position
82 * of the cursor, and the start and limit of transliteration.
83 * @param incremental if true, assume more text may be coming after
84 * pos.contextLimit. Otherwise, assume the text is complete.
86 virtual void handleTransliterate(Replaceable
& text
, UTransPosition
& offset
,
87 UBool isIncremental
) const;
92 #endif /* #if !UCONFIG_NO_TRANSLITERATION */