source: NonGTP/Xerces/xerces/include/xercesc/util/regx/XMLUniCharacter.hpp @ 358

Revision 358, 2.9 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 2001,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Id: XMLUniCharacter.hpp,v 1.3 2004/09/08 13:56:47 peiyongz Exp $
19 */
20
21#if !defined(XMLUNICHARACTER_HPP)
22#define XMLUNICHARACTER_HPP
23
24#include <xercesc/util/XercesDefs.hpp>
25
26XERCES_CPP_NAMESPACE_BEGIN
27
28/**
29  * Class for representing unicode characters
30  */
31class XMLUTIL_EXPORT XMLUniCharacter
32{
33public:
34    // -----------------------------------------------------------------------
35    //  Public Constants
36    // -----------------------------------------------------------------------
37    // Unicode chara types
38    enum {
39        UNASSIGNED              = 0,
40        UPPERCASE_LETTER        = 1,
41        LOWERCASE_LETTER        = 2,
42        TITLECASE_LETTER        = 3,
43        MODIFIER_LETTER         = 4,
44        OTHER_LETTER            = 5,
45        NON_SPACING_MARK        = 6,
46        ENCLOSING_MARK          = 7,
47        COMBINING_SPACING_MARK  = 8,
48        DECIMAL_DIGIT_NUMBER    = 9,
49        LETTER_NUMBER           = 10,
50        OTHER_NUMBER            = 11,
51        SPACE_SEPARATOR         = 12,
52        LINE_SEPARATOR          = 13,
53        PARAGRAPH_SEPARATOR     = 14,
54        CONTROL                 = 15,
55        FORMAT                  = 16,
56        PRIVATE_USE             = 17,
57        SURROGATE               = 18,
58        DASH_PUNCTUATION        = 19,
59        START_PUNCTUATION       = 20,
60        END_PUNCTUATION         = 21,
61                CONNECTOR_PUNCTUATION   = 22,
62        OTHER_PUNCTUATION       = 23,
63        MATH_SYMBOL             = 24,
64        CURRENCY_SYMBOL         = 25,
65        MODIFIER_SYMBOL         = 26,
66        OTHER_SYMBOL            = 27,
67                INITIAL_PUNCTUATION     = 28,
68                FINAL_PUNCTUATION       = 29
69        };
70
71        /** destructor */
72    ~XMLUniCharacter() {}
73
74    /* Static methods for getting unicode character type */
75    /** @name Getter functions */
76    //@{
77
78    /** Gets the unicode type of a given character
79      *
80      * @param ch The character we want to get its unicode type
81      */
82    static unsigned short getType(const XMLCh ch);
83        //@}
84
85private :
86
87    /** @name Constructors and Destructor */
88    //@{
89    /** Unimplemented default constructor */
90    XMLUniCharacter();
91    //@}
92};
93
94XERCES_CPP_NAMESPACE_END
95
96#endif
97
98/**
99  * End of file XMLUniCharacter.hpp
100  */
Note: See TracBrowser for help on using the repository browser.