xref: /aoo4110/main/sal/textenc/tcvtuni1.tab (revision b1cdbd2c)
1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski#ifndef INCLUDED_RTL_TEXTENC_CONTEXT_H
25*b1cdbd2cSJim Jagielski#include "context.h"
26*b1cdbd2cSJim Jagielski#endif
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski/* Unicode Encodings */
29*b1cdbd2cSJim Jagielski
30*b1cdbd2cSJim Jagielskistatic ImplTextEncodingData const aImplUTF7TextEncodingData
31*b1cdbd2cSJim Jagielski    = { { NULL,
32*b1cdbd2cSJim Jagielski          ImplUTF7ToUnicode,
33*b1cdbd2cSJim Jagielski          ImplUnicodeToUTF7,
34*b1cdbd2cSJim Jagielski          ImplUTF7CreateUTF7TextToUnicodeContext,
35*b1cdbd2cSJim Jagielski          ImplUTF7DestroyTextToUnicodeContext,
36*b1cdbd2cSJim Jagielski          ImplUTF7ResetTextToUnicodeContext,
37*b1cdbd2cSJim Jagielski          ImplUTF7CreateUnicodeToTextContext,
38*b1cdbd2cSJim Jagielski          ImplUTF7DestroyUnicodeToTextContext,
39*b1cdbd2cSJim Jagielski          ImplUTF7ResetUnicodeToTextContext },
40*b1cdbd2cSJim Jagielski        1,
41*b1cdbd2cSJim Jagielski        6,
42*b1cdbd2cSJim Jagielski        1,
43*b1cdbd2cSJim Jagielski        0,
44*b1cdbd2cSJim Jagielski        "iso8859-1",
45*b1cdbd2cSJim Jagielski        "utf-7",
46*b1cdbd2cSJim Jagielski        RTL_TEXTENCODING_INFO_CONTEXT
47*b1cdbd2cSJim Jagielski            | RTL_TEXTENCODING_INFO_UNICODE
48*b1cdbd2cSJim Jagielski            | RTL_TEXTENCODING_INFO_7BIT
49*b1cdbd2cSJim Jagielski            | RTL_TEXTENCODING_INFO_MULTIBYTE
50*b1cdbd2cSJim Jagielski            | RTL_TEXTENCODING_INFO_MIME };
51*b1cdbd2cSJim Jagielski    /* SCRIPT_UNICODE, pc code page 850 */
52*b1cdbd2cSJim Jagielski
53*b1cdbd2cSJim Jagielskistatic ImplTextEncodingData const aImplUTF8TextEncodingData
54*b1cdbd2cSJim Jagielski    = { { NULL,
55*b1cdbd2cSJim Jagielski          &ImplConvertUtf8ToUnicode,
56*b1cdbd2cSJim Jagielski          &ImplConvertUnicodeToUtf8,
57*b1cdbd2cSJim Jagielski          &ImplCreateUtf8ToUnicodeContext,
58*b1cdbd2cSJim Jagielski          &ImplDestroyContext,
59*b1cdbd2cSJim Jagielski          &ImplResetUtf8ToUnicodeContext,
60*b1cdbd2cSJim Jagielski          &ImplCreateUnicodeToUtf8Context,
61*b1cdbd2cSJim Jagielski          &ImplDestroyContext,
62*b1cdbd2cSJim Jagielski          &ImplResetUnicodeToUtf8Context },
63*b1cdbd2cSJim Jagielski        1,
64*b1cdbd2cSJim Jagielski        6,
65*b1cdbd2cSJim Jagielski        1,
66*b1cdbd2cSJim Jagielski        0,
67*b1cdbd2cSJim Jagielski        "iso8859-1",
68*b1cdbd2cSJim Jagielski        "utf-8",
69*b1cdbd2cSJim Jagielski        RTL_TEXTENCODING_INFO_ASCII
70*b1cdbd2cSJim Jagielski            | RTL_TEXTENCODING_INFO_UNICODE
71*b1cdbd2cSJim Jagielski            | RTL_TEXTENCODING_INFO_MULTIBYTE
72*b1cdbd2cSJim Jagielski            | RTL_TEXTENCODING_INFO_MIME };
73*b1cdbd2cSJim Jagielski    /* SCRIPT_UNICODE, pc code page 850 */
74*b1cdbd2cSJim Jagielski
75*b1cdbd2cSJim Jagielskistatic char aImplJavaUtf8TextConverterTag;
76*b1cdbd2cSJim Jagielski    /* The value of this tag is irrelevant.  Only its address != NULL is used to
77*b1cdbd2cSJim Jagielski       distinguish between RTL_TEXTENCODING_UTF8 and
78*b1cdbd2cSJim Jagielski       RTL_TEXTENCODING_JAVA_UTF8. */
79*b1cdbd2cSJim Jagielski
80*b1cdbd2cSJim Jagielskistatic ImplTextEncodingData const aImplJavaUtf8TextEncodingData
81*b1cdbd2cSJim Jagielski    = { { &aImplJavaUtf8TextConverterTag,
82*b1cdbd2cSJim Jagielski          &ImplConvertUtf8ToUnicode,
83*b1cdbd2cSJim Jagielski          &ImplConvertUnicodeToUtf8,
84*b1cdbd2cSJim Jagielski          &ImplCreateUtf8ToUnicodeContext,
85*b1cdbd2cSJim Jagielski          &ImplDestroyContext,
86*b1cdbd2cSJim Jagielski          &ImplResetUtf8ToUnicodeContext,
87*b1cdbd2cSJim Jagielski          &ImplCreateUnicodeToUtf8Context,
88*b1cdbd2cSJim Jagielski          &ImplDestroyContext,
89*b1cdbd2cSJim Jagielski          &ImplResetUnicodeToUtf8Context },
90*b1cdbd2cSJim Jagielski        1,
91*b1cdbd2cSJim Jagielski        3,
92*b1cdbd2cSJim Jagielski        1,
93*b1cdbd2cSJim Jagielski        0,
94*b1cdbd2cSJim Jagielski        NULL,
95*b1cdbd2cSJim Jagielski        NULL,
96*b1cdbd2cSJim Jagielski        RTL_TEXTENCODING_INFO_UNICODE | RTL_TEXTENCODING_INFO_MULTIBYTE };
97