2001-06-11 19:51:46 +00:00
|
|
|
/*
|
|
|
|
**********************************************************************
|
2004-07-19 21:33:03 +00:00
|
|
|
* Copyright (C) 2001-2004, International Business Machines
|
2001-06-11 19:51:46 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
**********************************************************************
|
|
|
|
* Date Name Description
|
|
|
|
* 05/24/01 aliu Creation.
|
|
|
|
**********************************************************************
|
|
|
|
*/
|
|
|
|
|
2002-09-20 01:54:48 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_TRANSLITERATION
|
|
|
|
|
2001-11-30 00:57:29 +00:00
|
|
|
#include "unicode/ustring.h"
|
2002-07-12 21:42:24 +00:00
|
|
|
#include "unicode/uchar.h"
|
|
|
|
#include "toupptrn.h"
|
2001-11-30 00:57:29 +00:00
|
|
|
#include "ustr_imp.h"
|
|
|
|
#include "cpputils.h"
|
2001-06-11 19:51:46 +00:00
|
|
|
|
2001-10-08 23:26:58 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2003-08-31 20:53:46 +00:00
|
|
|
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(UppercaseTransliterator)
|
2002-06-29 00:04:16 +00:00
|
|
|
|
2001-06-11 19:51:46 +00:00
|
|
|
/**
|
|
|
|
* Constructs a transliterator.
|
|
|
|
*/
|
2004-12-28 20:06:43 +00:00
|
|
|
UppercaseTransliterator::UppercaseTransliterator() :
|
|
|
|
CaseMapTransliterator(UNICODE_STRING("Any-Upper", 9), ucase_toFullUpper)
|
2002-07-16 02:47:19 +00:00
|
|
|
{
|
2001-06-11 19:51:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Destructor.
|
|
|
|
*/
|
2001-11-30 00:57:29 +00:00
|
|
|
UppercaseTransliterator::~UppercaseTransliterator() {
|
|
|
|
}
|
2001-06-11 19:51:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Copy constructor.
|
|
|
|
*/
|
|
|
|
UppercaseTransliterator::UppercaseTransliterator(const UppercaseTransliterator& o) :
|
2004-09-06 15:57:11 +00:00
|
|
|
CaseMapTransliterator(o)
|
2002-07-16 02:47:19 +00:00
|
|
|
{
|
2001-11-30 00:57:29 +00:00
|
|
|
}
|
2001-06-11 19:51:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Assignment operator.
|
|
|
|
*/
|
|
|
|
UppercaseTransliterator& UppercaseTransliterator::operator=(
|
|
|
|
const UppercaseTransliterator& o) {
|
2004-09-06 15:57:11 +00:00
|
|
|
CaseMapTransliterator::operator=(o);
|
2001-06-11 19:51:46 +00:00
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Transliterator API.
|
|
|
|
*/
|
|
|
|
Transliterator* UppercaseTransliterator::clone(void) const {
|
|
|
|
return new UppercaseTransliterator(*this);
|
|
|
|
}
|
|
|
|
|
2001-10-08 23:26:58 +00:00
|
|
|
U_NAMESPACE_END
|
|
|
|
|
2002-09-20 01:54:48 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_TRANSLITERATION */
|