intl/icu/source/i18n/nultrans.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /*
     2 **********************************************************************
     3 *   Copyright (c) 2000-2007, International Business Machines
     4 *   Corporation and others.  All Rights Reserved.
     5 **********************************************************************
     6 *   Date        Name        Description
     7 *   01/11/2000  aliu        Creation.
     8 **********************************************************************
     9 */
    10 #ifndef NULTRANS_H
    11 #define NULTRANS_H
    13 #include "unicode/utypes.h"
    15 #if !UCONFIG_NO_TRANSLITERATION
    17 #include "unicode/translit.h"
    19 U_NAMESPACE_BEGIN
    21 /**
    22  * A transliterator that leaves text unchanged.
    23  * @author Alan Liu
    24  * @internal Use transliterator factory methods instead since this class will be removed in that release.
    25  */
    26 class NullTransliterator : public Transliterator {
    28 public:
    30     /**
    31      * Constructs a transliterator.
    32      * @internal Use transliterator factory methods instead since this class will be removed in that release.
    33      */
    34     NullTransliterator();
    36     /**
    37      * Destructor.
    38      * @internal Use transliterator factory methods instead since this class will be removed in that release.
    39      */
    40     virtual ~NullTransliterator();
    42     /**
    43      * Transliterator API.
    44      * @internal Use transliterator factory methods instead since this class will be removed in that release.
    45      */
    46     virtual Transliterator* clone(void) const;
    48     /**
    49      * Implements {@link Transliterator#handleTransliterate}.
    50      * @internal Use transliterator factory methods instead since this class will be removed in that release.
    51      */
    52     virtual void handleTransliterate(Replaceable& text, UTransPosition& offset,
    53                                      UBool isIncremental) const;
    55     /**
    56      * ICU "poor man's RTTI", returns a UClassID for the actual class.
    57      */
    58     virtual UClassID getDynamicClassID() const;
    60     /**
    61      * ICU "poor man's RTTI", returns a UClassID for this class.
    62      */
    63     U_I18N_API static UClassID U_EXPORT2 getStaticClassID();
    65 };
    67 U_NAMESPACE_END
    69 #endif /* #if !UCONFIG_NO_TRANSLITERATION */
    71 #endif

mercurial