2012-03-05 03:57:51 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
2001-12-08 00:25:28 +00:00
|
|
|
|
2012-03-05 03:57:51 +00:00
|
|
|
#ifndef nsCharsetAlias_h___
|
|
|
|
#define nsCharsetAlias_h___
|
2001-12-08 00:25:28 +00:00
|
|
|
|
2012-03-05 03:57:51 +00:00
|
|
|
#include "nscore.h"
|
2013-09-23 17:25:00 +00:00
|
|
|
#include "nsString.h"
|
2001-12-08 00:25:28 +00:00
|
|
|
|
2012-05-24 22:45:10 +00:00
|
|
|
class nsCharsetConverterManager;
|
2012-12-10 14:10:28 +00:00
|
|
|
class nsScriptableUnicodeConverter;
|
2012-05-24 22:45:10 +00:00
|
|
|
|
2012-03-05 03:57:51 +00:00
|
|
|
class nsCharsetAlias
|
|
|
|
{
|
2012-05-24 22:45:10 +00:00
|
|
|
friend class nsCharsetConverterManager;
|
2012-12-10 14:10:28 +00:00
|
|
|
friend class nsScriptableUnicodeConverter;
|
2012-05-24 22:45:10 +00:00
|
|
|
static nsresult GetPreferredInternal(const nsACString& aAlias, nsACString& aResult);
|
2001-12-08 00:25:28 +00:00
|
|
|
public:
|
2012-03-05 03:57:51 +00:00
|
|
|
static nsresult GetPreferred(const nsACString& aAlias, nsACString& aResult);
|
|
|
|
static nsresult Equals(const nsACString& aCharset1, const nsACString& aCharset2, bool* aResult);
|
2001-12-08 00:25:28 +00:00
|
|
|
};
|
|
|
|
|
2012-03-05 03:57:51 +00:00
|
|
|
#endif /* nsCharsetAlias_h___ */
|