blob: aaec0d215443c952c8985502ce08d34e1d3014f8 [file] [log] [blame]
/*
**********************************************************************
* Copyright (c) 2000, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
* 01/11/2000 aliu Creation.
**********************************************************************
*/
#ifndef NULTRANS_H
#define NULTRANS_H
#include "unicode/translit.h"
/**
* A transliterator that leaves text unchanged.
* @author Alan Liu
*/
class U_I18N_API NullTransliterator : public Transliterator {
/**
* ID for this transliterator.
*/
static const char* _ID;
public:
/**
* Constructs a transliterator.
*/
NullTransliterator();
/**
* Destructor.
*/
virtual ~NullTransliterator();
/**
* Transliterator API.
*/
Transliterator* clone(void) const;
/**
* Implements {@link Transliterator#handleTransliterate}.
*/
virtual void handleTransliterate(Replaceable& text, UTransPosition& offset,
UBool isIncremental) const;
};
inline NullTransliterator::NullTransliterator() : Transliterator(_ID, 0) {}
inline NullTransliterator::~NullTransliterator() {}
#endif