1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/uconv/ucvcn/nsUnicodeToHZ.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,55 @@ 1.4 +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 + /** 1.10 + * A character set converter from Unicode to GBK. 1.11 + * 1.12 + * 1.13 + * @created 08/Sept/1999 1.14 + * @author Yueheng Xu, Yueheng.Xu@intel.com 1.15 + */ 1.16 + 1.17 +#ifndef nsUnicodeToHZ_h___ 1.18 +#define nsUnicodeToHZ_h___ 1.19 + 1.20 +#include "nsUCSupport.h" 1.21 +#include "nsGBKConvUtil.h" 1.22 +//---------------------------------------------------------------------- 1.23 +// Class nsUnicodeToHZ [declaration] 1.24 + 1.25 +class nsUnicodeToHZ: public nsEncoderSupport 1.26 +{ 1.27 +public: 1.28 + 1.29 + /** 1.30 + * Class constructor. 1.31 + */ 1.32 + nsUnicodeToHZ(); 1.33 + 1.34 +protected: 1.35 + 1.36 + //-------------------------------------------------------------------- 1.37 + // Subclassing of nsEncoderSupport class [declaration] 1.38 + NS_IMETHOD ConvertNoBuff(const char16_t * aSrc, 1.39 + int32_t * aSrcLength, 1.40 + char * aDest, 1.41 + int32_t * aDestLength); 1.42 + 1.43 + NS_IMETHOD FinishNoBuff(char * aDest, int32_t * aDestLength); 1.44 + 1.45 + NS_IMETHOD ConvertNoBuffNoErr(const char16_t * aSrc, int32_t * aSrcLength, 1.46 + char * aDest, int32_t * aDestLength) 1.47 + { 1.48 + return NS_OK; 1.49 + } // just make it not abstract; 1.50 + 1.51 + uint16_t mHZState; 1.52 +protected: 1.53 + nsGBKConvUtil mUtil; 1.54 + 1.55 + 1.56 +}; 1.57 + 1.58 +#endif /* nsUnicodeToHZ_h___ */