~ubuntu-branches/ubuntu/gutsy/icu/gutsy

« back to all changes in this revision

Viewing changes to source/i18n/tolowtrn.h

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2005-11-19 11:29:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20051119112931-vcizkrp10tli4enw
Tags: 3.4-3
Explicitly build with g++ 3.4.  The current ICU fails its test suite
with 4.0 but not with 3.4.  Future versions should work properly with
4.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
**********************************************************************
3
 
*   Copyright (C) 2001, 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 TOLOWTRN_H
11
 
#define TOLOWTRN_H
12
 
 
13
 
#include "unicode/translit.h"
14
 
#include "unicode/locid.h"
15
 
 
16
 
U_NAMESPACE_BEGIN
17
 
 
18
 
/**
19
 
 * A transliterator that performs locale-sensitive toLower()
20
 
 * case mapping.
21
 
 * @author Alan Liu
22
 
 */
23
 
class U_I18N_API LowercaseTransliterator : public Transliterator {
24
 
 
25
 
 public:
26
 
 
27
 
    /**
28
 
     * Constructs a transliterator.
29
 
     */
30
 
    LowercaseTransliterator(const Locale& loc = Locale::getDefault());
31
 
 
32
 
    /**
33
 
     * Destructor.
34
 
     */
35
 
    virtual ~LowercaseTransliterator();
36
 
 
37
 
    /**
38
 
     * Copy constructor.
39
 
     */
40
 
    LowercaseTransliterator(const LowercaseTransliterator&);
41
 
 
42
 
    /**
43
 
     * Assignment operator.
44
 
     */
45
 
    LowercaseTransliterator& operator=(const LowercaseTransliterator&);
46
 
 
47
 
    /**
48
 
     * Transliterator API.
49
 
     */
50
 
    Transliterator* clone(void) const;
51
 
 
52
 
 protected:
53
 
 
54
 
    /**
55
 
     * Implements {@link Transliterator#handleTransliterate}.
56
 
     */
57
 
    virtual void handleTransliterate(Replaceable& text,
58
 
                                     UTransPosition& offsets, 
59
 
                                     UBool isIncremental) const;
60
 
 
61
 
 private:
62
 
 
63
 
    Locale loc;
64
 
    UChar* buffer;
65
 
    static const char _ID[];
66
 
};
67
 
 
68
 
U_NAMESPACE_END
69
 
 
70
 
#endif