2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04: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 08:07:14 +03:00
|
|
|
|
|
|
|
|
1999-01-06 00:22:20 +03: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 04:10:18 +04:00
|
|
|
TO DO
|
|
|
|
|
1999-09-01 04:49:14 +04:00
|
|
|
1) Move the anonymous resource stuff to nsIRDFService?
|
1999-04-17 04:10:18 +04:00
|
|
|
|
1999-09-01 04:49:14 +04:00
|
|
|
2) All that's left is rdf_PossiblyMakeRelative() and
|
1999-04-17 04:10:18 +04:00
|
|
|
-Absolute(). Maybe those go on nsIRDFService, too.
|
|
|
|
|
1999-01-06 00:22:20 +03:00
|
|
|
*/
|
1998-12-24 08:07:14 +03:00
|
|
|
|
|
|
|
#ifndef rdfutil_h__
|
|
|
|
#define rdfutil_h__
|
|
|
|
|
|
|
|
|
2002-01-15 04:56:15 +03:00
|
|
|
class nsACString;
|
1999-09-01 04:49:14 +04:00
|
|
|
class nsCString;
|
1998-12-24 08:07:14 +03:00
|
|
|
|
1999-06-16 08:45:36 +04:00
|
|
|
nsresult
|
2017-06-20 12:19:52 +03:00
|
|
|
rdf_MakeRelativeRef(const nsACString& aBaseURI, nsCString& aURI);
|
1998-12-24 08:07:14 +03:00
|
|
|
|
2002-01-15 04:56:15 +03:00
|
|
|
void
|
|
|
|
rdf_FormatDate(PRTime aTime, nsACString &aResult);
|
|
|
|
|
|
|
|
PRTime
|
|
|
|
rdf_ParseDate(const nsACString &aTime);
|
|
|
|
|
1998-12-24 08:07:14 +03:00
|
|
|
#endif // rdfutil_h__
|
|
|
|
|
|
|
|
|