UDK 3.2.7 C/C++ API Reference
|
Go to the source code of this file.
Classes | |
struct | _rtl_TextEncodingInfo |
Information about a text encoding. More... | |
Defines | |
#define | RTL_TEXTENCODING_INFO_CONTEXT ((sal_uInt32)0x00000001) |
#define | RTL_TEXTENCODING_INFO_ASCII ((sal_uInt32)0x00000002) |
#define | RTL_TEXTENCODING_INFO_UNICODE ((sal_uInt32)0x00000004) |
#define | RTL_TEXTENCODING_INFO_MULTIBYTE ((sal_uInt32)0x00000008) |
#define | RTL_TEXTENCODING_INFO_R2L ((sal_uInt32)0x00000010) |
#define | RTL_TEXTENCODING_INFO_7BIT ((sal_uInt32)0x00000020) |
#define | RTL_TEXTENCODING_INFO_SYMBOL ((sal_uInt32)0x00000040) |
#define | RTL_TEXTENCODING_INFO_MIME ((sal_uInt32)0x00000080) |
Typedefs | |
typedef struct _rtl_TextEncodingInfo | rtl_TextEncodingInfo |
Information about a text encoding. | |
Functions | |
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 used with the conversion routines in rtl/textcvt.h). | |
SAL_DLLPUBLIC sal_Bool | rtl_getTextEncodingInfo (rtl_TextEncoding eTextEncoding, rtl_TextEncodingInfo *pEncInfo) |
Return information about a text encoding. | |
SAL_DLLPUBLIC rtl_TextEncoding | rtl_getTextEncodingFromWindowsCharset (sal_uInt8 nWinCharset) |
Map from a numeric Windows charset to a text encoding. | |
SAL_DLLPUBLIC rtl_TextEncoding | rtl_getTextEncodingFromMimeCharset (const sal_Char *pMimeCharset) |
Map from a MIME charset to a text encoding. | |
SAL_DLLPUBLIC rtl_TextEncoding | rtl_getTextEncodingFromUnixCharset (const sal_Char *pUnixCharset) |
Map from a Unix charset to a text encoding. | |
SAL_DLLPUBLIC sal_uInt8 | rtl_getBestWindowsCharsetFromTextEncoding (rtl_TextEncoding eTextEncoding) |
Map from a text encoding to the best matching numeric Windows charset. | |
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>). | |
SAL_DLLPUBLIC const sal_Char * | rtl_getBestMimeCharsetFromTextEncoding (rtl_TextEncoding eTextEncoding) |
Map from a text encoding to the best matching MIME charset. | |
SAL_DLLPUBLIC const sal_Char * | rtl_getBestUnixCharsetFromTextEncoding (rtl_TextEncoding eTextEncoding) |
Map from a text encoding to the best matching Unix charset. | |
SAL_DLLPUBLIC rtl_TextEncoding | rtl_getTextEncodingFromWindowsCodePage (sal_uInt32 nCodePage) |
Map from a Windows code page to a text encoding. | |
SAL_DLLPUBLIC sal_uInt32 | rtl_getWindowsCodePageFromTextEncoding (rtl_TextEncoding nEncoding) |
Map from a text encoding to a Windows code page. |
#define RTL_TEXTENCODING_INFO_7BIT ((sal_uInt32)0x00000020) |
#define RTL_TEXTENCODING_INFO_ASCII ((sal_uInt32)0x00000002) |
#define RTL_TEXTENCODING_INFO_CONTEXT ((sal_uInt32)0x00000001) |
#define RTL_TEXTENCODING_INFO_MIME ((sal_uInt32)0x00000080) |
#define RTL_TEXTENCODING_INFO_MULTIBYTE ((sal_uInt32)0x00000008) |
#define RTL_TEXTENCODING_INFO_R2L ((sal_uInt32)0x00000010) |
#define RTL_TEXTENCODING_INFO_SYMBOL ((sal_uInt32)0x00000040) |
#define RTL_TEXTENCODING_INFO_UNICODE ((sal_uInt32)0x00000004) |
typedef struct _rtl_TextEncodingInfo rtl_TextEncodingInfo |
Information about a text encoding.
SAL_DLLPUBLIC const sal_Char* rtl_getBestMimeCharsetFromTextEncoding | ( | rtl_TextEncoding | eTextEncoding | ) |
Map from a text encoding to the best matching MIME charset.
eTextEncoding | Any rtl_TextEncoding value. |
SAL_DLLPUBLIC const sal_Char* rtl_getBestUnixCharsetFromTextEncoding | ( | rtl_TextEncoding | eTextEncoding | ) |
Map from a text encoding to the best matching Unix charset.
eTextEncoding | Any rtl_TextEncoding value. |
SAL_DLLPUBLIC sal_uInt8 rtl_getBestWindowsCharsetFromTextEncoding | ( | rtl_TextEncoding | eTextEncoding | ) |
Map from a text encoding to the best matching numeric Windows charset.
eTextEncoding | Any rtl_TextEncoding value. |
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>).
nEncoding | Any rtl_TextEncoding value. |
SAL_DLLPUBLIC rtl_TextEncoding rtl_getTextEncodingFromMimeCharset | ( | const sal_Char * | pMimeCharset | ) |
Map from a MIME charset to a text encoding.
pMimeCharset | Any MIME charset string. Must not be null. |
SAL_DLLPUBLIC rtl_TextEncoding rtl_getTextEncodingFromUnixCharset | ( | const sal_Char * | pUnixCharset | ) |
Map from a Unix charset to a text encoding.
pUnixCharset | Any Unix charset string. Must not be null. |
SAL_DLLPUBLIC rtl_TextEncoding rtl_getTextEncodingFromWindowsCharset | ( | sal_uInt8 | nWinCharset | ) |
Map from a numeric Windows charset to a text encoding.
nWinCharset | Any numeric Windows charset. |
SAL_DLLPUBLIC rtl_TextEncoding rtl_getTextEncodingFromWindowsCodePage | ( | sal_uInt32 | nCodePage | ) |
Map from a Windows code page to a text encoding.
nCodePage | Any Windows code page number. |
SAL_DLLPUBLIC sal_Bool rtl_getTextEncodingInfo | ( | rtl_TextEncoding | eTextEncoding, |
rtl_TextEncodingInfo * | pEncInfo | ||
) |
Return information about a text encoding.
eTextEncoding | Any rtl_TextEncoding value. |
pEncInfo | Returns information about the given encoding. Must not be null, and the StructSize member must be set correctly. |
SAL_DLLPUBLIC sal_uInt32 rtl_getWindowsCodePageFromTextEncoding | ( | rtl_TextEncoding | nEncoding | ) |
Map from a text encoding to a Windows code page.
nEncoding | Any rtl_TextEncoding value. |
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 used with the conversion routines in rtl/textcvt.h).
nEncoding | Any rtl_TextEncoding value. |