| /************************************************************** |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| * |
| *************************************************************/ |
| |
| |
| |
| #ifndef INCLUDED_RTL_TEXTENC_CONTEXT_H |
| #include "context.h" |
| #endif |
| |
| /* Unicode Encodings */ |
| |
| static ImplTextEncodingData const aImplUTF7TextEncodingData |
| = { { NULL, |
| ImplUTF7ToUnicode, |
| ImplUnicodeToUTF7, |
| ImplUTF7CreateUTF7TextToUnicodeContext, |
| ImplUTF7DestroyTextToUnicodeContext, |
| ImplUTF7ResetTextToUnicodeContext, |
| ImplUTF7CreateUnicodeToTextContext, |
| ImplUTF7DestroyUnicodeToTextContext, |
| ImplUTF7ResetUnicodeToTextContext }, |
| 1, |
| 6, |
| 1, |
| 0, |
| "iso8859-1", |
| "utf-7", |
| RTL_TEXTENCODING_INFO_CONTEXT |
| | RTL_TEXTENCODING_INFO_UNICODE |
| | RTL_TEXTENCODING_INFO_7BIT |
| | RTL_TEXTENCODING_INFO_MULTIBYTE |
| | RTL_TEXTENCODING_INFO_MIME }; |
| /* SCRIPT_UNICODE, pc code page 850 */ |
| |
| static ImplTextEncodingData const aImplUTF8TextEncodingData |
| = { { NULL, |
| &ImplConvertUtf8ToUnicode, |
| &ImplConvertUnicodeToUtf8, |
| &ImplCreateUtf8ToUnicodeContext, |
| &ImplDestroyContext, |
| &ImplResetUtf8ToUnicodeContext, |
| &ImplCreateUnicodeToUtf8Context, |
| &ImplDestroyContext, |
| &ImplResetUnicodeToUtf8Context }, |
| 1, |
| 6, |
| 1, |
| 0, |
| "iso8859-1", |
| "utf-8", |
| RTL_TEXTENCODING_INFO_ASCII |
| | RTL_TEXTENCODING_INFO_UNICODE |
| | RTL_TEXTENCODING_INFO_MULTIBYTE |
| | RTL_TEXTENCODING_INFO_MIME }; |
| /* SCRIPT_UNICODE, pc code page 850 */ |
| |
| static char aImplJavaUtf8TextConverterTag; |
| /* The value of this tag is irrelevant. Only its address != NULL is used to |
| distinguish between RTL_TEXTENCODING_UTF8 and |
| RTL_TEXTENCODING_JAVA_UTF8. */ |
| |
| static ImplTextEncodingData const aImplJavaUtf8TextEncodingData |
| = { { &aImplJavaUtf8TextConverterTag, |
| &ImplConvertUtf8ToUnicode, |
| &ImplConvertUnicodeToUtf8, |
| &ImplCreateUtf8ToUnicodeContext, |
| &ImplDestroyContext, |
| &ImplResetUtf8ToUnicodeContext, |
| &ImplCreateUnicodeToUtf8Context, |
| &ImplDestroyContext, |
| &ImplResetUnicodeToUtf8Context }, |
| 1, |
| 3, |
| 1, |
| 0, |
| NULL, |
| NULL, |
| RTL_TEXTENCODING_INFO_UNICODE | RTL_TEXTENCODING_INFO_MULTIBYTE }; |