2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1998-12-24 05:07:14 +00:00
|
|
|
|
|
|
|
|
1999-01-05 21:22:20 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
A bunch of useful RDF utility routines. Many of these will
|
|
|
|
eventually be exported outside of RDF.DLL via the nsIRDFService
|
|
|
|
interface.
|
|
|
|
|
1999-04-17 00:10:18 +00:00
|
|
|
TO DO
|
|
|
|
|
1999-09-01 00:49:14 +00:00
|
|
|
1) Move the anonymous resource stuff to nsIRDFService?
|
1999-04-17 00:10:18 +00:00
|
|
|
|
1999-09-01 00:49:14 +00:00
|
|
|
2) All that's left is rdf_PossiblyMakeRelative() and
|
1999-04-17 00:10:18 +00:00
|
|
|
-Absolute(). Maybe those go on nsIRDFService, too.
|
|
|
|
|
1999-01-05 21:22:20 +00:00
|
|
|
*/
|
1998-12-24 05:07:14 +00:00
|
|
|
|
|
|
|
#ifndef rdfutil_h__
|
|
|
|
#define rdfutil_h__
|
|
|
|
|
|
|
|
|
2002-01-15 01:56:15 +00:00
|
|
|
class nsACString;
|
1999-09-01 00:49:14 +00:00
|
|
|
class nsCString;
|
1998-12-24 05:07:14 +00:00
|
|
|
class nsString;
|
1999-06-23 03:29:44 +00:00
|
|
|
class nsIURI;
|
1998-12-24 05:07:14 +00:00
|
|
|
|
1999-06-16 04:45:36 +00:00
|
|
|
nsresult
|
2004-09-09 20:17:36 +00:00
|
|
|
rdf_MakeRelativeRef(const nsCSubstring& aBaseURI, nsCString& aURI);
|
1998-12-24 05:07:14 +00:00
|
|
|
|
2002-01-15 01:56:15 +00:00
|
|
|
void
|
|
|
|
rdf_FormatDate(PRTime aTime, nsACString &aResult);
|
|
|
|
|
|
|
|
PRTime
|
|
|
|
rdf_ParseDate(const nsACString &aTime);
|
|
|
|
|
1998-12-24 05:07:14 +00:00
|
|
|
#endif // rdfutil_h__
|
|
|
|
|
|
|
|
|