00001 /* 00002 * Copyright 2004,2005 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #ifndef WODEN_XML_CHAR_H 00018 #define WODEN_XML_CHAR_H 00019 00041 #include <axis2_allocator.h> 00042 #include <axis2_env.h> 00043 #include <axis2_error.h> 00044 #include <axis2_string.h> 00045 #include <axis2_utils.h> 00046 #include <axis2_hash.h> 00047 #include <axis2_uri.h> 00048 #include <woden.h> 00049 00050 #ifdef __cplusplus 00051 extern "C" 00052 { 00053 #endif 00054 00065 axis2_bool_t AXIS2_CALL 00066 woden_xml_char_is_supplemental( 00067 int c); 00068 00076 int AXIS2_CALL 00077 woden_xml_char_supplemental( 00078 char h, 00079 char l); 00080 00086 axis2_char_t AXIS2_CALL 00087 woden_xml_char_high_surrogate( 00088 int c); 00089 00095 axis2_char_t AXIS2_CALL 00096 woden_xml_char_low_surrogate( 00097 int c); 00098 00104 axis2_bool_t AXIS2_CALL 00105 woden_xml_char_is_high_surrogate( 00106 int c); 00107 00113 axis2_bool_t AXIS2_CALL 00114 woden_xml_char_is_low_surrogate( 00115 int c); 00116 00117 00128 axis2_bool_t AXIS2_CALL 00129 woden_xml_char_is_valid( 00130 int c); 00131 00137 axis2_bool_t AXIS2_CALL 00138 woden_xml_char_is_invalid( 00139 int c); 00140 00146 axis2_bool_t AXIS2_CALL 00147 woden_xml_char_is_content( 00148 int c); 00149 00156 axis2_bool_t AXIS2_CALL 00157 woden_xml_char_is_markup( 00158 int c); 00159 00166 axis2_bool_t AXIS2_CALL 00167 woden_xml_char_is_space( 00168 int c); 00169 00176 axis2_bool_t AXIS2_CALL 00177 woden_xml_char_is_xml11_space( 00178 int c); 00179 00187 axis2_bool_t AXIS2_CALL 00188 woden_xml_char_is_name_start( 00189 int c); 00190 00198 axis2_bool_t AXIS2_CALL 00199 woden_xml_char_is_name( 00200 int c); 00201 00209 axis2_bool_t AXIS2_CALL 00210 woden_xml_char_is_nc_name_start( 00211 int c); 00212 00220 axis2_bool_t AXIS2_CALL 00221 woden_xml_char_is_nc_name( 00222 int c); 00223 00231 axis2_bool_t AXIS2_CALL 00232 woden_xml_char_is_pubid( 00233 int c); 00234 00235 /* 00236 * [5] Name ::= (Letter | '_' | ':'(NameChar)* 00237 */ 00245 axis2_bool_t AXIS2_CALL 00246 woden_xml_char_is_valid_name( 00247 axis2_char_t *name); 00248 00249 00250 /* 00251 * from the namespace rec 00252 * [4] NCName ::= (Letter | '_'(NCNameChar)* 00253 */ 00261 axis2_bool_t AXIS2_CALL 00262 woden_xml_char_is_valid_nc_name( 00263 axis2_char_t * nc_name); 00264 00265 /* 00266 * [7] Nmtoken ::= (NameChar)+ 00267 */ 00275 axis2_bool_t AXIS2_CALL 00276 woden_xml_char_is_valid_nmtoken( 00277 axis2_char_t * nmtoken); 00278 00280 #ifdef __cplusplus 00281 } 00282 #endif 00283 #endif /* WODEN_XML_CHAR_H */ 00284