rdfutil.h 902 B

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