1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 **********************************************************************
5 *   Copyright (C) 2001-2007, International Business Machines
6 *   Corporation and others.  All Rights Reserved.
7 **********************************************************************
8 *   Date        Name        Description
9 *   05/24/01    aliu        Creation.
10 **********************************************************************
11 */
12 
13 #include "unicode/utypes.h"
14 
15 #if !UCONFIG_NO_TRANSLITERATION
16 
17 #include "unicode/ustring.h"
18 #include "unicode/uchar.h"
19 #include "toupptrn.h"
20 #include "ustr_imp.h"
21 #include "cpputils.h"
22 
23 U_NAMESPACE_BEGIN
24 
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(UppercaseTransliterator)25 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(UppercaseTransliterator)
26 
27 /**
28  * Constructs a transliterator.
29  */
30 UppercaseTransliterator::UppercaseTransliterator() :
31     CaseMapTransliterator(UNICODE_STRING("Any-Upper", 9), ucase_toFullUpper)
32 {
33 }
34 
35 /**
36  * Destructor.
37  */
~UppercaseTransliterator()38 UppercaseTransliterator::~UppercaseTransliterator() {
39 }
40 
41 /**
42  * Copy constructor.
43  */
UppercaseTransliterator(const UppercaseTransliterator & o)44 UppercaseTransliterator::UppercaseTransliterator(const UppercaseTransliterator& o) :
45     CaseMapTransliterator(o)
46 {
47 }
48 
49 /**
50  * Assignment operator.
51  */
52 /*UppercaseTransliterator& UppercaseTransliterator::operator=(
53                              const UppercaseTransliterator& o) {
54     CaseMapTransliterator::operator=(o);
55     return *this;
56 }*/
57 
58 /**
59  * Transliterator API.
60  */
clone() const61 UppercaseTransliterator* UppercaseTransliterator::clone() const {
62     return new UppercaseTransliterator(*this);
63 }
64 
65 U_NAMESPACE_END
66 
67 #endif /* #if !UCONFIG_NO_TRANSLITERATION */
68