1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/uconv/ucvcn/nsUnicodeToGB2312V2.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; 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 +#ifndef nsUnicodeToGB2312V2_h___ 1.10 +#define nsUnicodeToGB2312V2_h___ 1.11 + 1.12 +#include "nsUCSupport.h" 1.13 +#include "nsGBKConvUtil.h" 1.14 + 1.15 +//---------------------------------------------------------------------- 1.16 +// Class nsUnicodeToGB2312V2 [declaration] 1.17 + 1.18 +/** 1.19 + * A character set converter from Unicode to GB2312. 1.20 + * 1.21 + * @created 06/Apr/1999 1.22 + * @author Catalin Rotaru [CATA] 1.23 + */ 1.24 +class nsUnicodeToGB2312V2 : public nsEncoderSupport 1.25 +{ 1.26 +public: 1.27 + 1.28 + /** 1.29 + * Class constructor. 1.30 + */ 1.31 + nsUnicodeToGB2312V2(); 1.32 + 1.33 +protected: 1.34 + 1.35 + NS_IMETHOD ConvertNoBuff(const char16_t * aSrc, 1.36 + int32_t * aSrcLength, 1.37 + char * aDest, 1.38 + int32_t * aDestLength); 1.39 + 1.40 + //-------------------------------------------------------------------- 1.41 + // Subclassing of nsEncoderSupport class [declaration] 1.42 + 1.43 + NS_IMETHOD ConvertNoBuffNoErr(const char16_t * aSrc, int32_t * aSrcLength, 1.44 + char * aDest, int32_t * aDestLength) 1.45 + { 1.46 + return NS_OK; 1.47 + } // just make it not abstract; 1.48 + 1.49 +protected: 1.50 + nsGBKConvUtil mUtil; 1.51 +}; 1.52 + 1.53 +#endif /* nsUnicodeToGB2312V2_h___ */