]> git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/tolowtrn.cpp
ICU-6.2.14.tar.gz
[apple/icu.git] / icuSources / i18n / tolowtrn.cpp
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
11 #include "unicode/utypes.h"
12
13 #if !UCONFIG_NO_TRANSLITERATION
14
15 #include "unicode/uchar.h"
16 #include "unicode/ustring.h"
17 #include "tolowtrn.h"
18 #include "ustr_imp.h"
19 #include "cpputils.h"
20
21 U_NAMESPACE_BEGIN
22
23 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(LowercaseTransliterator)
24
25 /**
26 * Constructs a transliterator.
27 */
28 LowercaseTransliterator::LowercaseTransliterator(const Locale& theLoc) :
29 CaseMapTransliterator(theLoc, UNICODE_STRING("Any-Lower", 9), ucase_toFullLower)
30 {
31 }
32
33 /**
34 * Destructor.
35 */
36 LowercaseTransliterator::~LowercaseTransliterator() {
37 }
38
39 /**
40 * Copy constructor.
41 */
42 LowercaseTransliterator::LowercaseTransliterator(const LowercaseTransliterator& o) :
43 CaseMapTransliterator(o)
44 {
45 }
46
47 /**
48 * Assignment operator.
49 */
50 LowercaseTransliterator& LowercaseTransliterator::operator=(
51 const LowercaseTransliterator& o) {
52 CaseMapTransliterator::operator=(o);
53 return *this;
54 }
55
56 /**
57 * Transliterator API.
58 */
59 Transliterator* LowercaseTransliterator::clone(void) const {
60 return new LowercaseTransliterator(*this);
61 }
62
63 U_NAMESPACE_END
64
65 #endif /* #if !UCONFIG_NO_TRANSLITERATION */