diff -r 000000000000 -r 6474c204b198 intl/uconv/ucvcn/nsUnicodeToHZ.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/intl/uconv/ucvcn/nsUnicodeToHZ.h Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,55 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* 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/. */ + + /** + * A character set converter from Unicode to GBK. + * + * + * @created 08/Sept/1999 + * @author Yueheng Xu, Yueheng.Xu@intel.com + */ + +#ifndef nsUnicodeToHZ_h___ +#define nsUnicodeToHZ_h___ + +#include "nsUCSupport.h" +#include "nsGBKConvUtil.h" +//---------------------------------------------------------------------- +// Class nsUnicodeToHZ [declaration] + +class nsUnicodeToHZ: public nsEncoderSupport +{ +public: + + /** + * Class constructor. + */ + nsUnicodeToHZ(); + +protected: + + //-------------------------------------------------------------------- + // Subclassing of nsEncoderSupport class [declaration] + NS_IMETHOD ConvertNoBuff(const char16_t * aSrc, + int32_t * aSrcLength, + char * aDest, + int32_t * aDestLength); + + NS_IMETHOD FinishNoBuff(char * aDest, int32_t * aDestLength); + + NS_IMETHOD ConvertNoBuffNoErr(const char16_t * aSrc, int32_t * aSrcLength, + char * aDest, int32_t * aDestLength) + { + return NS_OK; + } // just make it not abstract; + + uint16_t mHZState; +protected: + nsGBKConvUtil mUtil; + + +}; + +#endif /* nsUnicodeToHZ_h___ */