]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/titletrn.h
2 **********************************************************************
3 * Copyright (C) 2001-2007, 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"
24 * A transliterator that converts all letters (as defined by
25 * <code>UCharacter.isLetter()</code>) to lower case, except for those
26 * letters preceded by non-letters. The latter are converted to title
27 * case using <code>u_totitle()</code>.
30 class TitlecaseTransliterator
: public CaseMapTransliterator
{
34 * Constructs a transliterator.
35 * @param loc the given locale.
37 TitlecaseTransliterator();
42 virtual ~TitlecaseTransliterator();
47 TitlecaseTransliterator(const TitlecaseTransliterator
&);
51 * @return a copy of the object.
53 virtual Transliterator
* clone(void) const;
56 * ICU "poor man's RTTI", returns a UClassID for the actual class.
58 virtual UClassID
getDynamicClassID() const;
61 * ICU "poor man's RTTI", returns a UClassID for this class.
63 U_I18N_API
static UClassID U_EXPORT2
getStaticClassID();
68 * Implements {@link Transliterator#handleTransliterate}.
69 * @param text the buffer holding transliterated and
70 * untransliterated text
71 * @param offset the start and limit of the text, the position
72 * of the cursor, and the start and limit of transliteration.
73 * @param incremental if true, assume more text may be coming after
74 * pos.contextLimit. Otherwise, assume the text is complete.
76 virtual void handleTransliterate(Replaceable
& text
, UTransPosition
& offset
,
77 UBool isIncremental
) const;
81 * Assignment operator.
83 TitlecaseTransliterator
& operator=(const TitlecaseTransliterator
&);
88 #endif /* #if !UCONFIG_NO_TRANSLITERATION */