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_CONVERTISO2022JP_H 28#include "convertiso2022jp.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 ImplIso2022JpConverterData const aImplIso2022JpConvertData 42 = { aJIS0208UniLeadTab, /* from tcvtjp6.tab */ 43 aJIS0208DBCSHighTab }; /* from tcvtjp6.tab */ 44 45static ImplTextEncodingData const aImplIso2022JpTextEncodingData 46 = { { &aImplIso2022JpConvertData, 47 &ImplConvertIso2022JpToUnicode, 48 &ImplConvertUnicodeToIso2022Jp, 49 &ImplCreateIso2022JpToUnicodeContext, 50 &ImplDestroyContext, 51 &ImplResetIso2022JpToUnicodeContext, 52 &ImplCreateUnicodeToIso2022JpContext, 53 &ImplDestroyContext, 54 &ImplResetUnicodeToIso2022JpContext }, 55 1, 56 8, 57 2, 58 128, 59 "euc-jp", 60 "ISO-2022-JP", 61 RTL_TEXTENCODING_INFO_CONTEXT 62 | RTL_TEXTENCODING_INFO_MULTIBYTE 63 | RTL_TEXTENCODING_INFO_MIME }; 64 /* SCRIPT_JAPANESE */ 65