1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tcvtuni1.tab,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef INCLUDED_RTL_TEXTENC_CONTEXT_H
35 /* Unicode Encodings */
37 static ImplTextEncodingData const aImplUTF7TextEncodingData
41 ImplUTF7CreateUTF7TextToUnicodeContext,
42 ImplUTF7DestroyTextToUnicodeContext,
43 ImplUTF7ResetTextToUnicodeContext,
44 ImplUTF7CreateUnicodeToTextContext,
45 ImplUTF7DestroyUnicodeToTextContext,
46 ImplUTF7ResetUnicodeToTextContext },
53 RTL_TEXTENCODING_INFO_CONTEXT
54 | RTL_TEXTENCODING_INFO_UNICODE
55 | RTL_TEXTENCODING_INFO_7BIT
56 | RTL_TEXTENCODING_INFO_MULTIBYTE
57 | RTL_TEXTENCODING_INFO_MIME };
58 /* SCRIPT_UNICODE, pc code page 850 */
60 static ImplTextEncodingData const aImplUTF8TextEncodingData
62 &ImplConvertUtf8ToUnicode,
63 &ImplConvertUnicodeToUtf8,
64 &ImplCreateUtf8ToUnicodeContext,
66 &ImplResetUtf8ToUnicodeContext,
67 &ImplCreateUnicodeToUtf8Context,
69 &ImplResetUnicodeToUtf8Context },
76 RTL_TEXTENCODING_INFO_ASCII
77 | RTL_TEXTENCODING_INFO_UNICODE
78 | RTL_TEXTENCODING_INFO_MULTIBYTE
79 | RTL_TEXTENCODING_INFO_MIME };
80 /* SCRIPT_UNICODE, pc code page 850 */
82 static char aImplJavaUtf8TextConverterTag;
83 /* The value of this tag is irrelevant. Only its address != NULL is used to
84 distinguish between RTL_TEXTENCODING_UTF8 and
85 RTL_TEXTENCODING_JAVA_UTF8. */
87 static ImplTextEncodingData const aImplJavaUtf8TextEncodingData
88 = { { &aImplJavaUtf8TextConverterTag,
89 &ImplConvertUtf8ToUnicode,
90 &ImplConvertUnicodeToUtf8,
91 &ImplCreateUtf8ToUnicodeContext,
93 &ImplResetUtf8ToUnicodeContext,
94 &ImplCreateUnicodeToUtf8Context,
96 &ImplResetUnicodeToUtf8Context },
103 RTL_TEXTENCODING_INFO_UNICODE | RTL_TEXTENCODING_INFO_MULTIBYTE };