xref: /aoo42x/main/sal/textenc/tcvtuni1.tab (revision 11594ab6)
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
28cdf0e10cSrcweir/* Unicode Encodings */
29cdf0e10cSrcweir
30cdf0e10cSrcweirstatic ImplTextEncodingData const aImplUTF7TextEncodingData
31cdf0e10cSrcweir    = { { NULL,
32cdf0e10cSrcweir          ImplUTF7ToUnicode,
33cdf0e10cSrcweir          ImplUnicodeToUTF7,
34cdf0e10cSrcweir          ImplUTF7CreateUTF7TextToUnicodeContext,
35cdf0e10cSrcweir          ImplUTF7DestroyTextToUnicodeContext,
36cdf0e10cSrcweir          ImplUTF7ResetTextToUnicodeContext,
37cdf0e10cSrcweir          ImplUTF7CreateUnicodeToTextContext,
38cdf0e10cSrcweir          ImplUTF7DestroyUnicodeToTextContext,
39cdf0e10cSrcweir          ImplUTF7ResetUnicodeToTextContext },
40cdf0e10cSrcweir        1,
41cdf0e10cSrcweir        6,
42cdf0e10cSrcweir        1,
43cdf0e10cSrcweir        0,
44cdf0e10cSrcweir        "iso8859-1",
45cdf0e10cSrcweir        "utf-7",
46cdf0e10cSrcweir        RTL_TEXTENCODING_INFO_CONTEXT
47cdf0e10cSrcweir            | RTL_TEXTENCODING_INFO_UNICODE
48cdf0e10cSrcweir            | RTL_TEXTENCODING_INFO_7BIT
49cdf0e10cSrcweir            | RTL_TEXTENCODING_INFO_MULTIBYTE
50cdf0e10cSrcweir            | RTL_TEXTENCODING_INFO_MIME };
51cdf0e10cSrcweir    /* SCRIPT_UNICODE, pc code page 850 */
52cdf0e10cSrcweir
53cdf0e10cSrcweirstatic ImplTextEncodingData const aImplUTF8TextEncodingData
54cdf0e10cSrcweir    = { { NULL,
55cdf0e10cSrcweir          &ImplConvertUtf8ToUnicode,
56cdf0e10cSrcweir          &ImplConvertUnicodeToUtf8,
57cdf0e10cSrcweir          &ImplCreateUtf8ToUnicodeContext,
58cdf0e10cSrcweir          &ImplDestroyContext,
59cdf0e10cSrcweir          &ImplResetUtf8ToUnicodeContext,
60cdf0e10cSrcweir          &ImplCreateUnicodeToUtf8Context,
61cdf0e10cSrcweir          &ImplDestroyContext,
62cdf0e10cSrcweir          &ImplResetUnicodeToUtf8Context },
63cdf0e10cSrcweir        1,
64cdf0e10cSrcweir        6,
65cdf0e10cSrcweir        1,
66cdf0e10cSrcweir        0,
67cdf0e10cSrcweir        "iso8859-1",
68cdf0e10cSrcweir        "utf-8",
69cdf0e10cSrcweir        RTL_TEXTENCODING_INFO_ASCII
70cdf0e10cSrcweir            | RTL_TEXTENCODING_INFO_UNICODE
71cdf0e10cSrcweir            | RTL_TEXTENCODING_INFO_MULTIBYTE
72cdf0e10cSrcweir            | RTL_TEXTENCODING_INFO_MIME };
73cdf0e10cSrcweir    /* SCRIPT_UNICODE, pc code page 850 */
74cdf0e10cSrcweir
75cdf0e10cSrcweirstatic char aImplJavaUtf8TextConverterTag;
76cdf0e10cSrcweir    /* The value of this tag is irrelevant.  Only its address != NULL is used to
77cdf0e10cSrcweir       distinguish between RTL_TEXTENCODING_UTF8 and
78cdf0e10cSrcweir       RTL_TEXTENCODING_JAVA_UTF8. */
79cdf0e10cSrcweir
80cdf0e10cSrcweirstatic ImplTextEncodingData const aImplJavaUtf8TextEncodingData
81cdf0e10cSrcweir    = { { &aImplJavaUtf8TextConverterTag,
82cdf0e10cSrcweir          &ImplConvertUtf8ToUnicode,
83cdf0e10cSrcweir          &ImplConvertUnicodeToUtf8,
84cdf0e10cSrcweir          &ImplCreateUtf8ToUnicodeContext,
85cdf0e10cSrcweir          &ImplDestroyContext,
86cdf0e10cSrcweir          &ImplResetUtf8ToUnicodeContext,
87cdf0e10cSrcweir          &ImplCreateUnicodeToUtf8Context,
88cdf0e10cSrcweir          &ImplDestroyContext,
89cdf0e10cSrcweir          &ImplResetUnicodeToUtf8Context },
90cdf0e10cSrcweir        1,
91cdf0e10cSrcweir        3,
92cdf0e10cSrcweir        1,
93cdf0e10cSrcweir        0,
94cdf0e10cSrcweir        NULL,
95cdf0e10cSrcweir        NULL,
96cdf0e10cSrcweir        RTL_TEXTENCODING_INFO_UNICODE | RTL_TEXTENCODING_INFO_MULTIBYTE };
97