|
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/. */ |
|
5 |
|
6 #include "nsIPlatformCharset.h" |
|
7 #include "nsPlatformCharset.h" |
|
8 |
|
9 NS_IMPL_ISUPPORTS(nsPlatformCharset, nsIPlatformCharset) |
|
10 |
|
11 nsPlatformCharset::nsPlatformCharset() |
|
12 { |
|
13 } |
|
14 |
|
15 nsPlatformCharset::~nsPlatformCharset() |
|
16 { |
|
17 } |
|
18 |
|
19 NS_IMETHODIMP |
|
20 nsPlatformCharset::Init() |
|
21 { |
|
22 return NS_OK; |
|
23 } |
|
24 |
|
25 NS_IMETHODIMP |
|
26 nsPlatformCharset::GetCharset(nsPlatformCharsetSel selector, nsACString& oResult) |
|
27 { |
|
28 oResult.AssignLiteral("UTF-8"); |
|
29 return NS_OK; |
|
30 } |
|
31 |
|
32 NS_IMETHODIMP |
|
33 nsPlatformCharset::GetDefaultCharsetForLocale(const nsAString& localeName, nsACString &oResult) |
|
34 { |
|
35 oResult.AssignLiteral("UTF-8"); |
|
36 return NS_OK; |
|
37 } |
|
38 |
|
39 nsresult |
|
40 nsPlatformCharset::InitGetCharset(nsACString &oString) |
|
41 { |
|
42 return NS_OK; |
|
43 } |
|
44 |
|
45 nsresult |
|
46 nsPlatformCharset::VerifyCharset(nsCString &aCharset) |
|
47 { |
|
48 return NS_OK; |
|
49 } |