Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
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/. */
6 #include "nsIPlatformCharset.h"
7 #include "nsPlatformCharset.h"
9 NS_IMPL_ISUPPORTS(nsPlatformCharset, nsIPlatformCharset)
11 nsPlatformCharset::nsPlatformCharset()
12 {
13 }
15 nsPlatformCharset::~nsPlatformCharset()
16 {
17 }
19 NS_IMETHODIMP
20 nsPlatformCharset::Init()
21 {
22 return NS_OK;
23 }
25 NS_IMETHODIMP
26 nsPlatformCharset::GetCharset(nsPlatformCharsetSel selector, nsACString& oResult)
27 {
28 oResult.AssignLiteral("UTF-8");
29 return NS_OK;
30 }
32 NS_IMETHODIMP
33 nsPlatformCharset::GetDefaultCharsetForLocale(const nsAString& localeName, nsACString &oResult)
34 {
35 oResult.AssignLiteral("UTF-8");
36 return NS_OK;
37 }
39 nsresult
40 nsPlatformCharset::InitGetCharset(nsACString &oString)
41 {
42 return NS_OK;
43 }
45 nsresult
46 nsPlatformCharset::VerifyCharset(nsCString &aCharset)
47 {
48 return NS_OK;
49 }