Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | #ifndef nsTextToSubURI_h__ |
michael@0 | 6 | #define nsTextToSubURI_h__ |
michael@0 | 7 | |
michael@0 | 8 | #include "nsITextToSubURI.h" |
michael@0 | 9 | |
michael@0 | 10 | //============================================================== |
michael@0 | 11 | class nsTextToSubURI: public nsITextToSubURI { |
michael@0 | 12 | NS_DECL_ISUPPORTS |
michael@0 | 13 | NS_DECL_NSITEXTTOSUBURI |
michael@0 | 14 | |
michael@0 | 15 | public: |
michael@0 | 16 | nsTextToSubURI(); |
michael@0 | 17 | virtual ~nsTextToSubURI(); |
michael@0 | 18 | |
michael@0 | 19 | private: |
michael@0 | 20 | // IRI is "Internationalized Resource Identifiers" |
michael@0 | 21 | // http://www.ietf.org/internet-drafts/draft-duerst-iri-01.txt |
michael@0 | 22 | // |
michael@0 | 23 | // if the IRI option is true then we assume that the URI is encoded as UTF-8 |
michael@0 | 24 | // note: there is no definite way to distinguish between IRI and a URI encoded |
michael@0 | 25 | // with a non-UTF-8 charset |
michael@0 | 26 | // Use this option carefully -- it may cause dataloss |
michael@0 | 27 | // (recommended to set to true for UI purpose only) |
michael@0 | 28 | // |
michael@0 | 29 | nsresult convertURItoUnicode(const nsAFlatCString &aCharset, |
michael@0 | 30 | const nsAFlatCString &aURI, |
michael@0 | 31 | bool aIRI, |
michael@0 | 32 | nsAString &_retval); |
michael@0 | 33 | }; |
michael@0 | 34 | |
michael@0 | 35 | #endif // nsTextToSubURI_h__ |
michael@0 | 36 |