VirtualBox

source: vbox/trunk/src/libs/libxml2-2.13.2/include/libxml/uri.h@ 107935

Last change on this file since 107935 was 105420, checked in by vboxsync, 7 months ago

libxml2-2.12.6: Applied and adjusted our libxml2 changes to 2.12.6. bugref:10730

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
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 <stdio.h>
15#include <libxml/xmlversion.h>
16#include <libxml/xmlstring.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22/**
23 * xmlURI:
24 *
25 * A parsed URI reference. This is a struct containing the various fields
26 * as described in RFC 2396 but separated for further processing.
27 *
28 * Note: query is a deprecated field which is incorrectly unescaped.
29 * query_raw takes precedence over query if the former is set.
30 * See: http://mail.gnome.org/archives/xml/2007-April/thread.html#00127
31 */
32typedef struct _xmlURI xmlURI;
33typedef xmlURI *xmlURIPtr;
34struct _xmlURI {
35 char *scheme; /* the URI scheme */
36 char *opaque; /* opaque part */
37 char *authority; /* the authority part */
38 char *server; /* the server part */
39 char *user; /* the user part */
40 int port; /* the port number */
41 char *path; /* the path string */
42 char *query; /* the query string (deprecated - use with caution) */
43 char *fragment; /* the fragment identifier */
44 int cleanup; /* parsing potentially unclean URI */
45 char *query_raw; /* the query string (as it appears in the URI) */
46};
47
48/*
49 * This function is in tree.h:
50 * xmlChar * xmlNodeGetBase (xmlDocPtr doc,
51 * xmlNodePtr cur);
52 */
53XMLPUBFUN xmlURIPtr
54 xmlCreateURI (void);
55XMLPUBFUN int
56 xmlBuildURISafe (const xmlChar *URI,
57 const xmlChar *base,
58 xmlChar **out);
59XMLPUBFUN xmlChar *
60 xmlBuildURI (const xmlChar *URI,
61 const xmlChar *base);
62XMLPUBFUN int
63 xmlBuildRelativeURISafe (const xmlChar *URI,
64 const xmlChar *base,
65 xmlChar **out);
66XMLPUBFUN xmlChar *
67 xmlBuildRelativeURI (const xmlChar *URI,
68 const xmlChar *base);
69XMLPUBFUN xmlURIPtr
70 xmlParseURI (const char *str);
71XMLPUBFUN int
72 xmlParseURISafe (const char *str,
73 xmlURIPtr *uri);
74XMLPUBFUN xmlURIPtr
75 xmlParseURIRaw (const char *str,
76 int raw);
77XMLPUBFUN int
78 xmlParseURIReference (xmlURIPtr uri,
79 const char *str);
80XMLPUBFUN xmlChar *
81 xmlSaveUri (xmlURIPtr uri);
82XMLPUBFUN void
83 xmlPrintURI (FILE *stream,
84 xmlURIPtr uri);
85XMLPUBFUN xmlChar *
86 xmlURIEscapeStr (const xmlChar *str,
87 const xmlChar *list);
88XMLPUBFUN char *
89 xmlURIUnescapeString (const char *str,
90 int len,
91 char *target);
92XMLPUBFUN int
93 xmlNormalizeURIPath (char *path);
94XMLPUBFUN xmlChar *
95 xmlURIEscape (const xmlChar *str);
96XMLPUBFUN void
97 xmlFreeURI (xmlURIPtr uri);
98XMLPUBFUN xmlChar*
99 xmlCanonicPath (const xmlChar *path);
100XMLPUBFUN xmlChar*
101 xmlPathToURI (const xmlChar *path);
102
103#ifdef __cplusplus
104}
105#endif
106#endif /* __XML_URI_H__ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette