michael@0: /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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: #ifndef nsTextToSubURI_h__ michael@0: #define nsTextToSubURI_h__ michael@0: michael@0: #include "nsITextToSubURI.h" michael@0: michael@0: //============================================================== michael@0: class nsTextToSubURI: public nsITextToSubURI { michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSITEXTTOSUBURI michael@0: michael@0: public: michael@0: nsTextToSubURI(); michael@0: virtual ~nsTextToSubURI(); michael@0: michael@0: private: michael@0: // IRI is "Internationalized Resource Identifiers" michael@0: // http://www.ietf.org/internet-drafts/draft-duerst-iri-01.txt michael@0: // michael@0: // if the IRI option is true then we assume that the URI is encoded as UTF-8 michael@0: // note: there is no definite way to distinguish between IRI and a URI encoded michael@0: // with a non-UTF-8 charset michael@0: // Use this option carefully -- it may cause dataloss michael@0: // (recommended to set to true for UI purpose only) michael@0: // michael@0: nsresult convertURItoUnicode(const nsAFlatCString &aCharset, michael@0: const nsAFlatCString &aURI, michael@0: bool aIRI, michael@0: nsAString &_retval); michael@0: }; michael@0: michael@0: #endif // nsTextToSubURI_h__ michael@0: