00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __XML_SCHEMA_TYPES_H__
00024
00025 #define __XML_SCHEMA_TYPES_H__
00026
00027
00028
00029 #include <libxml/xmlversion.h>
00030
00031
00032
00033 #ifdef LIBXML_SCHEMAS_ENABLED
00034
00035
00036
00037 #include <libxml/schemasInternals.h>
00038
00039 #include <libxml/xmlschemas.h>
00040
00041
00042
00043 #ifdef __cplusplus
00044
00045 extern "C" {
00046
00047 #endif
00048
00049
00050
00051 XMLPUBFUN void XMLCALL
00052
00053 xmlSchemaInitTypes (void);
00054
00055 XMLPUBFUN void XMLCALL
00056
00057 xmlSchemaCleanupTypes (void);
00058
00059 XMLPUBFUN xmlSchemaTypePtr XMLCALL
00060
00061 xmlSchemaGetPredefinedType (const xmlChar *name,
00062
00063 const xmlChar *ns);
00064
00065 XMLPUBFUN int XMLCALL
00066
00067 xmlSchemaValidatePredefinedType (xmlSchemaTypePtr type,
00068
00069 const xmlChar *value,
00070
00071 xmlSchemaValPtr *val);
00072
00073 XMLPUBFUN int XMLCALL
00074
00075 xmlSchemaValPredefTypeNode (xmlSchemaTypePtr type,
00076
00077 const xmlChar *value,
00078
00079 xmlSchemaValPtr *val,
00080
00081 xmlNodePtr node);
00082
00083 XMLPUBFUN int XMLCALL
00084
00085 xmlSchemaValidateFacet (xmlSchemaTypePtr base,
00086
00087 xmlSchemaFacetPtr facet,
00088
00089 const xmlChar *value,
00090
00091 xmlSchemaValPtr val);
00092
00093 XMLPUBFUN void XMLCALL
00094
00095 xmlSchemaFreeValue (xmlSchemaValPtr val);
00096
00097 XMLPUBFUN xmlSchemaFacetPtr XMLCALL
00098
00099 xmlSchemaNewFacet (void);
00100
00101 XMLPUBFUN int XMLCALL
00102
00103 xmlSchemaCheckFacet (xmlSchemaFacetPtr facet,
00104
00105 xmlSchemaTypePtr typeDecl,
00106
00107 xmlSchemaParserCtxtPtr ctxt,
00108
00109 const xmlChar *name);
00110
00111 XMLPUBFUN void XMLCALL
00112
00113 xmlSchemaFreeFacet (xmlSchemaFacetPtr facet);
00114
00115 XMLPUBFUN int XMLCALL
00116
00117 xmlSchemaCompareValues (xmlSchemaValPtr x,
00118
00119 xmlSchemaValPtr y);
00120
00121 XMLPUBFUN xmlSchemaTypePtr XMLCALL
00122
00123 xmlSchemaGetBuiltInListSimpleTypeItemType (xmlSchemaTypePtr type);
00124
00125 XMLPUBFUN int XMLCALL
00126
00127 xmlSchemaValidateListSimpleTypeFacet (xmlSchemaFacetPtr facet,
00128
00129 const xmlChar *value,
00130
00131 unsigned long actualLen,
00132
00133 unsigned long *expectedLen);
00134
00135 XMLPUBFUN xmlSchemaTypePtr XMLCALL
00136
00137 xmlSchemaGetBuiltInType (xmlSchemaValType type);
00138
00139 XMLPUBFUN int XMLCALL
00140
00141 xmlSchemaIsBuiltInTypeFacet (xmlSchemaTypePtr type,
00142
00143 int facetType);
00144
00145 XMLPUBFUN xmlChar * XMLCALL
00146
00147 xmlSchemaCollapseString (const xmlChar *value);
00148
00149 XMLPUBFUN xmlChar * XMLCALL
00150
00151 xmlSchemaWhiteSpaceReplace (const xmlChar *value);
00152
00153 XMLPUBFUN unsigned long XMLCALL
00154
00155 xmlSchemaGetFacetValueAsULong (xmlSchemaFacetPtr facet);
00156
00157 XMLPUBFUN int XMLCALL
00158
00159 xmlSchemaValidateLengthFacet (xmlSchemaTypePtr type,
00160
00161 xmlSchemaFacetPtr facet,
00162
00163 const xmlChar *value,
00164
00165 xmlSchemaValPtr val,
00166
00167 unsigned long *length) ;
00168
00169 XMLPUBFUN int XMLCALL
00170
00171 xmlSchemaValPredefTypeNodeNoNorm(xmlSchemaTypePtr type,
00172
00173 const xmlChar *value,
00174
00175 xmlSchemaValPtr *val,
00176
00177 xmlNodePtr node);
00178
00179
00180
00181 #ifdef __cplusplus
00182
00183 }
00184
00185 #endif
00186
00187
00188
00189 #endif
00190
00191 #endif
00192