]> git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/toupptrn.h
ICU-6.2.14.tar.gz
[apple/icu.git] / icuSources / i18n / toupptrn.h
1 /*
2 **********************************************************************
3 * Copyright (C) 2001-2004, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * Date Name Description
7 * 05/24/01 aliu Creation.
8 **********************************************************************
9 */
10 #ifndef TOUPPTRN_H
11 #define TOUPPTRN_H
12
13 #include "unicode/utypes.h"
14
15 #if !UCONFIG_NO_TRANSLITERATION
16
17 #include "unicode/translit.h"
18 #include "unicode/locid.h"
19 #include "casetrn.h"
20
21 U_NAMESPACE_BEGIN
22
23 /**
24 * A transliterator that performs locale-sensitive toUpper()
25 * case mapping.
26 * @author Alan Liu
27 */
28 class U_I18N_API UppercaseTransliterator : public CaseMapTransliterator {
29
30 public:
31
32 /**
33 * Constructs a transliterator.
34 * @param loc the given locale.
35 */
36 UppercaseTransliterator(const Locale& loc = Locale::getDefault());
37
38 /**
39 * Destructor.
40 */
41 virtual ~UppercaseTransliterator();
42
43 /**
44 * Copy constructor.
45 */
46 UppercaseTransliterator(const UppercaseTransliterator&);
47
48 /**
49 * Assignment operator.
50 */
51 UppercaseTransliterator& operator=(const UppercaseTransliterator&);
52
53 /**
54 * Transliterator API.
55 * @return a copy of the object.
56 */
57 virtual Transliterator* clone(void) const;
58
59 /**
60 * ICU "poor man's RTTI", returns a UClassID for the actual class.
61 *
62 * @draft ICU 2.2
63 */
64 virtual UClassID getDynamicClassID() const;
65
66 /**
67 * ICU "poor man's RTTI", returns a UClassID for this class.
68 *
69 * @draft ICU 2.2
70 */
71 static UClassID U_EXPORT2 getStaticClassID();
72 };
73
74 U_NAMESPACE_END
75
76 #endif /* #if !UCONFIG_NO_TRANSLITERATION */
77
78 #endif