michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsUnicodeToGB2312V2_h___ michael@0: #define nsUnicodeToGB2312V2_h___ michael@0: michael@0: #include "nsUCSupport.h" michael@0: #include "nsGBKConvUtil.h" michael@0: michael@0: //---------------------------------------------------------------------- michael@0: // Class nsUnicodeToGB2312V2 [declaration] michael@0: michael@0: /** michael@0: * A character set converter from Unicode to GB2312. michael@0: * michael@0: * @created 06/Apr/1999 michael@0: * @author Catalin Rotaru [CATA] michael@0: */ michael@0: class nsUnicodeToGB2312V2 : public nsEncoderSupport michael@0: { michael@0: public: michael@0: michael@0: /** michael@0: * Class constructor. michael@0: */ michael@0: nsUnicodeToGB2312V2(); michael@0: michael@0: protected: michael@0: michael@0: NS_IMETHOD ConvertNoBuff(const char16_t * aSrc, michael@0: int32_t * aSrcLength, michael@0: char * aDest, michael@0: int32_t * aDestLength); michael@0: michael@0: //-------------------------------------------------------------------- michael@0: // Subclassing of nsEncoderSupport class [declaration] michael@0: michael@0: NS_IMETHOD ConvertNoBuffNoErr(const char16_t * aSrc, int32_t * aSrcLength, michael@0: char * aDest, int32_t * aDestLength) michael@0: { michael@0: return NS_OK; michael@0: } // just make it not abstract; michael@0: michael@0: protected: michael@0: nsGBKConvUtil mUtil; michael@0: }; michael@0: michael@0: #endif /* nsUnicodeToGB2312V2_h___ */