intl/uconv/ucvcn/nsUnicodeToGB2312V2.h

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef nsUnicodeToGB2312V2_h___
michael@0 7 #define nsUnicodeToGB2312V2_h___
michael@0 8
michael@0 9 #include "nsUCSupport.h"
michael@0 10 #include "nsGBKConvUtil.h"
michael@0 11
michael@0 12 //----------------------------------------------------------------------
michael@0 13 // Class nsUnicodeToGB2312V2 [declaration]
michael@0 14
michael@0 15 /**
michael@0 16 * A character set converter from Unicode to GB2312.
michael@0 17 *
michael@0 18 * @created 06/Apr/1999
michael@0 19 * @author Catalin Rotaru [CATA]
michael@0 20 */
michael@0 21 class nsUnicodeToGB2312V2 : public nsEncoderSupport
michael@0 22 {
michael@0 23 public:
michael@0 24
michael@0 25 /**
michael@0 26 * Class constructor.
michael@0 27 */
michael@0 28 nsUnicodeToGB2312V2();
michael@0 29
michael@0 30 protected:
michael@0 31
michael@0 32 NS_IMETHOD ConvertNoBuff(const char16_t * aSrc,
michael@0 33 int32_t * aSrcLength,
michael@0 34 char * aDest,
michael@0 35 int32_t * aDestLength);
michael@0 36
michael@0 37 //--------------------------------------------------------------------
michael@0 38 // Subclassing of nsEncoderSupport class [declaration]
michael@0 39
michael@0 40 NS_IMETHOD ConvertNoBuffNoErr(const char16_t * aSrc, int32_t * aSrcLength,
michael@0 41 char * aDest, int32_t * aDestLength)
michael@0 42 {
michael@0 43 return NS_OK;
michael@0 44 } // just make it not abstract;
michael@0 45
michael@0 46 protected:
michael@0 47 nsGBKConvUtil mUtil;
michael@0 48 };
michael@0 49
michael@0 50 #endif /* nsUnicodeToGB2312V2_h___ */

mercurial