Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanXMLChar.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-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 #if !defined(XALANXMLCHAR_HEADER_GUARD_1357924680)
17 #define XALANXMLCHAR_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
26 XALAN_CPP_NAMESPACE_BEGIN
27 
28 
29 
31 {
32 
33 public:
34 
35  enum eType
36  {
37  XML_XX = 0,
38  XML_BC = 1,
39  XML_ID = 2,
40  XML_EX = 3,
41  XML_DI = 4,
42  XML_CC = 5,
43  XML_WS = 6
44  };
45 
46  static const char theUnicodeTable[];
47 
48  static bool
49  isBaseChar(XalanDOMChar c)
50  {
51  return theUnicodeTable[c] == char(XML_BC);
52  }
53 
54  static bool
55  isIdeographic(XalanDOMChar c)
56  {
57  return theUnicodeTable[c] == char(XML_ID);
58  }
59 
60  static bool
61  isExtender(XalanDOMChar c)
62  {
63  return theUnicodeTable[c] == char(XML_EX);
64  }
65 
66  static bool
67  isDigit(XalanDOMChar c)
68  {
69  return theUnicodeTable[c] == char(XML_DI);
70  }
71 
72  static bool
73  isCombiningChar(XalanDOMChar c)
74  {
75  return theUnicodeTable[c] == char(XML_CC);
76  }
77 
78  static bool
79  isWhitespace(XalanDOMChar c)
80  {
81  return theUnicodeTable[c] == char(XML_WS);
82  }
83 
84  static bool
85  isLetter(XalanDOMChar c)
86  {
87  return theUnicodeTable[c] == char(XML_BC) || theUnicodeTable[c] == char(XML_ID);
88  }
89 };
90 
91 
92 
93 XALAN_CPP_NAMESPACE_END
94 
95 
96 
97 #endif // XALANXMLCHAR_HEADER_GUARD_1357924680
98 

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo