1 | <HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>XMLChar.hpp Source File</TITLE><link href="XercesApi.css" rel="stylesheet" type="text/css"></HEAD><BODY alink="#ff0000" bgcolor="#ffffff" leftmargin="4" link="#0000ff" marginheight="4" marginwidth="4" text="#000000" topmargin="4" vlink="#0000aa"><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" height="60" rowspan="3" valign="top" width="135"><IMG border="0" height="60" hspace="0" src="../resources/logo.gif" vspace="0" width="135"></TD><TD align="left" colspan="4" height="5" valign="top" width="456"><IMG border="0" height="5" hspace="0" src="../resources/line.gif" vspace="0" width="456"></TD><TD align="left" height="60" rowspan="3" valign="top" width="29"><IMG border="0" height="60" hspace="0" src="../resources/right.gif" vspace="0" width="29"></TD></TR><TR><TD align="left" bgcolor="#0086b2" colspan="4" height="35" valign="top" width="456"><IMG alt="" border="0" height="35" hspace="0" src="../graphics/api-header.jpg" vspace="0" width="456"></TD></TR><TR><TD align="left" height="20" valign="top" width="168"><IMG border="0" height="20" hspace="0" src="../resources/bottom.gif" vspace="0" width="168"></TD><TD align="left" height="20" valign="top" width="96"><A href="http://xml.apache.org/" onMouseOut="rolloverOff('xml');" onMouseOver="rolloverOn('xml');" target="new"><IMG alt="http://xml.apache.org/" border="0" height="20" hspace="0" name="xml" onLoad="rolloverLoad('xml','../resources/button-xml-hi.gif','../resources/button-xml-lo.gif');" src="../resources/button-xml-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.apache.org/" onMouseOut="rolloverOff('asf');" onMouseOver="rolloverOn('asf');" target="new"><IMG alt="http://www.apache.org/" border="0" height="20" hspace="0" name="asf" onLoad="rolloverLoad('asf','../resources/button-asf-hi.gif','../resources/button-asf-lo.gif');" src="../resources/button-asf-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.w3.org/" onMouseOut="rolloverOff('w3c');" onMouseOver="rolloverOn('w3c');" target="new"><IMG alt="http://www.w3.org/" border="0" height="20" hspace="0" name="w3c" onLoad="rolloverLoad('w3c','../resources/button-w3c-hi.gif','../resources/button-w3c-lo.gif');" src="../resources/button-w3c-lo.gif" vspace="0" width="96"></A></TD></TR></TABLE><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" valign="top" width="120"><IMG border="0" height="14" hspace="0" src="../resources/join.gif" vspace="0" width="120"><BR>
|
---|
2 | <A href="../../index.html" onMouseOut="rolloverOff('side-ext-2');" onMouseOver="rolloverOn('side-ext-2');"><IMG alt="Home" border="0" height="12" hspace="0" name="side-ext-2" onLoad="rolloverLoad('side-ext-2','../graphics/ext-2-label-2.jpg','../graphics/ext-2-label-3.jpg');" src="../graphics/ext-2-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
3 |
|
---|
4 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
5 |
|
---|
6 | <A href="../index.html" onMouseOut="rolloverOff('side-index');" onMouseOver="rolloverOn('side-index');"><IMG alt="Readme" border="0" height="12" hspace="0" name="side-index" onLoad="rolloverLoad('side-index','../graphics/index-label-2.jpg','../graphics/index-label-3.jpg');" src="../graphics/index-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
7 | <A href="../releases.html" onMouseOut="rolloverOff('side-releases');" onMouseOver="rolloverOn('side-releases');"><IMG alt="Release Info" border="0" height="12" hspace="0" name="side-releases" onLoad="rolloverLoad('side-releases','../graphics/releases-label-2.jpg','../graphics/releases-label-3.jpg');" src="../graphics/releases-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
8 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
9 | <A href="../install.html" onMouseOut="rolloverOff('side-install');" onMouseOver="rolloverOn('side-install');"><IMG alt="Installation" border="0" height="12" hspace="0" name="side-install" onLoad="rolloverLoad('side-install','../graphics/install-label-2.jpg','../graphics/install-label-3.jpg');" src="../graphics/install-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
10 | <A href="http://xml.apache.org/dist/xerces-c/" onMouseOut="rolloverOff('side-ext-18');" onMouseOver="rolloverOn('side-ext-18');"><IMG alt="Download" border="0" height="12" hspace="0" name="side-ext-18" onLoad="rolloverLoad('side-ext-18','../graphics/ext-18-label-2.jpg','../graphics/ext-18-label-3.jpg');" src="../graphics/ext-18-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
11 | <A href="../build.html" onMouseOut="rolloverOff('side-build');" onMouseOver="rolloverOn('side-build');"><IMG alt="Build" border="0" height="12" hspace="0" name="side-build" onLoad="rolloverLoad('side-build','../graphics/build-label-2.jpg','../graphics/build-label-3.jpg');" src="../graphics/build-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
12 |
|
---|
13 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
14 | <A href="../faqs.html" onMouseOut="rolloverOff('side-faqs');" onMouseOver="rolloverOn('side-faqs');"><IMG alt="FAQs" border="0" height="12" hspace="0" name="side-faqs" onLoad="rolloverLoad('side-faqs','../graphics/faqs-label-2.jpg','../graphics/faqs-label-3.jpg');" src="../graphics/faqs-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
15 | <A href="../samples.html" onMouseOut="rolloverOff('side-samples');" onMouseOver="rolloverOn('side-samples');"><IMG alt="Samples" border="0" height="12" hspace="0" name="side-samples" onLoad="rolloverLoad('side-samples','../graphics/samples-label-2.jpg','../graphics/samples-label-3.jpg');" src="../graphics/samples-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
16 | <A href="../api.html" onMouseOut="rolloverOff('side-api');" onMouseOver="rolloverOn('side-api');"><IMG alt="API Docs" border="0" height="12" hspace="0" name="side-api" onLoad="rolloverLoad('side-api','../graphics/api-label-2.jpg','../graphics/api-label-3.jpg');" src="../graphics/api-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
17 |
|
---|
18 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
19 | <A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-68');" onMouseOver="rolloverOn('side-ext-68');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-68" onLoad="rolloverLoad('side-ext-68','../graphics/ext-68-label-2.jpg','../graphics/ext-68-label-3.jpg');" src="../graphics/ext-68-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
20 |
|
---|
21 | <A href="../program.html" onMouseOut="rolloverOff('side-program');" onMouseOver="rolloverOn('side-program');"><IMG alt="Programming" border="0" height="12" hspace="0" name="side-program" onLoad="rolloverLoad('side-program','../graphics/program-label-2.jpg','../graphics/program-label-3.jpg');" src="../graphics/program-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
22 | <A href="../migrate.html" onMouseOut="rolloverOff('side-migrate');" onMouseOver="rolloverOn('side-migrate');"><IMG alt="Migration Guide" border="0" height="12" hspace="0" name="side-migrate" onLoad="rolloverLoad('side-migrate','../graphics/migrate-label-2.jpg','../graphics/migrate-label-3.jpg');" src="../graphics/migrate-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
23 |
|
---|
24 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
25 |
|
---|
26 | <A href="../feedback.html" onMouseOut="rolloverOff('side-feedback');" onMouseOver="rolloverOn('side-feedback');"><IMG alt="Feedback" border="0" height="12" hspace="0" name="side-feedback" onLoad="rolloverLoad('side-feedback','../graphics/feedback-label-2.jpg','../graphics/feedback-label-3.jpg');" src="../graphics/feedback-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
27 | <A href="../bug-report.html" onMouseOut="rolloverOff('side-bug-report');" onMouseOver="rolloverOn('side-bug-report');"><IMG alt="Bug-Reporting" border="0" height="12" hspace="0" name="side-bug-report" onLoad="rolloverLoad('side-bug-report','../graphics/bug-report-label-2.jpg','../graphics/bug-report-label-3.jpg');" src="../graphics/bug-report-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
28 | <A href="../pdf.html" onMouseOut="rolloverOff('side-pdf');" onMouseOver="rolloverOn('side-pdf');"><IMG alt="PDF Document" border="0" height="12" hspace="0" name="side-pdf" onLoad="rolloverLoad('side-pdf','../graphics/pdf-label-2.jpg','../graphics/pdf-label-3.jpg');" src="../graphics/pdf-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
29 |
|
---|
30 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
31 |
|
---|
32 | <A href="http://xml.apache.org/websrc/cvsweb.cgi/xml-xerces/c/" onMouseOut="rolloverOff('side-ext-100');" onMouseOver="rolloverOn('side-ext-100');"><IMG alt="CVS Repository" border="0" height="12" hspace="0" name="side-ext-100" onLoad="rolloverLoad('side-ext-100','../graphics/ext-100-label-2.jpg','../graphics/ext-100-label-3.jpg');" src="../graphics/ext-100-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
33 |
|
---|
34 | <A href="http://marc.theaimsgroup.com/?l=xerces-c-dev" onMouseOut="rolloverOff('side-ext-102');" onMouseOver="rolloverOn('side-ext-102');"><IMG alt="Mail Archive" border="0" height="12" hspace="0" name="side-ext-102" onLoad="rolloverLoad('side-ext-102','../graphics/ext-102-label-2.jpg','../graphics/ext-102-label-3.jpg');" src="../graphics/ext-102-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
35 |
|
---|
36 |
|
---|
37 | <IMG border="0" height="14" hspace="0" src="../resources/close.gif" vspace="0" width="120"><BR></TD><TD align="left" valign="top" width="500"><TABLE border="0" cellpadding="3" cellspacing="0"><TR><TD>
|
---|
38 | <TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#FFFFFF" colspan="2" width="494"><TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#039acc" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" width="492"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><IMG border="0" height="2" hspace="0" src="../resources/void.gif" vspace="0" width="2"><B>API Docs for SAX and DOM</B></FONT></TD><TD bgcolor="#017299" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#017299" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#017299" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></TD></TR><TR><TD width="10"> </TD><TD width="484"><FONT color="#000000" face="arial,helvetica,sanserif">
|
---|
39 |
|
---|
40 | <P>
|
---|
41 | <!-- Generated by Doxygen 1.2.14 -->
|
---|
42 | <center>
|
---|
43 | <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
|
---|
44 | <hr><h1>XMLChar.hpp</h1><a href="XMLChar_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>
|
---|
45 | 00002 <font class="comment"> * Copyright 2002,2004 The Apache Software Foundation.</font>
|
---|
46 | 00003 <font class="comment"> * </font>
|
---|
47 | 00004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font>
|
---|
48 | 00005 <font class="comment"> * you may not use this file except in compliance with the License.</font>
|
---|
49 | 00006 <font class="comment"> * You may obtain a copy of the License at</font>
|
---|
50 | 00007 <font class="comment"> * </font>
|
---|
51 | 00008 <font class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</font>
|
---|
52 | 00009 <font class="comment"> * </font>
|
---|
53 | 00010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font>
|
---|
54 | 00011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font>
|
---|
55 | 00012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font>
|
---|
56 | 00013 <font class="comment"> * See the License for the specific language governing permissions and</font>
|
---|
57 | 00014 <font class="comment"> * limitations under the License.</font>
|
---|
58 | 00015 <font class="comment"> */</font>
|
---|
59 | 00016
|
---|
60 | 00017 <font class="comment">/*</font>
|
---|
61 | 00018 <font class="comment"> * $Log: XMLChar.hpp,v $</font>
|
---|
62 | 00019 <font class="comment"> * Revision 1.5 2004/09/08 13:56:24 peiyongz</font>
|
---|
63 | 00020 <font class="comment"> * Apache License Version 2.0</font>
|
---|
64 | 00021 <font class="comment"> *</font>
|
---|
65 | 00022 <font class="comment"> * Revision 1.4 2004/08/11 16:08:04 peiyongz</font>
|
---|
66 | 00023 <font class="comment"> * isValidNmToken</font>
|
---|
67 | 00024 <font class="comment"> *</font>
|
---|
68 | 00025 <font class="comment"> * Revision 1.3 2004/01/29 11:48:47 cargilld</font>
|
---|
69 | 00026 <font class="comment"> * Code cleanup changes to get rid of various compiler diagnostic messages.</font>
|
---|
70 | 00027 <font class="comment"> *</font>
|
---|
71 | 00028 <font class="comment"> * Revision 1.2 2003/08/14 02:57:27 knoaman</font>
|
---|
72 | 00029 <font class="comment"> * Code refactoring to improve performance of validation.</font>
|
---|
73 | 00030 <font class="comment"> *</font>
|
---|
74 | 00031 <font class="comment"> * Revision 1.1 2002/12/20 22:10:21 tng</font>
|
---|
75 | 00032 <font class="comment"> * XML 1.1</font>
|
---|
76 | 00033 <font class="comment"> *</font>
|
---|
77 | 00034 <font class="comment"> */</font>
|
---|
78 | 00035
|
---|
79 | 00036 <font class="preprocessor">#if !defined(XMLCHAR_HPP)</font>
|
---|
80 | <a name="l00037"></a><a class="code" href="XMLChar_8hpp.html#a0">00037</a> <font class="preprocessor"></font><font class="preprocessor">#define XMLCHAR_HPP</font>
|
---|
81 | 00038 <font class="preprocessor"></font>
|
---|
82 | 00039 <font class="preprocessor">#include <<a class="code" href="XMLUniDefs_8hpp.html">xercesc/util/XMLUniDefs.hpp</a>></font>
|
---|
83 | 00040
|
---|
84 | 00041 <a class="code" href="XercesDefs_8hpp.html#a2">XERCES_CPP_NAMESPACE_BEGIN</a>
|
---|
85 | 00042
|
---|
86 | 00043 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
87 | 00044 <font class="comment">// This file defines Char and utility that conforms to XML 1.0 and XML 1.1</font>
|
---|
88 | 00045 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
89 | 00046 <font class="comment">// Masks for the fgCharCharsTable1_0 array</font>
|
---|
90 | <a name="l00047"></a><a class="code" href="XMLChar_8hpp.html#a1">00047</a> <font class="keyword">const</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a> <a class="code" href="XMLChar_8hpp.html#a1">gLetterCharMask</a> = 0x1;
|
---|
91 | <a name="l00048"></a><a class="code" href="XMLChar_8hpp.html#a2">00048</a> <font class="keyword">const</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a> <a class="code" href="XMLChar_8hpp.html#a2">gFirstNameCharMask</a> = 0x2;
|
---|
92 | <a name="l00049"></a><a class="code" href="XMLChar_8hpp.html#a3">00049</a> <font class="keyword">const</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a> <a class="code" href="XMLChar_8hpp.html#a3">gNameCharMask</a> = 0x4;
|
---|
93 | <a name="l00050"></a><a class="code" href="XMLChar_8hpp.html#a4">00050</a> <font class="keyword">const</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a> <a class="code" href="XMLChar_8hpp.html#a4">gPlainContentCharMask</a> = 0x8;
|
---|
94 | <a name="l00051"></a><a class="code" href="XMLChar_8hpp.html#a5">00051</a> <font class="keyword">const</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a> <a class="code" href="XMLChar_8hpp.html#a5">gSpecialStartTagCharMask</a> = 0x10;
|
---|
95 | <a name="l00052"></a><a class="code" href="XMLChar_8hpp.html#a6">00052</a> <font class="keyword">const</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a> <a class="code" href="XMLChar_8hpp.html#a6">gControlCharMask</a> = 0x20;
|
---|
96 | <a name="l00053"></a><a class="code" href="XMLChar_8hpp.html#a7">00053</a> <font class="keyword">const</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a> <a class="code" href="XMLChar_8hpp.html#a7">gXMLCharMask</a> = 0x40;
|
---|
97 | <a name="l00054"></a><a class="code" href="XMLChar_8hpp.html#a8">00054</a> <font class="keyword">const</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a> <a class="code" href="XMLChar_8hpp.html#a8">gWhitespaceCharMask</a> = 0x80;
|
---|
98 | 00055
|
---|
99 | 00056 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
100 | 00057 <font class="comment">// This class is for XML 1.0</font>
|
---|
101 | 00058 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
102 | <a name="l00059"></a><a class="code" href="classXMLChar1__0.html">00059</a> <font class="keyword">class </font><a class="code" href="XercesDefs_8hpp.html#a8"></a> <a class="code" href="classXMLChar1__0.html">XMLChar1_0</a>
|
---|
103 | 00060 {
|
---|
104 | 00061 <font class="keyword">public</font>:
|
---|
105 | 00062 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
106 | 00063 <font class="comment">// Public, static methods, check the string</font>
|
---|
107 | 00064 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
108 | 00065 <font class="keyword">static</font> <font class="keywordtype">bool</font> isAllSpaces
|
---|
109 | 00066 (
|
---|
110 | 00067 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
111 | 00068 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
112 | 00069 );
|
---|
113 | 00070
|
---|
114 | 00071 <font class="keyword">static</font> <font class="keywordtype">bool</font> containsWhiteSpace
|
---|
115 | 00072 (
|
---|
116 | 00073 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
117 | 00074 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
118 | 00075 );
|
---|
119 | 00076
|
---|
120 | 00077 <font class="keyword">static</font> <font class="keywordtype">bool</font> isValidNmtoken
|
---|
121 | 00078 (
|
---|
122 | 00079 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
123 | 00080 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
124 | 00081 );
|
---|
125 | 00082
|
---|
126 | 00083 <font class="keyword">static</font> <font class="keywordtype">bool</font> isValidName
|
---|
127 | 00084 (
|
---|
128 | 00085 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
129 | 00086 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
130 | 00087 );
|
---|
131 | 00088
|
---|
132 | 00089 <font class="keyword">static</font> <font class="keywordtype">bool</font> isValidNCName
|
---|
133 | 00090 (
|
---|
134 | 00091 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
135 | 00092 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
136 | 00093 );
|
---|
137 | 00094
|
---|
138 | 00095 <font class="keyword">static</font> <font class="keywordtype">bool</font> isValidQName
|
---|
139 | 00096 (
|
---|
140 | 00097 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
141 | 00098 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
142 | 00099 );
|
---|
143 | 00100
|
---|
144 | 00101 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
145 | 00102 <font class="comment">// Public, static methods, check the XMLCh</font>
|
---|
146 | 00103 <font class="comment">// surrogate pair is assumed if second parameter is not null</font>
|
---|
147 | 00104 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
148 | 00105 <font class="keyword">static</font> <font class="keywordtype">bool</font> isXMLLetter(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
149 | 00106 <font class="keyword">static</font> <font class="keywordtype">bool</font> isFirstNameChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
150 | 00107 <font class="keyword">static</font> <font class="keywordtype">bool</font> isNameChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
151 | 00108 <font class="keyword">static</font> <font class="keywordtype">bool</font> isPlainContentChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
152 | 00109 <font class="keyword">static</font> <font class="keywordtype">bool</font> isSpecialStartTagChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
153 | 00110 <font class="keyword">static</font> <font class="keywordtype">bool</font> isXMLChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
154 | 00111 <font class="keyword">static</font> <font class="keywordtype">bool</font> isWhitespace(<font class="keyword">const</font> XMLCh toCheck);
|
---|
155 | 00112 <font class="keyword">static</font> <font class="keywordtype">bool</font> isWhitespace(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2);
|
---|
156 | 00113 <font class="keyword">static</font> <font class="keywordtype">bool</font> isControlChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
157 | 00114
|
---|
158 | 00115 <font class="keyword">static</font> <font class="keywordtype">bool</font> isPublicIdChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
159 | 00116
|
---|
160 | 00117 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
161 | 00118 <font class="comment">// Special Non-conformant Public, static methods</font>
|
---|
162 | 00119 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
163 | 00123 <font class="comment"></font> <font class="keyword">static</font> <font class="keywordtype">bool</font> isNELRecognized();
|
---|
164 | 00124
|
---|
165 | 00128 <font class="keyword">static</font> <font class="keywordtype">void</font> enableNELWS();
|
---|
166 | 00129
|
---|
167 | 00130 <font class="keyword">private</font>:
|
---|
168 | 00131 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
169 | 00132 <font class="comment">// Unimplemented constructors and operators</font>
|
---|
170 | 00133 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
171 | 00134 <a class="code" href="classXMLChar1__0.html">XMLChar1_0</a>();
|
---|
172 | 00135
|
---|
173 | 00136 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
174 | 00137 <font class="comment">// Static data members</font>
|
---|
175 | 00138 <font class="comment">//</font>
|
---|
176 | 00139 <font class="comment">// fgCharCharsTable1_0</font>
|
---|
177 | 00140 <font class="comment">// The character characteristics table. Bits in each byte, represent</font>
|
---|
178 | 00141 <font class="comment">// the characteristics of each character. It is generated via some</font>
|
---|
179 | 00142 <font class="comment">// code and then hard coded into the cpp file for speed.</font>
|
---|
180 | 00143 <font class="comment">//</font>
|
---|
181 | 00144 <font class="comment">// fNEL</font>
|
---|
182 | 00145 <font class="comment">// Flag to respresents whether NEL and LSEP newline recognition is enabled</font>
|
---|
183 | 00146 <font class="comment">// or disabled</font>
|
---|
184 | 00147 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
185 | 00148 <font class="keyword">static</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a> fgCharCharsTable1_0[0x10000];
|
---|
186 | 00149 <font class="keyword">static</font> <font class="keywordtype">bool</font> enableNEL;
|
---|
187 | 00150
|
---|
188 | <a name="l00151"></a><a class="code" href="classXMLChar1__0.html#l0">00151</a> <font class="keyword">friend</font> <font class="keyword">class </font>XMLReader;
|
---|
189 | 00152 };
|
---|
190 | 00153
|
---|
191 | 00154
|
---|
192 | 00155 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
193 | 00156 <font class="comment">// XMLReader: Public, static methods</font>
|
---|
194 | 00157 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
195 | <a name="l00158"></a><a class="code" href="classXMLChar1__0.html#d6">00158</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__0.html#d6">XMLChar1_0::isXMLLetter</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
196 | 00159 {
|
---|
197 | 00160 <font class="keywordflow">if</font> (!toCheck2)
|
---|
198 | 00161 <font class="keywordflow">return</font> ((fgCharCharsTable1_0[toCheck] & <a class="code" href="XMLChar_8hpp.html#a1">gLetterCharMask</a>) != 0);
|
---|
199 | 00162 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
200 | 00163 }
|
---|
201 | 00164
|
---|
202 | <a name="l00165"></a><a class="code" href="classXMLChar1__0.html#d7">00165</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__0.html#d7">XMLChar1_0::isFirstNameChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
203 | 00166 {
|
---|
204 | 00167 <font class="keywordflow">if</font> (!toCheck2)
|
---|
205 | 00168 <font class="keywordflow">return</font> ((fgCharCharsTable1_0[toCheck] & <a class="code" href="XMLChar_8hpp.html#a2">gFirstNameCharMask</a>) != 0);
|
---|
206 | 00169 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
207 | 00170 }
|
---|
208 | 00171
|
---|
209 | <a name="l00172"></a><a class="code" href="classXMLChar1__0.html#d8">00172</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__0.html#d8">XMLChar1_0::isNameChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
210 | 00173 {
|
---|
211 | 00174 <font class="keywordflow">if</font> (!toCheck2)
|
---|
212 | 00175 <font class="keywordflow">return</font> ((fgCharCharsTable1_0[toCheck] & <a class="code" href="XMLChar_8hpp.html#a3">gNameCharMask</a>) != 0);
|
---|
213 | 00176 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
214 | 00177 }
|
---|
215 | 00178
|
---|
216 | <a name="l00179"></a><a class="code" href="classXMLChar1__0.html#d9">00179</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__0.html#d9">XMLChar1_0::isPlainContentChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
217 | 00180 {
|
---|
218 | 00181 <font class="keywordflow">if</font> (!toCheck2)
|
---|
219 | 00182 <font class="keywordflow">return</font> ((fgCharCharsTable1_0[toCheck] & <a class="code" href="XMLChar_8hpp.html#a4">gPlainContentCharMask</a>) != 0);
|
---|
220 | 00183 <font class="keywordflow">else</font> {
|
---|
221 | 00184 <font class="keywordflow">if</font> ((toCheck >= 0xD800) && (toCheck <= 0xDBFF))
|
---|
222 | 00185 <font class="keywordflow">if</font> ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
|
---|
223 | 00186 <font class="keywordflow">return</font> <font class="keyword">true</font>;
|
---|
224 | 00187 }
|
---|
225 | 00188 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
226 | 00189 }
|
---|
227 | 00190
|
---|
228 | 00191
|
---|
229 | <a name="l00192"></a><a class="code" href="classXMLChar1__0.html#d10">00192</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__0.html#d10">XMLChar1_0::isSpecialStartTagChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
230 | 00193 {
|
---|
231 | 00194 <font class="keywordflow">if</font> (!toCheck2)
|
---|
232 | 00195 <font class="keywordflow">return</font> ((fgCharCharsTable1_0[toCheck] & <a class="code" href="XMLChar_8hpp.html#a5">gSpecialStartTagCharMask</a>) != 0);
|
---|
233 | 00196 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
234 | 00197 }
|
---|
235 | 00198
|
---|
236 | <a name="l00199"></a><a class="code" href="classXMLChar1__0.html#d11">00199</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__0.html#d11">XMLChar1_0::isXMLChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
237 | 00200 {
|
---|
238 | 00201 <font class="keywordflow">if</font> (!toCheck2)
|
---|
239 | 00202 <font class="keywordflow">return</font> ((fgCharCharsTable1_0[toCheck] & <a class="code" href="XMLChar_8hpp.html#a7">gXMLCharMask</a>) != 0);
|
---|
240 | 00203 <font class="keywordflow">else</font> {
|
---|
241 | 00204 <font class="keywordflow">if</font> ((toCheck >= 0xD800) && (toCheck <= 0xDBFF))
|
---|
242 | 00205 <font class="keywordflow">if</font> ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
|
---|
243 | 00206 <font class="keywordflow">return</font> <font class="keyword">true</font>;
|
---|
244 | 00207 }
|
---|
245 | 00208 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
246 | 00209 }
|
---|
247 | 00210
|
---|
248 | <a name="l00211"></a><a class="code" href="classXMLChar1__0.html#d12">00211</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__0.html#d12">XMLChar1_0::isWhitespace</a>(<font class="keyword">const</font> XMLCh toCheck)
|
---|
249 | 00212 {
|
---|
250 | 00213 <font class="keywordflow">return</font> ((fgCharCharsTable1_0[toCheck] & <a class="code" href="XMLChar_8hpp.html#a8">gWhitespaceCharMask</a>) != 0);
|
---|
251 | 00214 }
|
---|
252 | 00215
|
---|
253 | <a name="l00216"></a><a class="code" href="classXMLChar1__0.html#d13">00216</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__0.html#d12">XMLChar1_0::isWhitespace</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
254 | 00217 {
|
---|
255 | 00218 <font class="keywordflow">if</font> (!toCheck2)
|
---|
256 | 00219 <font class="keywordflow">return</font> ((fgCharCharsTable1_0[toCheck] & <a class="code" href="XMLChar_8hpp.html#a8">gWhitespaceCharMask</a>) != 0);
|
---|
257 | 00220 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
258 | 00221 }
|
---|
259 | 00222
|
---|
260 | <a name="l00223"></a><a class="code" href="classXMLChar1__0.html#d14">00223</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__0.html#d14">XMLChar1_0::isControlChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
261 | 00224 {
|
---|
262 | 00225 <font class="keywordflow">if</font> (!toCheck2)
|
---|
263 | 00226 <font class="keywordflow">return</font> ((fgCharCharsTable1_0[toCheck] & <a class="code" href="XMLChar_8hpp.html#a6">gControlCharMask</a>) != 0);
|
---|
264 | 00227 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
265 | 00228 }
|
---|
266 | 00229
|
---|
267 | <a name="l00230"></a><a class="code" href="classXMLChar1__0.html#d16">00230</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__0.html#d16">XMLChar1_0::isNELRecognized</a>() {
|
---|
268 | 00231
|
---|
269 | 00232 <font class="keywordflow">return</font> enableNEL;
|
---|
270 | 00233 }
|
---|
271 | 00234
|
---|
272 | 00235
|
---|
273 | 00236 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
274 | 00237 <font class="comment">// This class is for XML 1.1</font>
|
---|
275 | 00238 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
276 | <a name="l00239"></a><a class="code" href="classXMLChar1__1.html">00239</a> <font class="keyword">class </font><a class="code" href="XercesDefs_8hpp.html#a8"></a> XMLChar1_1
|
---|
277 | 00240 {
|
---|
278 | 00241 <font class="keyword">public</font>:
|
---|
279 | 00242 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
280 | 00243 <font class="comment">// Public, static methods, check the string</font>
|
---|
281 | 00244 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
282 | 00245 <font class="keyword">static</font> <font class="keywordtype">bool</font> isAllSpaces
|
---|
283 | 00246 (
|
---|
284 | 00247 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
285 | 00248 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
286 | 00249 );
|
---|
287 | 00250
|
---|
288 | 00251 <font class="keyword">static</font> <font class="keywordtype">bool</font> containsWhiteSpace
|
---|
289 | 00252 (
|
---|
290 | 00253 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
291 | 00254 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
292 | 00255 );
|
---|
293 | 00256
|
---|
294 | 00257 <font class="keyword">static</font> <font class="keywordtype">bool</font> isValidNmtoken
|
---|
295 | 00258 (
|
---|
296 | 00259 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
297 | 00260 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
298 | 00261 );
|
---|
299 | 00262
|
---|
300 | 00263 <font class="keyword">static</font> <font class="keywordtype">bool</font> isValidName
|
---|
301 | 00264 (
|
---|
302 | 00265 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
303 | 00266 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
304 | 00267 );
|
---|
305 | 00268
|
---|
306 | 00269 <font class="keyword">static</font> <font class="keywordtype">bool</font> isValidNCName
|
---|
307 | 00270 (
|
---|
308 | 00271 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
309 | 00272 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
310 | 00273 );
|
---|
311 | 00274
|
---|
312 | 00275 <font class="keyword">static</font> <font class="keywordtype">bool</font> isValidQName
|
---|
313 | 00276 (
|
---|
314 | 00277 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toCheck
|
---|
315 | 00278 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
316 | 00279 );
|
---|
317 | 00280
|
---|
318 | 00281 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
319 | 00282 <font class="comment">// Public, static methods, check the XMLCh</font>
|
---|
320 | 00283 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
321 | 00284 <font class="keyword">static</font> <font class="keywordtype">bool</font> isXMLLetter(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
322 | 00285 <font class="keyword">static</font> <font class="keywordtype">bool</font> isFirstNameChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
323 | 00286 <font class="keyword">static</font> <font class="keywordtype">bool</font> isNameChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
324 | 00287 <font class="keyword">static</font> <font class="keywordtype">bool</font> isPlainContentChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
325 | 00288 <font class="keyword">static</font> <font class="keywordtype">bool</font> isSpecialStartTagChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
326 | 00289 <font class="keyword">static</font> <font class="keywordtype">bool</font> isXMLChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
327 | 00290 <font class="keyword">static</font> <font class="keywordtype">bool</font> isWhitespace(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
328 | 00291 <font class="keyword">static</font> <font class="keywordtype">bool</font> isControlChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
329 | 00292
|
---|
330 | 00293 <font class="keyword">static</font> <font class="keywordtype">bool</font> isPublicIdChar(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2 = 0);
|
---|
331 | 00294
|
---|
332 | 00295 <font class="keyword">private</font>:
|
---|
333 | 00296 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
334 | 00297 <font class="comment">// Unimplemented constructors and operators</font>
|
---|
335 | 00298 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
336 | 00299 XMLChar1_1();
|
---|
337 | 00300
|
---|
338 | 00301 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
339 | 00302 <font class="comment">// Static data members</font>
|
---|
340 | 00303 <font class="comment">//</font>
|
---|
341 | 00304 <font class="comment">// fgCharCharsTable1_1</font>
|
---|
342 | 00305 <font class="comment">// The character characteristics table. Bits in each byte, represent</font>
|
---|
343 | 00306 <font class="comment">// the characteristics of each character. It is generated via some</font>
|
---|
344 | 00307 <font class="comment">// code and then hard coded into the cpp file for speed.</font>
|
---|
345 | 00308 <font class="comment">//</font>
|
---|
346 | 00309 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
347 | 00310 <font class="keyword">static</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a> fgCharCharsTable1_1[0x10000];
|
---|
348 | 00311
|
---|
349 | <a name="l00312"></a><a class="code" href="classXMLChar1__1.html#l0">00312</a> <font class="keyword">friend</font> <font class="keyword">class </font>XMLReader;
|
---|
350 | 00313 };
|
---|
351 | 00314
|
---|
352 | 00315
|
---|
353 | 00316 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
354 | 00317 <font class="comment">// XMLReader: Public, static methods</font>
|
---|
355 | 00318 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
356 | <a name="l00319"></a><a class="code" href="classXMLChar1__1.html#d6">00319</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__1.html#d6">XMLChar1_1::isXMLLetter</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
357 | 00320 {
|
---|
358 | 00321 <font class="keywordflow">if</font> (!toCheck2)
|
---|
359 | 00322 <font class="keywordflow">return</font> ((fgCharCharsTable1_1[toCheck] & <a class="code" href="XMLChar_8hpp.html#a1">gLetterCharMask</a>) != 0);
|
---|
360 | 00323 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
361 | 00324 }
|
---|
362 | 00325
|
---|
363 | <a name="l00326"></a><a class="code" href="classXMLChar1__1.html#d7">00326</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__1.html#d7">XMLChar1_1::isFirstNameChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
364 | 00327 {
|
---|
365 | 00328 <font class="keywordflow">if</font> (!toCheck2)
|
---|
366 | 00329 <font class="keywordflow">return</font> ((fgCharCharsTable1_1[toCheck] & <a class="code" href="XMLChar_8hpp.html#a2">gFirstNameCharMask</a>) != 0);
|
---|
367 | 00330 <font class="keywordflow">else</font> {
|
---|
368 | 00331 <font class="keywordflow">if</font> ((toCheck >= 0xD800) && (toCheck <= 0xDB7F))
|
---|
369 | 00332 <font class="keywordflow">if</font> ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
|
---|
370 | 00333 <font class="keywordflow">return</font> <font class="keyword">true</font>;
|
---|
371 | 00334 }
|
---|
372 | 00335 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
373 | 00336 }
|
---|
374 | 00337
|
---|
375 | <a name="l00338"></a><a class="code" href="classXMLChar1__1.html#d8">00338</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__1.html#d8">XMLChar1_1::isNameChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
376 | 00339 {
|
---|
377 | 00340 <font class="keywordflow">if</font> (!toCheck2)
|
---|
378 | 00341 <font class="keywordflow">return</font> ((fgCharCharsTable1_1[toCheck] & <a class="code" href="XMLChar_8hpp.html#a3">gNameCharMask</a>) != 0);
|
---|
379 | 00342 <font class="keywordflow">else</font> {
|
---|
380 | 00343 <font class="keywordflow">if</font> ((toCheck >= 0xD800) && (toCheck <= 0xDB7F))
|
---|
381 | 00344 <font class="keywordflow">if</font> ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
|
---|
382 | 00345 <font class="keywordflow">return</font> <font class="keyword">true</font>;
|
---|
383 | 00346 }
|
---|
384 | 00347 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
385 | 00348 }
|
---|
386 | 00349
|
---|
387 | <a name="l00350"></a><a class="code" href="classXMLChar1__1.html#d9">00350</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__1.html#d9">XMLChar1_1::isPlainContentChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
388 | 00351 {
|
---|
389 | 00352 <font class="keywordflow">if</font> (!toCheck2)
|
---|
390 | 00353 <font class="keywordflow">return</font> ((fgCharCharsTable1_1[toCheck] & <a class="code" href="XMLChar_8hpp.html#a4">gPlainContentCharMask</a>) != 0);
|
---|
391 | 00354 <font class="keywordflow">else</font> {
|
---|
392 | 00355 <font class="keywordflow">if</font> ((toCheck >= 0xD800) && (toCheck <= 0xDBFF))
|
---|
393 | 00356 <font class="keywordflow">if</font> ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
|
---|
394 | 00357 <font class="keywordflow">return</font> <font class="keyword">true</font>;
|
---|
395 | 00358 }
|
---|
396 | 00359 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
397 | 00360 }
|
---|
398 | 00361
|
---|
399 | 00362
|
---|
400 | <a name="l00363"></a><a class="code" href="classXMLChar1__1.html#d10">00363</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__1.html#d10">XMLChar1_1::isSpecialStartTagChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
401 | 00364 {
|
---|
402 | 00365 <font class="keywordflow">if</font> (!toCheck2)
|
---|
403 | 00366 <font class="keywordflow">return</font> ((fgCharCharsTable1_1[toCheck] & <a class="code" href="XMLChar_8hpp.html#a5">gSpecialStartTagCharMask</a>) != 0);
|
---|
404 | 00367 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
405 | 00368 }
|
---|
406 | 00369
|
---|
407 | <a name="l00370"></a><a class="code" href="classXMLChar1__1.html#d11">00370</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__1.html#d11">XMLChar1_1::isXMLChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
408 | 00371 {
|
---|
409 | 00372 <font class="keywordflow">if</font> (!toCheck2)
|
---|
410 | 00373 <font class="keywordflow">return</font> ((fgCharCharsTable1_1[toCheck] & <a class="code" href="XMLChar_8hpp.html#a7">gXMLCharMask</a>) != 0);
|
---|
411 | 00374 <font class="keywordflow">else</font> {
|
---|
412 | 00375 <font class="keywordflow">if</font> ((toCheck >= 0xD800) && (toCheck <= 0xDBFF))
|
---|
413 | 00376 <font class="keywordflow">if</font> ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
|
---|
414 | 00377 <font class="keywordflow">return</font> <font class="keyword">true</font>;
|
---|
415 | 00378 }
|
---|
416 | 00379 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
417 | 00380 }
|
---|
418 | 00381
|
---|
419 | <a name="l00382"></a><a class="code" href="classXMLChar1__1.html#d12">00382</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__1.html#d12">XMLChar1_1::isWhitespace</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
420 | 00383 {
|
---|
421 | 00384 <font class="keywordflow">if</font> (!toCheck2)
|
---|
422 | 00385 <font class="keywordflow">return</font> ((fgCharCharsTable1_1[toCheck] & <a class="code" href="XMLChar_8hpp.html#a8">gWhitespaceCharMask</a>) != 0);
|
---|
423 | 00386 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
424 | 00387 }
|
---|
425 | 00388
|
---|
426 | <a name="l00389"></a><a class="code" href="classXMLChar1__1.html#d13">00389</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLChar1__1.html#d13">XMLChar1_1::isControlChar</a>(<font class="keyword">const</font> XMLCh toCheck, <font class="keyword">const</font> XMLCh toCheck2)
|
---|
427 | 00390 {
|
---|
428 | 00391 <font class="keywordflow">if</font> (!toCheck2)
|
---|
429 | 00392 <font class="keywordflow">return</font> ((fgCharCharsTable1_1[toCheck] & <a class="code" href="XMLChar_8hpp.html#a6">gControlCharMask</a>) != 0);
|
---|
430 | 00393 <font class="keywordflow">return</font> <font class="keyword">false</font>;
|
---|
431 | 00394 }
|
---|
432 | 00395
|
---|
433 | 00396
|
---|
434 | 00397 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_END</a>
|
---|
435 | 00398
|
---|
436 | 00399 <font class="preprocessor">#endif</font>
|
---|
437 | </pre></div> </FONT></TD></TR></TABLE><BR>
|
---|
438 | </TD></TR></TABLE></TD></TR></TABLE><BR><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD bgcolor="#0086b2"><IMG height="1" src="images/dot.gif" width="1" alt=""></TD></TR><TR><TD align="center"><FONT color="#0086b2" size="-1"><I>
|
---|
439 | Copyright © 1994-2004 The Apache Software Foundation.
|
---|
440 | All Rights Reserved.
|
---|
441 | </I></FONT></TD></TR></TABLE></BODY></HTML>
|
---|