2
* Summary: implementation of XML Schema Datatypes
3
* Description: module providing the XML Schema Datatypes implementation
4
* both definition and validity checking
6
* Copy: See Copyright for the status of this software.
8
* Author: Daniel Veillard
12
#ifndef __XML_SCHEMA_TYPES_H__
13
#define __XML_SCHEMA_TYPES_H__
15
#include <libxml/xmlversion.h>
17
#ifdef LIBXML_SCHEMAS_ENABLED
19
#include <libxml/schemasInternals.h>
20
#include <libxml/xmlschemas.h>
26
XMLPUBFUN void XMLCALL
27
xmlSchemaInitTypes (void);
28
XMLPUBFUN void XMLCALL
29
xmlSchemaCleanupTypes (void);
30
XMLPUBFUN xmlSchemaTypePtr XMLCALL
31
xmlSchemaGetPredefinedType (const xmlChar *name,
34
xmlSchemaValidatePredefinedType (xmlSchemaTypePtr type,
36
xmlSchemaValPtr *val);
38
xmlSchemaValPredefTypeNode (xmlSchemaTypePtr type,
43
xmlSchemaValidateFacet (xmlSchemaTypePtr base,
44
xmlSchemaFacetPtr facet,
47
XMLPUBFUN void XMLCALL
48
xmlSchemaFreeValue (xmlSchemaValPtr val);
49
XMLPUBFUN xmlSchemaFacetPtr XMLCALL
50
xmlSchemaNewFacet (void);
52
xmlSchemaCheckFacet (xmlSchemaFacetPtr facet,
53
xmlSchemaTypePtr typeDecl,
54
xmlSchemaParserCtxtPtr ctxt,
56
XMLPUBFUN void XMLCALL
57
xmlSchemaFreeFacet (xmlSchemaFacetPtr facet);
59
xmlSchemaCompareValues (xmlSchemaValPtr x,
61
XMLPUBFUN xmlSchemaTypePtr XMLCALL
62
xmlSchemaGetBuiltInListSimpleTypeItemType (xmlSchemaTypePtr type);
64
xmlSchemaValidateListSimpleTypeFacet (xmlSchemaFacetPtr facet,
66
unsigned long actualLen,
67
unsigned long *expectedLen);
68
XMLPUBFUN xmlSchemaTypePtr XMLCALL
69
xmlSchemaGetBuiltInType (xmlSchemaValType type);
71
xmlSchemaIsBuiltInTypeFacet (xmlSchemaTypePtr type,
73
XMLPUBFUN xmlChar * XMLCALL
74
xmlSchemaCollapseString (const xmlChar *value);
75
XMLPUBFUN xmlChar * XMLCALL
76
xmlSchemaWhiteSpaceReplace (const xmlChar *value);
77
XMLPUBFUN unsigned long XMLCALL
78
xmlSchemaGetFacetValueAsULong (xmlSchemaFacetPtr facet);
80
xmlSchemaValidateLengthFacet (xmlSchemaTypePtr type,
81
xmlSchemaFacetPtr facet,
84
unsigned long *length) ;
86
xmlSchemaValPredefTypeNodeNoNorm(xmlSchemaTypePtr type,
95
#endif /* LIBXML_SCHEMAS_ENABLED */
96
#endif /* __XML_SCHEMA_TYPES_H__ */