LibreOffice
LibreOffice 4.1 SDK 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
* This file is part of the LibreOffice project.
4
*
5
* This Source Code Form is subject to the terms of the Mozilla Public
6
* License, v. 2.0. If a copy of the MPL was not distributed with this
7
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
11
* Licensed to the Apache Software Foundation (ASF) under one or more
12
* contributor license agreements. See the NOTICE file distributed
13
* with this work for additional information regarding copyright
14
* ownership. The ASF licenses this file to you under the Apache
15
* License, Version 2.0 (the "License"); you may not use this file
16
* except in compliance with the License. You may obtain a copy of
17
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
*/
19
20
#ifndef _RTL_TENCINFO_H
21
#define _RTL_TENCINFO_H
22
23
#include "
sal/config.h
"
24
25
#include "
rtl/textenc.h
"
26
#include "
sal/saldllapi.h
"
27
#include "
sal/types.h
"
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
33
// See rtl_TextEncodingInfo.Flags below for documentation on these values:
34
#define RTL_TEXTENCODING_INFO_CONTEXT ((sal_uInt32)0x00000001)
35
#define RTL_TEXTENCODING_INFO_ASCII ((sal_uInt32)0x00000002)
36
#define RTL_TEXTENCODING_INFO_UNICODE ((sal_uInt32)0x00000004)
37
#define RTL_TEXTENCODING_INFO_MULTIBYTE ((sal_uInt32)0x00000008)
38
#define RTL_TEXTENCODING_INFO_R2L ((sal_uInt32)0x00000010)
39
#define RTL_TEXTENCODING_INFO_7BIT ((sal_uInt32)0x00000020)
40
#define RTL_TEXTENCODING_INFO_SYMBOL ((sal_uInt32)0x00000040)
41
#define RTL_TEXTENCODING_INFO_MIME ((sal_uInt32)0x00000080)
42
45
typedef
struct
_rtl_TextEncodingInfo
46
{
49
sal_uInt32
StructSize
;
50
57
sal_uInt8
MinimumCharSize
;
58
65
sal_uInt8
MaximumCharSize
;
66
70
sal_uInt8
AverageCharSize
;
71
74
sal_uInt8
Reserved
;
75
133
sal_uInt32
Flags
;
134
}
rtl_TextEncodingInfo
;
135
147
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
rtl_isOctetTextEncoding
(
rtl_TextEncoding
nEncoding);
148
162
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
rtl_getTextEncodingInfo
(
163
rtl_TextEncoding
eTextEncoding,
rtl_TextEncodingInfo
* pEncInfo );
164
174
SAL_DLLPUBLIC
rtl_TextEncoding
SAL_CALL
rtl_getTextEncodingFromWindowsCharset
(
175
sal_uInt8
nWinCharset );
176
186
SAL_DLLPUBLIC
rtl_TextEncoding
SAL_CALL
rtl_getTextEncodingFromMimeCharset
(
187
const
sal_Char
* pMimeCharset );
188
198
SAL_DLLPUBLIC
rtl_TextEncoding
SAL_CALL
rtl_getTextEncodingFromUnixCharset
(
199
const
sal_Char
* pUnixCharset );
200
209
SAL_DLLPUBLIC
sal_uInt8
SAL_CALL
rtl_getBestWindowsCharsetFromTextEncoding
(
210
rtl_TextEncoding
eTextEncoding );
211
222
SAL_DLLPUBLIC
char
const
* SAL_CALL
rtl_getMimeCharsetFromTextEncoding
(
223
rtl_TextEncoding
nEncoding );
224
233
SAL_DLLPUBLIC
const
sal_Char
* SAL_CALL
rtl_getBestMimeCharsetFromTextEncoding
(
234
rtl_TextEncoding
eTextEncoding );
235
244
SAL_DLLPUBLIC
const
sal_Char
* SAL_CALL
rtl_getBestUnixCharsetFromTextEncoding
(
245
rtl_TextEncoding
eTextEncoding );
246
257
SAL_DLLPUBLIC
rtl_TextEncoding
SAL_CALL
258
rtl_getTextEncodingFromWindowsCodePage
(sal_uInt32 nCodePage);
259
269
SAL_DLLPUBLIC
sal_uInt32 SAL_CALL
270
rtl_getWindowsCodePageFromTextEncoding
(
rtl_TextEncoding
nEncoding);
271
272
#ifdef __cplusplus
273
}
274
#endif
275
276
#endif
/* _RTL_TENCINFO_H */
277
278
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Generated on Tue Dec 31 2013 00:00:26 for LibreOffice by
1.8.1.2