f8af43b4ae
X-SVN-Rev: 7286
71 lines
1.5 KiB
C++
71 lines
1.5 KiB
C++
/*
|
|
**********************************************************************
|
|
* Copyright (C) 2001, International Business Machines
|
|
* Corporation and others. All Rights Reserved.
|
|
**********************************************************************
|
|
* Date Name Description
|
|
* 05/24/01 aliu Creation.
|
|
**********************************************************************
|
|
*/
|
|
#ifndef TOLOWTRN_H
|
|
#define TOLOWTRN_H
|
|
|
|
#include "unicode/translit.h"
|
|
#include "unicode/locid.h"
|
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
/**
|
|
* A transliterator that performs locale-sensitive toLower()
|
|
* case mapping.
|
|
* @author Alan Liu
|
|
*/
|
|
class U_I18N_API LowercaseTransliterator : public Transliterator {
|
|
|
|
public:
|
|
|
|
/**
|
|
* Constructs a transliterator.
|
|
*/
|
|
LowercaseTransliterator(const Locale& loc = Locale::getDefault());
|
|
|
|
/**
|
|
* Destructor.
|
|
*/
|
|
virtual ~LowercaseTransliterator();
|
|
|
|
/**
|
|
* Copy constructor.
|
|
*/
|
|
LowercaseTransliterator(const LowercaseTransliterator&);
|
|
|
|
/**
|
|
* Assignment operator.
|
|
*/
|
|
LowercaseTransliterator& operator=(const LowercaseTransliterator&);
|
|
|
|
/**
|
|
* Transliterator API.
|
|
*/
|
|
Transliterator* clone(void) const;
|
|
|
|
protected:
|
|
|
|
/**
|
|
* Implements {@link Transliterator#handleTransliterate}.
|
|
*/
|
|
virtual void handleTransliterate(Replaceable& text,
|
|
UTransPosition& offsets,
|
|
UBool isIncremental) const;
|
|
|
|
private:
|
|
|
|
Locale loc;
|
|
UChar* buffer;
|
|
static const char _ID[];
|
|
};
|
|
|
|
U_NAMESPACE_END
|
|
|
|
#endif
|