My Project
UDK 3.2.7 C/C++ API Reference
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
rtl
tencinfo.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*************************************************************************
3
*
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
*
6
* Copyright 2000, 2010 Oracle and/or its affiliates.
7
*
8
* OpenOffice.org - a multi-platform office productivity suite
9
*
10
* This file is part of OpenOffice.org.
11
*
12
* OpenOffice.org is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License version 3
14
* only, as published by the Free Software Foundation.
15
*
16
* OpenOffice.org is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Lesser General Public License version 3 for more details
20
* (a copy is included in the LICENSE file that accompanied this code).
21
*
22
* You should have received a copy of the GNU Lesser General Public License
23
* version 3 along with OpenOffice.org. If not, see
24
* <http://www.openoffice.org/license.html>
25
* for a copy of the LGPLv3 License.
26
*
27
************************************************************************/
28
29
#ifndef _RTL_TENCINFO_H
30
#define _RTL_TENCINFO_H
31
32
#ifndef _SAL_TYPES_H
33
#include <
sal/types.h
>
34
#endif
35
#include <
rtl/textenc.h
>
36
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
40
41
// See rtl_TextEncodingInfo.Flags below for documentation on these values:
42
#define RTL_TEXTENCODING_INFO_CONTEXT ((sal_uInt32)0x00000001)
43
#define RTL_TEXTENCODING_INFO_ASCII ((sal_uInt32)0x00000002)
44
#define RTL_TEXTENCODING_INFO_UNICODE ((sal_uInt32)0x00000004)
45
#define RTL_TEXTENCODING_INFO_MULTIBYTE ((sal_uInt32)0x00000008)
46
#define RTL_TEXTENCODING_INFO_R2L ((sal_uInt32)0x00000010)
47
#define RTL_TEXTENCODING_INFO_7BIT ((sal_uInt32)0x00000020)
48
#define RTL_TEXTENCODING_INFO_SYMBOL ((sal_uInt32)0x00000040)
49
#define RTL_TEXTENCODING_INFO_MIME ((sal_uInt32)0x00000080)
50
53
typedef
struct
_rtl_TextEncodingInfo
54
{
57
sal_uInt32
StructSize
;
58
65
sal_uInt8
MinimumCharSize
;
66
73
sal_uInt8
MaximumCharSize
;
74
78
sal_uInt8
AverageCharSize
;
79
82
sal_uInt8
Reserved
;
83
141
sal_uInt32
Flags
;
142
}
rtl_TextEncodingInfo
;
143
155
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
rtl_isOctetTextEncoding
(
rtl_TextEncoding
nEncoding);
156
170
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
rtl_getTextEncodingInfo
(
171
rtl_TextEncoding
eTextEncoding,
rtl_TextEncodingInfo
* pEncInfo );
172
182
SAL_DLLPUBLIC
rtl_TextEncoding
SAL_CALL
rtl_getTextEncodingFromWindowsCharset
(
183
sal_uInt8
nWinCharset );
184
194
SAL_DLLPUBLIC
rtl_TextEncoding
SAL_CALL
rtl_getTextEncodingFromMimeCharset
(
195
const
sal_Char
* pMimeCharset );
196
206
SAL_DLLPUBLIC
rtl_TextEncoding
SAL_CALL
rtl_getTextEncodingFromUnixCharset
(
207
const
sal_Char
* pUnixCharset );
208
217
SAL_DLLPUBLIC
sal_uInt8
SAL_CALL
rtl_getBestWindowsCharsetFromTextEncoding
(
218
rtl_TextEncoding
eTextEncoding );
219
230
SAL_DLLPUBLIC
char
const
* SAL_CALL
rtl_getMimeCharsetFromTextEncoding
(
231
rtl_TextEncoding
nEncoding );
232
241
SAL_DLLPUBLIC
const
sal_Char
* SAL_CALL
rtl_getBestMimeCharsetFromTextEncoding
(
242
rtl_TextEncoding
eTextEncoding );
243
252
SAL_DLLPUBLIC
const
sal_Char
* SAL_CALL
rtl_getBestUnixCharsetFromTextEncoding
(
253
rtl_TextEncoding
eTextEncoding );
254
265
SAL_DLLPUBLIC
rtl_TextEncoding
SAL_CALL
266
rtl_getTextEncodingFromWindowsCodePage
(sal_uInt32 nCodePage);
267
277
SAL_DLLPUBLIC
sal_uInt32 SAL_CALL
278
rtl_getWindowsCodePageFromTextEncoding
(
rtl_TextEncoding
nEncoding);
279
280
#ifdef __cplusplus
281
}
282
#endif
283
284
#endif
/* _RTL_TENCINFO_H */
285
286
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Generated on Mon Oct 8 2012 00:36:42 for My Project by
1.8.1.2