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.tab,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_CONTEXT_H
34 #ifndef INCLUDED_RTL_TEXTENC_CONVERTISO2022CN_H
35 #include "convertiso2022cn.h"
37 #ifndef INCLUDED_RTL_TEXTENC_TENCHELP_H
41 #ifndef _RTL_TENCINFO_H
42 #include "rtl/tencinfo.h"
44 #ifndef _RTL_TEXTENC_H
45 #include "rtl/textenc.h"
48 static ImplIso2022CnConverterData const aImplIso2022CnConvertData
49 = { aGB2312UniLeadTab, /* from tcvtscn6.tab */
50 aImplCns116431992ToUnicodeData, /* from generate/cns116431992.tab */
51 aImplCns116431992ToUnicodeRowOffsets,
52 /* from generate/cns116431992.tab */
53 aImplCns116431992ToUnicodePlaneOffsets,
54 /* from generate/cns116431992.tab */
55 aGB2312DBCSHighTab, /* from tcvtscn6.tab */
56 aImplUnicodeToCns116431992Data, /* from generate/cns116431992.tab */
57 aImplUnicodeToCns116431992PageOffsets,
58 /* from generate/cns116431992.tab */
59 aImplUnicodeToCns116431992PlaneOffsets };
60 /* from generate/cns116431992.tab */
62 static ImplTextEncodingData const aImplIso2022CnTextEncodingData
63 = { { &aImplIso2022CnConvertData,
64 &ImplConvertIso2022CnToUnicode,
65 &ImplConvertUnicodeToIso2022Cn,
66 &ImplCreateIso2022CnToUnicodeContext,
68 &ImplResetIso2022CnToUnicodeContext,
69 &ImplCreateUnicodeToIso2022CnContext,
71 &ImplResetUnicodeToIso2022CnContext },
78 RTL_TEXTENCODING_INFO_CONTEXT
79 | RTL_TEXTENCODING_INFO_MULTIBYTE
80 | RTL_TEXTENCODING_INFO_MIME };