5
* Phoebe DOM Implementation.
7
* This is a C++ approximation of the W3C DOM model, which follows
8
* fairly closely the specifications in the various .idl files, copies of
9
* which are provided for reference. Most important is this one:
11
* http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
16
* Copyright (C) 2005 Bob Jamison
18
* This library is free software; you can redistribute it and/or
19
* modify it under the terms of the GNU Lesser General Public
20
* License as published by the Free Software Foundation; either
21
* version 2.1 of the License, or (at your option) any later version.
23
* This library is distributed in the hope that it will be useful,
24
* but WITHOUT ANY WARRANTY; without even the implied warranty of
25
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26
* Lesser General Public License for more details.
28
* You should have received a copy of the GNU Lesser General Public
29
* License along with this library; if not, write to the Free Software
30
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
46
* A class that implements the W3C URI resource reference.
74
URI(const DOMString &str);
85
URI(const URI &other);
95
virtual bool parse(const DOMString &str);
100
virtual DOMString toString() const;
105
virtual int getScheme() const;
110
virtual DOMString getSchemeStr() const;
115
virtual DOMString getAuthority() const;
118
* Same as getAuthority, but if the port has been specified
119
* as host:port , the port will not be included
121
virtual DOMString getHost() const;
126
virtual int getPort() const;
131
virtual DOMString getPath() const;
136
virtual bool getIsAbsolute() const;
141
virtual DOMString getQuery() const;
146
virtual DOMString getFragment() const;
170
void error(const char *fmt, ...);
172
void trace(const char *fmt, ...);
177
int match(int p, char *key);
179
int parseScheme(int p);
181
int parseHierarchicalPart(int p0);
183
int parseQuery(int p0);
185
int parseFragment(int p0);
203
#endif /* __URI_H__ */