2000-01-11 17:28:49 +00:00
|
|
|
/*
|
|
|
|
**********************************************************************
|
|
|
|
* 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 {
|
|
|
|
|
2001-03-27 19:35:33 +00:00
|
|
|
public:
|
|
|
|
|
2000-01-11 17:28:49 +00:00
|
|
|
/**
|
|
|
|
* ID for this transliterator.
|
|
|
|
*/
|
2001-06-20 22:52:03 +00:00
|
|
|
static const UChar ID[]; // public for Transliterator
|
2000-01-11 17:28:49 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructs a transliterator.
|
|
|
|
*/
|
|
|
|
NullTransliterator();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Destructor.
|
|
|
|
*/
|
|
|
|
virtual ~NullTransliterator();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Transliterator API.
|
|
|
|
*/
|
|
|
|
Transliterator* clone(void) const;
|
|
|
|
|
|
|
|
/**
|
2000-01-18 18:27:27 +00:00
|
|
|
* Implements {@link Transliterator#handleTransliterate}.
|
2000-01-11 17:28:49 +00:00
|
|
|
*/
|
2000-06-27 19:00:38 +00:00
|
|
|
virtual void handleTransliterate(Replaceable& text, UTransPosition& offset,
|
2000-05-18 22:08:39 +00:00
|
|
|
UBool isIncremental) const;
|
2000-01-11 17:28:49 +00:00
|
|
|
};
|
|
|
|
|
2001-03-27 19:35:33 +00:00
|
|
|
inline NullTransliterator::NullTransliterator() : Transliterator(ID, 0) {}
|
2000-01-11 17:28:49 +00:00
|
|
|
|
|
|
|
inline NullTransliterator::~NullTransliterator() {}
|
|
|
|
|
|
|
|
#endif
|