gecko-dev/intl/uconv/ucvja/nsSJIS2Unicode.h

58 строки
1.6 KiB
C
Исходник Обычный вид История

1999-01-12 11:24:34 +03:00
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are Copyright (C) 1998
* Netscape Communications Corporation. All Rights Reserved.
*/
#ifndef nsSJIS2Unicode_h___
#define nsSJIS2Unicode_h___
1999-03-26 02:45:51 +03:00
#include "nsUCvJaSupport.h"
1999-01-12 11:24:34 +03:00
//----------------------------------------------------------------------
1999-02-25 17:44:44 +03:00
// Class nsSJIS2Unicode [declaration]
1999-01-12 11:24:34 +03:00
/**
1999-02-25 17:44:44 +03:00
* A character set converter from SJIS to Unicode.
*
* @created 23/Nov/1998
* @author Catalin Rotaru [CATA]
1999-01-12 11:24:34 +03:00
*/
1999-03-26 02:45:51 +03:00
class nsSJIS2Unicode : public nsTableDecoderSupport
1999-01-12 11:24:34 +03:00
{
public:
/**
* Class constructor.
*/
1999-02-25 17:44:44 +03:00
nsSJIS2Unicode();
1999-01-12 11:24:34 +03:00
1999-02-25 17:44:44 +03:00
/**
* Static class constructor.
*/
static nsresult CreateInstance(nsISupports **aResult);
1999-01-12 11:24:34 +03:00
1999-03-26 02:45:51 +03:00
protected:
1999-01-12 11:24:34 +03:00
//--------------------------------------------------------------------
1999-03-26 02:45:51 +03:00
// Subclassing of nsDecoderSupport class [declaration]
1999-01-12 11:24:34 +03:00
1999-03-26 02:45:51 +03:00
NS_IMETHOD GetMaxLength(const char * aSrc, PRInt32 aSrcLength,
1999-02-25 17:44:44 +03:00
PRInt32 * aDestLength);
};
1999-01-12 11:24:34 +03:00
#endif /* nsSJIS2Unicode_h___ */