michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: michael@0: /* michael@0: michael@0: A bunch of useful RDF utility routines. Many of these will michael@0: eventually be exported outside of RDF.DLL via the nsIRDFService michael@0: interface. michael@0: michael@0: TO DO michael@0: michael@0: 1) Move the anonymous resource stuff to nsIRDFService? michael@0: michael@0: 2) All that's left is rdf_PossiblyMakeRelative() and michael@0: -Absolute(). Maybe those go on nsIRDFService, too. michael@0: michael@0: */ michael@0: michael@0: #ifndef rdfutil_h__ michael@0: #define rdfutil_h__ michael@0: michael@0: michael@0: class nsACString; michael@0: class nsCString; michael@0: class nsString; michael@0: class nsIURI; michael@0: michael@0: nsresult michael@0: rdf_MakeRelativeRef(const nsCSubstring& aBaseURI, nsCString& aURI); michael@0: michael@0: void michael@0: rdf_FormatDate(PRTime aTime, nsACString &aResult); michael@0: michael@0: PRTime michael@0: rdf_ParseDate(const nsACString &aTime); michael@0: michael@0: #endif // rdfutil_h__ michael@0: michael@0: