summaryrefslogtreecommitdiffstats
path: root/src/uri.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uri.cpp')
-rw-r--r--src/uri.cpp47
1 files changed, 1 insertions, 46 deletions
diff --git a/src/uri.cpp b/src/uri.cpp
index 1e38c034a..de6a454ec 100644
--- a/src/uri.cpp
+++ b/src/uri.cpp
@@ -1,7 +1,4 @@
-/**
- * \file
- * \brief Classes for representing and manipulating URIs as per RFC 2396.
- *
+/*
* Authors:
* MenTaLguY <mental@rydia.net>
* Jon A. Cruz <jon@joncruz.org>
@@ -17,15 +14,11 @@
namespace Inkscape {
-/** \brief Copy constructor. */
URI::URI(const URI &uri) {
uri._impl->reference();
_impl = uri._impl;
}
-/** \brief Constructor from a C-style ASCII string.
- \param preformed Properly quoted C-style string to be represented.
- */
URI::URI(gchar const *preformed) throw(BadURIException) {
xmlURIPtr uri;
if (!preformed) {
@@ -38,13 +31,10 @@ URI::URI(gchar const *preformed) throw(BadURIException) {
_impl = Impl::create(uri);
}
-
-/** \brief Destructor. */
URI::~URI() {
_impl->unreference();
}
-/** \brief Assignment operator. */
URI &URI::operator=(URI const &uri) {
// No check for self-assignment needed, as _impl refcounting increments first.
uri._impl->reference();
@@ -77,32 +67,15 @@ void URI::Impl::unreference() {
}
}
-/** \fn bool URI::isOpaque() const
- \brief Determines if the URI represented is an 'opaque' URI.
- \return \c true if the URI is opaque, \c false if hierarchial.
-*/
bool URI::Impl::isOpaque() const {
bool opq = !isRelative() && (getOpaque() != NULL);
return opq;
}
-/** \fn bool URI::isRelative() const
- \brief Determines if the URI represented is 'relative' as per RFC 2396.
- \return \c true if the URI is relative, \c false if it is absolute.
-
- Relative URI references are distinguished by not begining with a
- scheme name.
-*/
bool URI::Impl::isRelative() const {
return !_uri->scheme;
}
-/** \fn bool URI::isNetPath() const
- \brief Determines if the relative URI represented is a 'net-path' as per RFC 2396.
- \return \c true if the URI is relative and a net-path, \c false otherwise.
-
- A net-path is one that starts with "\\".
-*/
bool URI::Impl::isNetPath() const {
bool isNet = false;
if ( isRelative() )
@@ -113,12 +86,6 @@ bool URI::Impl::isNetPath() const {
return isNet;
}
-/** \fn bool URI::isRelativePath() const
- \brief Determines if the relative URI represented is a 'relative-path' as per RFC 2396.
- \return \c true if the URI is relative and a relative-path, \c false otherwise.
-
- A relative-path is one that starts with no slashes.
-*/
bool URI::Impl::isRelativePath() const {
bool isRel = false;
if ( isRelative() )
@@ -129,12 +96,6 @@ bool URI::Impl::isRelativePath() const {
return isRel;
}
-/** \fn bool URI::isAbsolutePath() const
- \brief Determines if the relative URI represented is a 'absolute-path' as per RFC 2396.
- \return \c true if the URI is relative and an absolute-path, \c false otherwise.
-
- An absolute-path is one that starts with a single "\".
-*/
bool URI::Impl::isAbsolutePath() const {
bool isAbs = false;
if ( isRelative() )
@@ -230,12 +191,6 @@ URI URI::from_native_filename(gchar const *path) throw(BadURIException) {
return result;
}
-/** \fn gchar *URI::toString() const
- \brief Returns a glib string version of this URI.
- \return a glib string version of this URI.
-
- The returned string must be freed with \c g_free().
-*/
gchar *URI::Impl::toString() const {
xmlChar *string = xmlSaveUri(_uri);
if (string) {