1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: convertgb18030.h,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef INCLUDED_RTL_TEXTENC_CONVERTGB18030_H
32 #define INCLUDED_RTL_TEXTENC_CONVERTGB18030_H
35 #include "sal/types.h"
37 #if defined __cplusplus
39 #endif /* __cpluscplus */
43 sal_Int32 m_nNonRangeDataIndex
;
44 sal_uInt32 m_nFirstLinear
;
45 sal_uInt32 m_nPastLinear
;
46 sal_Unicode m_nFirstUnicode
;
47 } ImplGb180302000ToUnicodeRange
;
51 sal_Int32 m_nNonRangeDataIndex
;
52 sal_Unicode m_nFirstUnicode
;
53 sal_Unicode m_nLastUnicode
;
54 sal_uInt32 m_nFirstLinear
;
55 } ImplUnicodeToGb180302000Range
;
59 sal_Unicode
const * m_pGb18030ToUnicodeData
;
60 ImplGb180302000ToUnicodeRange
const * m_pGb18030ToUnicodeRanges
;
61 sal_uInt32
const * m_pUnicodeToGb18030Data
;
62 ImplUnicodeToGb180302000Range
const * m_pUnicodeToGb18030Ranges
;
63 } ImplGb18030ConverterData
;
65 void * ImplCreateGb18030ToUnicodeContext(void) SAL_THROW_EXTERN_C();
67 void ImplResetGb18030ToUnicodeContext(void * pContext
) SAL_THROW_EXTERN_C();
69 sal_Size
ImplConvertGb18030ToUnicode(ImplTextConverterData
const * pData
,
71 sal_Char
const * pSrcBuf
,
73 sal_Unicode
* pDestBuf
,
77 sal_Size
* pSrcCvtBytes
)
80 sal_Size
ImplConvertUnicodeToGb18030(ImplTextConverterData
const * pData
,
82 sal_Unicode
const * pSrcBuf
,
88 sal_Size
* pSrcCvtChars
)
91 #if defined __cplusplus
93 #endif /* __cpluscplus */
95 #endif /* INCLUDED_RTL_TEXTENC_CONVERTGB18030_H */