#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <glib.h>
#include "xap_CocoaEncodingManager.h"
#include "ut_assert.h"
#include "ut_debugmsg.h"
#include "ut_string.h"
#include <string.h>
Enumerations | |
enum | { COMPONENT_CODESET = 1 << 0, COMPONENT_TERRITORY = 1 << 1, COMPONENT_MODIFIER = 1 << 2 } |
Functions | |
const GList * | g_i18n_get_language_list (const gchar *category_name) |
g_i18n_get_language_list: : Name of category to look up, e.g. | |
static void | read_aliases (const char *file) |
static char * | unalias_lang (char *lang) |
static guint | explode_locale (const gchar *locale, gchar **language, gchar **territory, gchar **codeset, gchar **modifier) |
static GList * | compute_locale_variants (const gchar *locale) |
static const gchar * | guess_category_value (const gchar *categoryname) |
Variables | |
static GHashTable * | alias_table = NULL |
static GHashTable * | category_table = NULL |
static const char * | NativeEncodingName |
static const char * | NativeUnicodeEncodingName |
static const char * | Native8BitEncodingName |
static const char * | LanguageISOName |
static const char * | LanguageISOTerritory |
static GList* compute_locale_variants | ( | const gchar * | locale | ) | [static] |
References COMPONENT_CODESET, COMPONENT_MODIFIER, COMPONENT_TERRITORY, explode_locale(), gchar, and UT_return_val_if_fail.
Referenced by g_i18n_get_language_list().
static guint explode_locale | ( | const gchar * | locale, | |
gchar ** | language, | |||
gchar ** | territory, | |||
gchar ** | codeset, | |||
gchar ** | modifier | |||
) | [static] |
References gchar.
Referenced by compute_locale_variants(), and XAP_CocoaEncodingManager::initialize().
const GList * g_i18n_get_language_list | ( | const gchar * | category_name | ) |
g_i18n_get_language_list: : Name of category to look up, e.g.
"LC_MESSAGES".
This computes a list of language strings. It searches in the standard environment variables to find the list, which is sorted in order from most desirable to least desirable. The `C' locale is appended to the list if it does not already appear (other routines depend on this behaviour). If is NULL, then LC_ALL is assumed.
Return value: the list of languages, this list should not be freed as it is owned by gnome-i18n
References category_table, compute_locale_variants(), gchar, guess_category_value(), unalias_lang(), and xxx_UT_DEBUGMSG.
Referenced by XAP_UnixEncodingManager::initialize(), XAP_QtEncodingManager::initialize(), and XAP_CocoaEncodingManager::initialize().
static const gchar* guess_category_value | ( | const gchar * | categoryname | ) | [static] |
References gchar.
Referenced by g_i18n_get_language_list().
static void read_aliases | ( | const char * | file | ) | [static] |
References alias_table, and fgets().
Referenced by unalias_lang().
static char* unalias_lang | ( | char * | lang | ) | [static] |
References alias_table, and read_aliases().
Referenced by g_i18n_get_language_list().
GHashTable* alias_table = NULL [static] |
Referenced by read_aliases(), and unalias_lang().
GHashTable* category_table = NULL [static] |
Referenced by g_i18n_get_language_list().
const char* LanguageISOName [static] |
Referenced by XAP_CocoaEncodingManager::getLanguageISOName(), and XAP_CocoaEncodingManager::initialize().
const char* LanguageISOTerritory [static] |
const char* Native8BitEncodingName [static] |
const char* NativeEncodingName [static] |
const char* NativeUnicodeEncodingName [static] |
Referenced by XAP_CocoaEncodingManager::initialize().