2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #include "sal/config.h"
21 #include "rtl/tencinfo.h"
22 #include "rtl/textenc.h"
24 #include "context.hxx"
25 #include "convertgb18030.hxx"
26 #include "generate/gb180302000.tab"
28 static ImplGb18030ConverterData const aImplGb18030ConvertData
29 = { aImplGb180302000ToUnicodeData,
30 aImplGb180302000ToUnicodeRanges,
31 aImplUnicodeToGb180302000Data,
32 aImplUnicodeToGb180302000Ranges };
34 static ImplTextEncodingData const aImplGb18030TextEncodingData
35 = { { &aImplGb18030ConvertData,
36 &ImplConvertGb18030ToUnicode,
37 &ImplConvertUnicodeToGb18030,
38 &ImplCreateGb18030ToUnicodeContext,
39 &ImplDestroyGb18030ToUnicodeContext,
40 &ImplResetGb18030ToUnicodeContext,
41 &ImplCreateUnicodeToTextContext,
42 &ImplDestroyUnicodeToTextContext,
43 &ImplResetUnicodeToTextContext },
50 RTL_TEXTENCODING_INFO_UNICODE
51 | RTL_TEXTENCODING_INFO_MULTIBYTE
52 | RTL_TEXTENCODING_INFO_MIME };
53 /* SCRIPT_CHINESE_SIMPLIFIED */