intl/locale/src/mac/nsMacCharset.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/locale/src/mac/nsMacCharset.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,59 @@
     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 <Carbon/Carbon.h>
    1.10 +#include "nsIPlatformCharset.h"
    1.11 +#include "nsCOMPtr.h"
    1.12 +#include "nsIServiceManager.h"
    1.13 +#include "nsReadableUtils.h"
    1.14 +#include "nsPlatformCharset.h"
    1.15 +#include "nsEncoderDecoderUtils.h"
    1.16 +
    1.17 +NS_IMPL_ISUPPORTS(nsPlatformCharset, nsIPlatformCharset)
    1.18 +
    1.19 +nsPlatformCharset::nsPlatformCharset()
    1.20 +{
    1.21 +}
    1.22 +nsPlatformCharset::~nsPlatformCharset()
    1.23 +{
    1.24 +}
    1.25 +
    1.26 +NS_IMETHODIMP 
    1.27 +nsPlatformCharset::GetCharset(nsPlatformCharsetSel selector, nsACString& oResult)
    1.28 +{
    1.29 +  oResult.AssignLiteral("UTF-8");
    1.30 +  return NS_OK;
    1.31 +}
    1.32 +
    1.33 +NS_IMETHODIMP 
    1.34 +nsPlatformCharset::GetDefaultCharsetForLocale(const nsAString& localeName, nsACString &oResult)
    1.35 +{
    1.36 +  oResult.AssignLiteral("UTF-8");
    1.37 +  return NS_OK;
    1.38 +}
    1.39 +
    1.40 +NS_IMETHODIMP 
    1.41 +nsPlatformCharset::Init()
    1.42 +{
    1.43 +  return NS_OK;
    1.44 +}
    1.45 +
    1.46 +nsresult 
    1.47 +nsPlatformCharset::MapToCharset(nsAString& inANSICodePage, nsACString& outCharset)
    1.48 +{
    1.49 +  return NS_OK;
    1.50 +}
    1.51 +
    1.52 +nsresult
    1.53 +nsPlatformCharset::InitGetCharset(nsACString &oString)
    1.54 +{
    1.55 +  return NS_OK;
    1.56 +}
    1.57 +
    1.58 +nsresult
    1.59 +nsPlatformCharset::VerifyCharset(nsCString &aCharset)
    1.60 +{
    1.61 +  return NS_OK;
    1.62 +}

mercurial