Functions

go-locale.h File Reference

#include <glib.h>
#include <locale.h>

Go to the source code of this file.

Functions

G_BEGIN_DECLS char const * go_setlocale (int category, char const *val)
void go_locale_untranslated_booleans (void)
 go_locale_untranslated_booleans :
char const * go_locale_boolean_name (gboolean b)
GString const * go_locale_get_currency (gboolean *precedes, gboolean *space_sep)
 go_locale_get_currency : : a pointer to a boolean which is set to TRUE if the currency should precede : a pointer to a boolean which is set to TRUE if the currency should have a space separating it from the the value
char go_locale_get_arg_sep (void)
char go_locale_get_col_sep (void)
char go_locale_get_row_sep (void)
GString const * go_locale_get_thousand (void)
GString const * go_locale_get_decimal (void)
int go_locale_month_before_day (void)
gboolean go_locale_24h (void)
 go_locale_24h :
GString const * go_locale_get_date_format (void)
GString const * go_locale_get_time_format (void)
void _go_locale_shutdown (void)

Function Documentation

void _go_locale_shutdown ( void   ) 
gboolean go_locale_24h ( void   ) 

go_locale_24h :

Returns: TRUE if the locale uses a 24h clock, FALSE otherwise.

References go_locale_get_time_format(), and locale_is_24h_cached.

char const* go_locale_boolean_name ( gboolean  b  ) 

References _, boolean_cached, lc_FALSE, and lc_TRUE.

Referenced by go_object_set_property().

char go_locale_get_arg_sep ( void   ) 
char go_locale_get_col_sep ( void   ) 
GString const* go_locale_get_currency ( gboolean *  precedes,
gboolean *  space_sep 
)

go_locale_get_currency : : a pointer to a boolean which is set to TRUE if the currency should precede : a pointer to a boolean which is set to TRUE if the currency should have a space separating it from the the value

Play with the default logic so that things come out nicely for the default case.

Returns: A string with the default currency

References lc_currency, lc_precedes, lc_space_sep, locale_info_cached, and update_lc().

GString const* go_locale_get_date_format ( void   ) 
GString const* go_locale_get_decimal ( void   ) 
char go_locale_get_row_sep ( void   ) 
GString const* go_locale_get_thousand ( void   ) 
GString const* go_locale_get_time_format ( void   ) 

References lc_time_format, s, and time_format_cached.

Referenced by go_locale_24h().

int go_locale_month_before_day ( void   ) 

References date_order_cached.

void go_locale_untranslated_booleans ( void   ) 

go_locale_untranslated_booleans :

Short circuit the current locale so that we can import files and still produce error messages in the current LC_MESSAGE

References boolean_cached, lc_FALSE, and lc_TRUE.

G_BEGIN_DECLS char const* go_setlocale ( int  category,
char const *  val 
)