Codepage and Locale ID operations. More...
#include "libmapi/libmapi.h"#include "libmapi/libmapi_private.h"#include <locale.h>#include <langinfo.h>Macros | |
| #define | CP_ARABIC 13 |
| #define | CP_ARMENIAN 17 |
| #define | CP_BALTIC 3 |
| #define | CP_CENTRAL_EUROPE 2 |
| #define | CP_CYRILLIC 5 |
| #define | CP_GEORGIAN 16 |
| #define | CP_GREEK 4 |
| #define | CP_HEBREW 12 |
| #define | CP_INDIC 15 |
| #define | CP_JAPANESE 7 |
| #define | CP_KOREAN 8 |
| #define | CP_SIMPLIFIED_CHINESE 10 |
| #define | CP_THAI 11 |
| #define | CP_TRADITIONAL_CHINESE 9 |
| #define | CP_TURKIC 6 |
| #define | CP_UNICODE_ONLY 0 |
| #define | CP_VIETNAMESE 14 |
| #define | CP_WESTERN_EUROPE_AND_US 1 |
Functions | |
| _PUBLIC_ uint32_t | mapi_get_cpid_from_language (const char *language) |
| _PUBLIC_ uint32_t | mapi_get_cpid_from_lcid (uint32_t lcid) |
| _PUBLIC_ uint32_t | mapi_get_cpid_from_locale (const char *locale) |
| _PUBLIC_ char ** | mapi_get_language_from_group (TALLOC_CTX *mem_ctx, uint32_t group) |
| _PUBLIC_ const char * | mapi_get_language_from_lcid (uint32_t lcid) |
| _PUBLIC_ const char * | mapi_get_language_from_locale (const char *locale) |
| void | mapi_get_language_list (void) |
| _PUBLIC_ uint32_t | mapi_get_lcid_from_language (const char *language) |
| _PUBLIC_ uint32_t | mapi_get_lcid_from_locale (const char *locale) |
| _PUBLIC_ const char * | mapi_get_locale_from_language (const char *language) |
| _PUBLIC_ const char * | mapi_get_locale_from_lcid (uint32_t lcid) |
| _PUBLIC_ char * | mapi_get_system_locale (void) |
| _PUBLIC_ bool | mapi_verify_cpid (uint32_t cpid) |
Codepage and Locale ID operations.
| #define CP_ARABIC 13 |
| #define CP_ARMENIAN 17 |
| #define CP_BALTIC 3 |
| #define CP_CENTRAL_EUROPE 2 |
| #define CP_CYRILLIC 5 |
| #define CP_GEORGIAN 16 |
| #define CP_GREEK 4 |
| #define CP_HEBREW 12 |
| #define CP_INDIC 15 |
| #define CP_JAPANESE 7 |
| #define CP_KOREAN 8 |
| #define CP_SIMPLIFIED_CHINESE 10 |
| #define CP_THAI 11 |
| #define CP_TRADITIONAL_CHINESE 9 |
| #define CP_TURKIC 6 |
| #define CP_UNICODE_ONLY 0 |
| #define CP_VIETNAMESE 14 |
| #define CP_WESTERN_EUROPE_AND_US 1 |
| _PUBLIC_ uint32_t mapi_get_cpid_from_language | ( | const char * | language | ) |
Return codepage associated to specified language
| language | The language string to lookup |
| _PUBLIC_ uint32_t mapi_get_cpid_from_lcid | ( | uint32_t | lcid | ) |
Returns codepage for a given LCID (Locale ID)
| lcid | the locale ID to lookup |
| _PUBLIC_ uint32_t mapi_get_cpid_from_locale | ( | const char * | locale | ) |
Return codepage associated to specified locale
| locale | The locale string to lookup |
| _PUBLIC_ char** mapi_get_language_from_group | ( | TALLOC_CTX * | mem_ctx, |
| uint32_t | group | ||
| ) |
Returns List of languages for a given Language Group
| mem_ctx | pointer to the memory context |
| group | the locale group to lookup |
| _PUBLIC_ const char* mapi_get_language_from_lcid | ( | uint32_t | lcid | ) |
Returns Language for a given Locale ID
| lcid | the locale ID to lookup |
| _PUBLIC_ const char* mapi_get_language_from_locale | ( | const char * | locale | ) |
Returns Language for a given Locale
| locale | the language string to lookup |
| void mapi_get_language_list | ( | void | ) |
Referenced by mapidump_languages_list().
| _PUBLIC_ uint32_t mapi_get_lcid_from_language | ( | const char * | language | ) |
Returns LCID (Locale ID) for a given language
| language | the language string to lookup |
| _PUBLIC_ uint32_t mapi_get_lcid_from_locale | ( | const char * | locale | ) |
Returns LCID (Locale ID) for a given locale
| locale | the locale string to lookup |
| _PUBLIC_ const char* mapi_get_locale_from_language | ( | const char * | language | ) |
Returns Locale for a given language
| language | the language string to lookup |
| _PUBLIC_ const char* mapi_get_locale_from_lcid | ( | uint32_t | lcid | ) |
Returns Locale for a given Locale ID
| lcid | the locale ID to lookup |
| _PUBLIC_ char* mapi_get_system_locale | ( | void | ) |
Returns current locale used by the system
| _PUBLIC_ bool mapi_verify_cpid | ( | uint32_t | cpid | ) |
Verify if the specified codepage is valid
| cpid | the codepage to lookup |
|
|
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |