2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2001-06-11 19:51:46 +00:00
|
|
|
/*
|
|
|
|
**********************************************************************
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (C) 2001-2007, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
2001-06-11 19:51:46 +00:00
|
|
|
**********************************************************************
|
|
|
|
* 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.
|
|
|
|
*/
|
2007-06-08 22:31:20 +00:00
|
|
|
/*UppercaseTransliterator& UppercaseTransliterator::operator=(
|
2001-06-11 19:51:46 +00:00
|
|
|
const UppercaseTransliterator& o) {
|
2004-09-06 15:57:11 +00:00
|
|
|
CaseMapTransliterator::operator=(o);
|
2001-06-11 19:51:46 +00:00
|
|
|
return *this;
|
2007-06-08 22:31:20 +00:00
|
|
|
}*/
|
2001-06-11 19:51:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 */
|