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