1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24#ifndef INCLUDED_RTL_TEXTENC_CONTEXT_H 25#include "context.h" 26#endif 27#ifndef INCLUDED_RTL_TEXTENC_CONVERTISO2022KR_H 28#include "convertiso2022kr.h" 29#endif 30#ifndef INCLUDED_RTL_TEXTENC_TENCHELP_H 31#include "tenchelp.h" 32#endif 33 34#ifndef _RTL_TENCINFO_H 35#include "rtl/tencinfo.h" 36#endif 37#ifndef _RTL_TEXTENC_H 38#include "rtl/textenc.h" 39#endif 40 41static ImplIso2022KrConverterData const aImplIso2022KrConvertData 42 = { aKSC5601UniLeadTab, /* from tcvtkr6.tab */ 43 aKSC5601DBCSHighTab }; /* from tcvtkr6.tab */ 44 45static ImplTextEncodingData const aImplIso2022KrTextEncodingData 46 = { { &aImplIso2022KrConvertData, 47 &ImplConvertIso2022KrToUnicode, 48 &ImplConvertUnicodeToIso2022Kr, 49 &ImplCreateIso2022KrToUnicodeContext, 50 &ImplDestroyContext, 51 &ImplResetIso2022KrToUnicodeContext, 52 &ImplCreateUnicodeToIso2022KrContext, 53 &ImplDestroyContext, 54 &ImplResetUnicodeToIso2022KrContext }, 55 1, 56 8, 57 2, 58 130, 59 "euc-kr", 60 "ISO-2022-KR", 61 RTL_TEXTENCODING_INFO_CONTEXT 62 | RTL_TEXTENCODING_INFO_MULTIBYTE 63 | RTL_TEXTENCODING_INFO_MIME }; 64 /* SCRIPT_KOREAN */ 65