1*11594ab6SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*11594ab6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*11594ab6SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*11594ab6SAndrew Rist * distributed with this work for additional information 6*11594ab6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*11594ab6SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*11594ab6SAndrew Rist * "License"); you may not use this file except in compliance 9*11594ab6SAndrew Rist * with the License. You may obtain a copy of the License at 10*11594ab6SAndrew Rist * 11*11594ab6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*11594ab6SAndrew Rist * 13*11594ab6SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*11594ab6SAndrew Rist * software distributed under the License is distributed on an 15*11594ab6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*11594ab6SAndrew Rist * KIND, either express or implied. See the License for the 17*11594ab6SAndrew Rist * specific language governing permissions and limitations 18*11594ab6SAndrew Rist * under the License. 19*11594ab6SAndrew Rist * 20*11594ab6SAndrew Rist *************************************************************/ 21*11594ab6SAndrew Rist 22*11594ab6SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir#ifndef INCLUDED_RTL_TEXTENC_CONTEXT_H 25cdf0e10cSrcweir#include "context.h" 26cdf0e10cSrcweir#endif 27cdf0e10cSrcweir#ifndef INCLUDED_RTL_TEXTENC_CONVERTISO2022CN_H 28cdf0e10cSrcweir#include "convertiso2022cn.h" 29cdf0e10cSrcweir#endif 30cdf0e10cSrcweir#ifndef INCLUDED_RTL_TEXTENC_TENCHELP_H 31cdf0e10cSrcweir#include "tenchelp.h" 32cdf0e10cSrcweir#endif 33cdf0e10cSrcweir 34cdf0e10cSrcweir#ifndef _RTL_TENCINFO_H 35cdf0e10cSrcweir#include "rtl/tencinfo.h" 36cdf0e10cSrcweir#endif 37cdf0e10cSrcweir#ifndef _RTL_TEXTENC_H 38cdf0e10cSrcweir#include "rtl/textenc.h" 39cdf0e10cSrcweir#endif 40cdf0e10cSrcweir 41cdf0e10cSrcweirstatic ImplIso2022CnConverterData const aImplIso2022CnConvertData 42cdf0e10cSrcweir = { aGB2312UniLeadTab, /* from tcvtscn6.tab */ 43cdf0e10cSrcweir aImplCns116431992ToUnicodeData, /* from generate/cns116431992.tab */ 44cdf0e10cSrcweir aImplCns116431992ToUnicodeRowOffsets, 45cdf0e10cSrcweir /* from generate/cns116431992.tab */ 46cdf0e10cSrcweir aImplCns116431992ToUnicodePlaneOffsets, 47cdf0e10cSrcweir /* from generate/cns116431992.tab */ 48cdf0e10cSrcweir aGB2312DBCSHighTab, /* from tcvtscn6.tab */ 49cdf0e10cSrcweir aImplUnicodeToCns116431992Data, /* from generate/cns116431992.tab */ 50cdf0e10cSrcweir aImplUnicodeToCns116431992PageOffsets, 51cdf0e10cSrcweir /* from generate/cns116431992.tab */ 52cdf0e10cSrcweir aImplUnicodeToCns116431992PlaneOffsets }; 53cdf0e10cSrcweir /* from generate/cns116431992.tab */ 54cdf0e10cSrcweir 55cdf0e10cSrcweirstatic ImplTextEncodingData const aImplIso2022CnTextEncodingData 56cdf0e10cSrcweir = { { &aImplIso2022CnConvertData, 57cdf0e10cSrcweir &ImplConvertIso2022CnToUnicode, 58cdf0e10cSrcweir &ImplConvertUnicodeToIso2022Cn, 59cdf0e10cSrcweir &ImplCreateIso2022CnToUnicodeContext, 60cdf0e10cSrcweir &ImplDestroyContext, 61cdf0e10cSrcweir &ImplResetIso2022CnToUnicodeContext, 62cdf0e10cSrcweir &ImplCreateUnicodeToIso2022CnContext, 63cdf0e10cSrcweir &ImplDestroyContext, 64cdf0e10cSrcweir &ImplResetUnicodeToIso2022CnContext }, 65cdf0e10cSrcweir 1, 66cdf0e10cSrcweir 8, 67cdf0e10cSrcweir 2, 68cdf0e10cSrcweir 134, 69cdf0e10cSrcweir "euc-cn", 70cdf0e10cSrcweir "ISO-2022-CN", 71cdf0e10cSrcweir RTL_TEXTENCODING_INFO_CONTEXT 72cdf0e10cSrcweir | RTL_TEXTENCODING_INFO_MULTIBYTE 73cdf0e10cSrcweir | RTL_TEXTENCODING_INFO_MIME }; 74