1 | /** |
---|
2 | * Summary: library of generic URI related routines |
---|
3 | * Description: library of generic URI related routines |
---|
4 | * Implements RFC 2396 |
---|
5 | * |
---|
6 | * Copy: See Copyright for the status of this software. |
---|
7 | * |
---|
8 | * Author: Daniel Veillard |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef __XML_URI_H__ |
---|
12 | #define __XML_URI_H__ |
---|
13 | |
---|
14 | #include <libxml/xmlversion.h> |
---|
15 | #include <libxml/tree.h> |
---|
16 | |
---|
17 | #ifdef __cplusplus |
---|
18 | extern "C" { |
---|
19 | #endif |
---|
20 | |
---|
21 | /** |
---|
22 | * xmlURI: |
---|
23 | * |
---|
24 | * A parsed URI reference. This is a struct containing the various fields |
---|
25 | * as described in RFC 2396 but separated for further processing. |
---|
26 | */ |
---|
27 | typedef struct _xmlURI xmlURI; |
---|
28 | typedef xmlURI *xmlURIPtr; |
---|
29 | struct _xmlURI { |
---|
30 | char *scheme; /* the URI scheme */ |
---|
31 | char *opaque; /* opaque part */ |
---|
32 | char *authority; /* the authority part */ |
---|
33 | char *server; /* the server part */ |
---|
34 | char *user; /* the user part */ |
---|
35 | int port; /* the port number */ |
---|
36 | char *path; /* the path string */ |
---|
37 | char *query; /* the query string */ |
---|
38 | char *fragment; /* the fragment identifier */ |
---|
39 | int cleanup; /* parsing potentially unclean URI */ |
---|
40 | }; |
---|
41 | |
---|
42 | /* |
---|
43 | * This function is in tree.h: |
---|
44 | * xmlChar * xmlNodeGetBase (xmlDocPtr doc, |
---|
45 | * xmlNodePtr cur); |
---|
46 | */ |
---|
47 | XMLPUBFUN xmlURIPtr XMLCALL |
---|
48 | xmlCreateURI (void); |
---|
49 | XMLPUBFUN xmlChar * XMLCALL |
---|
50 | xmlBuildURI (const xmlChar *URI, |
---|
51 | const xmlChar *base); |
---|
52 | XMLPUBFUN xmlChar * XMLCALL |
---|
53 | xmlBuildRelativeURI (const xmlChar *URI, |
---|
54 | const xmlChar *base); |
---|
55 | XMLPUBFUN xmlURIPtr XMLCALL |
---|
56 | xmlParseURI (const char *str); |
---|
57 | XMLPUBFUN int XMLCALL |
---|
58 | xmlParseURIReference (xmlURIPtr uri, |
---|
59 | const char *str); |
---|
60 | XMLPUBFUN xmlChar * XMLCALL |
---|
61 | xmlSaveUri (xmlURIPtr uri); |
---|
62 | XMLPUBFUN void XMLCALL |
---|
63 | xmlPrintURI (FILE *stream, |
---|
64 | xmlURIPtr uri); |
---|
65 | XMLPUBFUN xmlChar * XMLCALL |
---|
66 | xmlURIEscapeStr (const xmlChar *str, |
---|
67 | const xmlChar *list); |
---|
68 | XMLPUBFUN char * XMLCALL |
---|
69 | xmlURIUnescapeString (const char *str, |
---|
70 | intptr_t len, |
---|
71 | char *target); |
---|
72 | XMLPUBFUN int XMLCALL |
---|
73 | xmlNormalizeURIPath (char *path); |
---|
74 | XMLPUBFUN xmlChar * XMLCALL |
---|
75 | xmlURIEscape (const xmlChar *str); |
---|
76 | XMLPUBFUN void XMLCALL |
---|
77 | xmlFreeURI (xmlURIPtr uri); |
---|
78 | XMLPUBFUN xmlChar* XMLCALL |
---|
79 | xmlCanonicPath (const xmlChar *path); |
---|
80 | |
---|
81 | #ifdef __cplusplus |
---|
82 | } |
---|
83 | #endif |
---|
84 | #endif /* __XML_URI_H__ */ |
---|