rdf/base/src/rdfutil.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rdf/base/src/rdfutil.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +
    1.10 +/*
    1.11 +
    1.12 +  A bunch of useful RDF utility routines.  Many of these will
    1.13 +  eventually be exported outside of RDF.DLL via the nsIRDFService
    1.14 +  interface.
    1.15 +
    1.16 +  TO DO
    1.17 +
    1.18 +  1) Move the anonymous resource stuff to nsIRDFService?
    1.19 +
    1.20 +  2) All that's left is rdf_PossiblyMakeRelative() and
    1.21 +     -Absolute(). Maybe those go on nsIRDFService, too.
    1.22 +
    1.23 + */
    1.24 +
    1.25 +#ifndef rdfutil_h__
    1.26 +#define rdfutil_h__
    1.27 +
    1.28 +
    1.29 +class nsACString;
    1.30 +class nsCString;
    1.31 +class nsString;
    1.32 +class nsIURI;
    1.33 +
    1.34 +nsresult
    1.35 +rdf_MakeRelativeRef(const nsCSubstring& aBaseURI, nsCString& aURI);
    1.36 +
    1.37 +void
    1.38 +rdf_FormatDate(PRTime aTime, nsACString &aResult);
    1.39 +
    1.40 +PRTime
    1.41 +rdf_ParseDate(const nsACString &aTime);
    1.42 +
    1.43 +#endif // rdfutil_h__
    1.44 +
    1.45 +

mercurial