20 #ifndef INCLUDED_RTL_TENCINFO_H 21 #define INCLUDED_RTL_TENCINFO_H 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) 276 #endif // INCLUDED_RTL_TENCINFO_H sal_uInt8 AverageCharSize
The average number of bytes needed to encode a character in the given encoding.
Definition: tencinfo.h:70
struct _rtl_TextEncodingInfo rtl_TextEncodingInfo
Information about a text encoding.
sal_uInt8 Reserved
An unused byte, for padding.
Definition: tencinfo.h:74
sal_uInt16 rtl_TextEncoding
The various supported text encodings.
Definition: textenc.h:39
SAL_DLLPUBLIC sal_uInt8 rtl_getBestWindowsCharsetFromTextEncoding(rtl_TextEncoding eTextEncoding)
Map from a text encoding to the best matching numeric Windows charset.
SAL_DLLPUBLIC sal_uInt32 rtl_getWindowsCodePageFromTextEncoding(rtl_TextEncoding nEncoding)
Map from a text encoding to a Windows code page.
SAL_DLLPUBLIC rtl_TextEncoding rtl_getTextEncodingFromWindowsCharset(sal_uInt8 nWinCharset)
Map from a numeric Windows charset to a text encoding.
SAL_DLLPUBLIC const sal_Char * rtl_getBestUnixCharsetFromTextEncoding(rtl_TextEncoding eTextEncoding)
Map from a text encoding to the best matching Unix charset.
SAL_DLLPUBLIC const sal_Char * rtl_getBestMimeCharsetFromTextEncoding(rtl_TextEncoding eTextEncoding)
Map from a text encoding to the best matching MIME charset.
SAL_DLLPUBLIC sal_Bool rtl_isOctetTextEncoding(rtl_TextEncoding nEncoding)
Determine whether a text encoding uses single octets as basic units of information (and can thus be u...
#define SAL_DLLPUBLIC
Definition: saldllapi.h:30
sal_uInt8 MaximumCharSize
The maximum number of bytes needed to encode any character in the given encoding. ...
Definition: tencinfo.h:65
SAL_DLLPUBLIC char const * rtl_getMimeCharsetFromTextEncoding(rtl_TextEncoding nEncoding)
Map from a text encoding to a corresponding MIME charset name, if available (see http://www.iana.org/assignments/character-sets).
unsigned char sal_Bool
Definition: types.h:48
SAL_DLLPUBLIC sal_Bool rtl_getTextEncodingInfo(rtl_TextEncoding eTextEncoding, rtl_TextEncodingInfo *pEncInfo)
Return information about a text encoding.
Information about a text encoding.
Definition: tencinfo.h:45
sal_uInt32 StructSize
The size (in bytes) of this structure.
Definition: tencinfo.h:49
SAL_DLLPUBLIC rtl_TextEncoding rtl_getTextEncodingFromMimeCharset(const sal_Char *pMimeCharset)
Map from a MIME charset to a text encoding.
char sal_Char
A legacy synonym for char.
Definition: types.h:130
SAL_DLLPUBLIC rtl_TextEncoding rtl_getTextEncodingFromWindowsCodePage(sal_uInt32 nCodePage)
Map from a Windows code page to a text encoding.
sal_uInt8 MinimumCharSize
The minimum number of bytes needed to encode any character in the given encoding. ...
Definition: tencinfo.h:57
SAL_DLLPUBLIC rtl_TextEncoding rtl_getTextEncodingFromUnixCharset(const sal_Char *pUnixCharset)
Map from a Unix charset to a text encoding.
sal_uInt32 Flags
Any combination of the RTL_TEXTENCODING_INFO flags.
Definition: tencinfo.h:133
unsigned char sal_uInt8
Definition: types.h:54