]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/remtrans.h
2 **********************************************************************
3 * Copyright (c) 2001-2007, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * Date Name Description
7 * 04/02/2001 aliu Creation.
8 **********************************************************************
13 #include "unicode/utypes.h"
15 #if !UCONFIG_NO_TRANSLITERATION
17 #include "unicode/translit.h"
22 * A transliterator that removes text.
25 class RemoveTransliterator
: public Transliterator
{
30 * Constructs a transliterator.
32 RemoveTransliterator();
37 virtual ~RemoveTransliterator();
40 * System registration hook.
42 static void registerIDs();
46 * @return A copy of the object.
48 virtual Transliterator
* clone(void) const;
51 * Implements {@link Transliterator#handleTransliterate}.
52 * @param text the buffer holding transliterated and
53 * untransliterated text
54 * @param offset the start and limit of the text, the position
55 * of the cursor, and the start and limit of transliteration.
56 * @param incremental if true, assume more text may be coming after
57 * pos.contextLimit. Otherwise, assume the text is complete.
59 virtual void handleTransliterate(Replaceable
& text
, UTransPosition
& offset
,
60 UBool isIncremental
) const;
63 * ICU "poor man's RTTI", returns a UClassID for the actual class.
65 virtual UClassID
getDynamicClassID() const;
68 * ICU "poor man's RTTI", returns a UClassID for this class.
70 U_I18N_API
static UClassID U_EXPORT2
getStaticClassID();
76 #endif /* #if !UCONFIG_NO_TRANSLITERATION */