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