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