]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/remtrans.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 **********************************************************************
5 * Copyright (c) 2001-2007, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 **********************************************************************
8 * Date Name Description
9 * 04/02/2001 aliu Creation.
10 **********************************************************************
15 #include "unicode/utypes.h"
17 #if !UCONFIG_NO_TRANSLITERATION
19 #include "unicode/translit.h"
24 * A transliterator that removes text.
27 class RemoveTransliterator
: public Transliterator
{
32 * Constructs a transliterator.
34 RemoveTransliterator();
39 virtual ~RemoveTransliterator();
42 * System registration hook.
44 static void registerIDs();
48 * @return A copy of the object.
50 virtual Transliterator
* clone(void) const;
53 * Implements {@link Transliterator#handleTransliterate}.
54 * @param text the buffer holding transliterated and
55 * untransliterated text
56 * @param offset the start and limit of the text, the position
57 * of the cursor, and the start and limit of transliteration.
58 * @param incremental if true, assume more text may be coming after
59 * pos.contextLimit. Otherwise, assume the text is complete.
61 virtual void handleTransliterate(Replaceable
& text
, UTransPosition
& offset
,
62 UBool isIncremental
) const;
65 * ICU "poor man's RTTI", returns a UClassID for the actual class.
67 virtual UClassID
getDynamicClassID() const;
70 * ICU "poor man's RTTI", returns a UClassID for this class.
72 U_I18N_API
static UClassID U_EXPORT2
getStaticClassID();
78 #endif /* #if !UCONFIG_NO_TRANSLITERATION */