intl/locale/src/unix/nsAndroidCharset.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/locale/src/unix/nsAndroidCharset.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,49 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsIPlatformCharset.h"
    1.10 +#include "nsPlatformCharset.h"
    1.11 +
    1.12 +NS_IMPL_ISUPPORTS(nsPlatformCharset, nsIPlatformCharset)
    1.13 +
    1.14 +nsPlatformCharset::nsPlatformCharset()
    1.15 +{
    1.16 +}
    1.17 +
    1.18 +nsPlatformCharset::~nsPlatformCharset()
    1.19 +{
    1.20 +}
    1.21 +
    1.22 +NS_IMETHODIMP 
    1.23 +nsPlatformCharset::Init()
    1.24 +{
    1.25 +  return NS_OK;
    1.26 +}
    1.27 +
    1.28 +NS_IMETHODIMP 
    1.29 +nsPlatformCharset::GetCharset(nsPlatformCharsetSel selector, nsACString& oResult)
    1.30 +{
    1.31 +  oResult.AssignLiteral("UTF-8");
    1.32 +  return NS_OK;
    1.33 +}
    1.34 +
    1.35 +NS_IMETHODIMP 
    1.36 +nsPlatformCharset::GetDefaultCharsetForLocale(const nsAString& localeName, nsACString &oResult)
    1.37 +{
    1.38 +  oResult.AssignLiteral("UTF-8");
    1.39 +  return NS_OK;
    1.40 +}
    1.41 +
    1.42 +nsresult
    1.43 +nsPlatformCharset::InitGetCharset(nsACString &oString)
    1.44 +{
    1.45 +  return NS_OK;
    1.46 +}
    1.47 +
    1.48 +nsresult
    1.49 +nsPlatformCharset::VerifyCharset(nsCString &aCharset)
    1.50 +{
    1.51 +  return NS_OK;
    1.52 +}

mercurial