mailnews/intl/nsCharsetAlias.h
author Patrick Cloke <clokep@gmail.com>
Thu, 16 Oct 2014 18:05:41 -0400
changeset 20883 56fe4fac57d0916883a373cb7640681631ee0fe0
parent 20097 e41e714750eb242b1a6022b346717076d91f0bb3
child 34305 babef6da7d89f1715921953da0fd0d95a5bb4f49
permissions -rw-r--r--
Backout part of 2f79b0b939ed that's unrelated. a=Standard8

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef nsCharsetAlias_h___
#define nsCharsetAlias_h___

#include "nscore.h"
#include "nsString.h"

class nsCharsetConverterManager;
class nsScriptableUnicodeConverter;

class nsCharsetAlias
{
   friend class nsCharsetConverterManager;
   friend class nsScriptableUnicodeConverter;
   static nsresult GetPreferredInternal(const nsACString& aAlias, nsACString& aResult);
public:
   static nsresult GetPreferred(const nsACString& aAlias, nsACString& aResult);
   static nsresult Equals(const nsACString& aCharset1, const nsACString& aCharset2, bool* aResult);
};

#endif /* nsCharsetAlias_h___ */