intl/locale/src/unix/nsAndroidCharset.cpp

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     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 }

mercurial