intl/icu/source/i18n/nultrans.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/i18n/nultrans.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,71 @@
     1.4 +/*
     1.5 +**********************************************************************
     1.6 +*   Copyright (c) 2000-2007, International Business Machines
     1.7 +*   Corporation and others.  All Rights Reserved.
     1.8 +**********************************************************************
     1.9 +*   Date        Name        Description
    1.10 +*   01/11/2000  aliu        Creation.
    1.11 +**********************************************************************
    1.12 +*/
    1.13 +#ifndef NULTRANS_H
    1.14 +#define NULTRANS_H
    1.15 +
    1.16 +#include "unicode/utypes.h"
    1.17 +
    1.18 +#if !UCONFIG_NO_TRANSLITERATION
    1.19 +
    1.20 +#include "unicode/translit.h"
    1.21 +
    1.22 +U_NAMESPACE_BEGIN
    1.23 +
    1.24 +/**
    1.25 + * A transliterator that leaves text unchanged.
    1.26 + * @author Alan Liu
    1.27 + * @internal Use transliterator factory methods instead since this class will be removed in that release.
    1.28 + */
    1.29 +class NullTransliterator : public Transliterator {
    1.30 +
    1.31 +public:
    1.32 +
    1.33 +    /**
    1.34 +     * Constructs a transliterator.
    1.35 +     * @internal Use transliterator factory methods instead since this class will be removed in that release.
    1.36 +     */
    1.37 +    NullTransliterator();
    1.38 +
    1.39 +    /**
    1.40 +     * Destructor.
    1.41 +     * @internal Use transliterator factory methods instead since this class will be removed in that release.
    1.42 +     */
    1.43 +    virtual ~NullTransliterator();
    1.44 +
    1.45 +    /**
    1.46 +     * Transliterator API.
    1.47 +     * @internal Use transliterator factory methods instead since this class will be removed in that release.
    1.48 +     */
    1.49 +    virtual Transliterator* clone(void) const;
    1.50 +
    1.51 +    /**
    1.52 +     * Implements {@link Transliterator#handleTransliterate}.
    1.53 +     * @internal Use transliterator factory methods instead since this class will be removed in that release.
    1.54 +     */
    1.55 +    virtual void handleTransliterate(Replaceable& text, UTransPosition& offset,
    1.56 +                                     UBool isIncremental) const;
    1.57 +
    1.58 +    /**
    1.59 +     * ICU "poor man's RTTI", returns a UClassID for the actual class.
    1.60 +     */
    1.61 +    virtual UClassID getDynamicClassID() const;
    1.62 +
    1.63 +    /**
    1.64 +     * ICU "poor man's RTTI", returns a UClassID for this class.
    1.65 +     */
    1.66 +    U_I18N_API static UClassID U_EXPORT2 getStaticClassID();
    1.67 +
    1.68 +};
    1.69 +
    1.70 +U_NAMESPACE_END
    1.71 +
    1.72 +#endif /* #if !UCONFIG_NO_TRANSLITERATION */
    1.73 +
    1.74 +#endif

mercurial