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: convertiso2022cn.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_CONVERTISO2022CN_H
32 #define INCLUDED_RTL_TEXTENC_CONVERTISO2022CN_H
35 #include "sal/types.h"
37 #if defined __cplusplus
39 #endif /* __cpluscplus */
43 ImplDBCSToUniLeadTab
const * m_pGb2312ToUnicodeData
;
44 sal_uInt16
const * m_pCns116431992ToUnicodeData
;
45 sal_Int32
const * m_pCns116431992ToUnicodeRowOffsets
;
46 sal_Int32
const * m_pCns116431992ToUnicodePlaneOffsets
;
47 ImplUniToDBCSHighTab
const * m_pUnicodeToGb2312Data
;
48 sal_uInt8
const * m_pUnicodeToCns116431992Data
;
49 sal_Int32
const * m_pUnicodeToCns116431992PageOffsets
;
50 sal_Int32
const * m_pUnicodeToCns116431992PlaneOffsets
;
51 } ImplIso2022CnConverterData
;
53 void * ImplCreateIso2022CnToUnicodeContext(void) SAL_THROW_EXTERN_C();
55 void ImplResetIso2022CnToUnicodeContext(void * pContext
) SAL_THROW_EXTERN_C();
57 sal_Size
ImplConvertIso2022CnToUnicode(ImplTextConverterData
const * pData
,
59 sal_Char
const * pSrcBuf
,
61 sal_Unicode
* pDestBuf
,
65 sal_Size
* pSrcCvtBytes
)
68 void * ImplCreateUnicodeToIso2022CnContext(void) SAL_THROW_EXTERN_C();
70 void ImplResetUnicodeToIso2022CnContext(void * pContext
) SAL_THROW_EXTERN_C();
72 sal_Size
ImplConvertUnicodeToIso2022Cn(ImplTextConverterData
const * pData
,
74 sal_Unicode
const * pSrcBuf
,
80 sal_Size
* pSrcCvtChars
)
83 #if defined __cplusplus
85 #endif /* __cpluscplus */
87 #endif /* INCLUDED_RTL_TEXTENC_CONVERTISO2022CN_H */