/home/ntakagi/work/STLport-5.1.5/src/c_locale_glibc/c_locale_glibc2.c File Reference

#include <locale.h>
#include <langinfo.h>
#include <stl/c_locale.h>
#include <stdio.h>
#include <wctype.h>
#include <string.h>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  locale_data
union  locale_data::locale_data_value

Defines

#define __LOCALE_CREATE(nm, category)   (void*)__newlocale(1 << category, nm, NULL )
#define __LOCALE_DESTROY(__loc)   __freelocale((__c_locale)__loc)

Typedefs

typedef __locale_t __c_locale

Functions

void _Locale_init ()
void _Locale_final ()
void * _Locale_ctype_create (const char *nm, struct _Locale_name_hint *hint)
void * _Locale_numeric_create (const char *nm, struct _Locale_name_hint *hint)
void * _Locale_time_create (const char *nm, struct _Locale_name_hint *hint)
void * _Locale_collate_create (const char *nm, struct _Locale_name_hint *hint)
void * _Locale_monetary_create (const char *nm, struct _Locale_name_hint *hint)
void * _Locale_messages_create (const char *nm, struct _Locale_name_hint *hint)
const char * _Locale_aux_default (const char *LC, char *nm)
const char * _Locale_ctype_default (char *nm)
const char * _Locale_numeric_default (char *nm)
const char * _Locale_time_default (char *nm)
const char * _Locale_collate_default (char *nm)
const char * _Locale_monetary_default (char *nm)
const char * _Locale_messages_default (char *nm)
char const * _Locale_ctype_name (const void *__loc, char *buf)
char const * _Locale_numeric_name (const void *__loc, char *buf)
char const * _Locale_time_name (const void *__loc, char *buf)
char const * _Locale_collate_name (const void *__loc, char *buf)
char const * _Locale_monetary_name (const void *__loc, char *buf)
char const * _Locale_messages_name (const void *__loc, char *buf)
void _Locale_ctype_destroy (void *__loc)
void _Locale_numeric_destroy (void *__loc)
void _Locale_time_destroy (void *__loc)
void _Locale_collate_destroy (void *__loc)
void _Locale_monetary_destroy (void *__loc)
void _Locale_messages_destroy (void *__loc)
char const * __Extract_locale_name (const char *loc, const char *category, char *buf)
char const * _Locale_extract_ctype_name (const char *loc, char *buf, struct _Locale_name_hint *hint)
char const * _Locale_extract_numeric_name (const char *loc, char *buf, struct _Locale_name_hint *hint)
char const * _Locale_extract_time_name (const char *loc, char *buf, struct _Locale_name_hint *hint)
char const * _Locale_extract_collate_name (const char *loc, char *buf, struct _Locale_name_hint *hint)
char const * _Locale_extract_monetary_name (const char *loc, char *buf, struct _Locale_name_hint *hint)
char const * _Locale_extract_messages_name (const char *loc, char *buf, struct _Locale_name_hint *hint)
char const * _Locale_compose_name (char *__DUMMY_PAR1, const char *__DUMMY_PAR2, const char *__DUMMY_PAR3, const char *__DUMMY_PAR4, const char *__DUMMY_PAR5, const char *__DUMMY_PAR6, const char *__DUMMY_PAR7, const char *__DUMMY_PAR8)
_Locale_name_hint_Locale_get_ctype_hint (struct _Locale_ctype *ctype)
_Locale_name_hint_Locale_get_numeric_hint (struct _Locale_numeric *numeric)
_Locale_name_hint_Locale_get_time_hint (struct _Locale_time *time)
_Locale_name_hint_Locale_get_collate_hint (struct _Locale_collate *collate)
_Locale_name_hint_Locale_get_monetary_hint (struct _Locale_monetary *monetary)
_Locale_name_hint_Locale_get_messages_hint (struct _Locale_messages *messages)
const _Locale_mask_t_Locale_ctype_table (struct _Locale_ctype *__loc)
int _Locale_toupper (struct _Locale_ctype *__loc, int c)
int _Locale_tolower (struct _Locale_ctype *__loc, int c)
_Locale_mask_t _Locale_wchar_ctype (struct _Locale_ctype *__DUMMY_PAR1, wint_t __DUMMY_PAR2, _Locale_mask_t __DUMMY_PAR3)
wint_t _Locale_wchar_tolower (struct _Locale_ctype *__loc, wint_t c)
wint_t _Locale_wchar_toupper (struct _Locale_ctype *__loc, wint_t c)
int _Locale_mb_cur_max (struct _Locale_ctype *__DUMMY_PAR)
int _Locale_mb_cur_min (struct _Locale_ctype *__DUMMY_PAR)
int _Locale_is_stateless (struct _Locale_ctype *__DUMMY_PAR)
wint_t _Locale_btowc (struct _Locale_ctype *__loc, int c)
int _Locale_wctob (struct _Locale_ctype *__loc, wint_t c)
size_t _Locale_mbtowc (struct _Locale_ctype *__DUMMY_PAR1, wchar_t *__DUMMY_PAR2, const char *__DUMMY_PAR3, size_t __DUMMY_PAR4, mbstate_t *__DUMMY_PAR5)
size_t _Locale_wctomb (struct _Locale_ctype *__DUMMY_PAR1, char *__DUMMY_PAR2, size_t __DUMMY_PAR3, const wchar_t __DUMMY_PAR4, mbstate_t *__DUMMY_PAR5)
size_t _Locale_unshift (struct _Locale_ctype *__DUMMY_PAR1, mbstate_t *__DUMMY_PAR2, char *__DUMMY_PAR3, size_t __DUMMY_PAR4, char **__DUMMY_PAR5)
int _Locale_strcmp (struct _Locale_collate *__loc, const char *s1, size_t n1, const char *s2, size_t n2)
int _Locale_strwcmp (struct _Locale_collate *__loc, const wchar_t *s1, size_t n1, const wchar_t *s2, size_t n2)
size_t _Locale_strxfrm (struct _Locale_collate *__loc, char *dest, size_t dest_n, const char *src, size_t src_n)
size_t _Locale_strwxfrm (struct _Locale_collate *__loc, wchar_t *dest, size_t dest_n, const wchar_t *src, size_t src_n)
char _Locale_decimal_point (struct _Locale_numeric *__loc)
char _Locale_thousands_sep (struct _Locale_numeric *__loc)
const char * _Locale_grouping (struct _Locale_numeric *__loc)
const char * _Locale_true (struct _Locale_numeric *__loc)
const char * _Locale_false (struct _Locale_numeric *__loc)
const char * _Locale_int_curr_symbol (struct _Locale_monetary *__loc)
const char * _Locale_currency_symbol (struct _Locale_monetary *__loc)
char _Locale_mon_decimal_point (struct _Locale_monetary *__loc)
char _Locale_mon_thousands_sep (struct _Locale_monetary *__loc)
const char * _Locale_mon_grouping (struct _Locale_monetary *__loc)
const char * _Locale_positive_sign (struct _Locale_monetary *__loc)
const char * _Locale_negative_sign (struct _Locale_monetary *__loc)
char _Locale_int_frac_digits (struct _Locale_monetary *__loc)
char _Locale_frac_digits (struct _Locale_monetary *__loc)
int _Locale_p_cs_precedes (struct _Locale_monetary *__loc)
int _Locale_p_sep_by_space (struct _Locale_monetary *__loc)
int _Locale_p_sign_posn (struct _Locale_monetary *__loc)
int _Locale_n_cs_precedes (struct _Locale_monetary *__loc)
int _Locale_n_sep_by_space (struct _Locale_monetary *__loc)
int _Locale_n_sign_posn (struct _Locale_monetary *__loc)
const char * _Locale_full_monthname (struct _Locale_time *__loc, int _m)
const char * _Locale_abbrev_monthname (struct _Locale_time *__loc, int _m)
const char * _Locale_full_dayofweek (struct _Locale_time *__loc, int _d)
const char * _Locale_abbrev_dayofweek (struct _Locale_time *__loc, int _d)
const char * _Locale_d_t_fmt (struct _Locale_time *__loc)
const char * _Locale_d_fmt (struct _Locale_time *__loc)
const char * _Locale_t_fmt (struct _Locale_time *__loc)
const char * _Locale_long_d_t_fmt (struct _Locale_time *__loc)
const char * _Locale_long_d_fmt (struct _Locale_time *__loc)
const char * _Locale_am_str (struct _Locale_time *__loc)
const char * _Locale_pm_str (struct _Locale_time *__loc)
const char * _Locale_t_fmt_ampm (struct _Locale_time *__loc)
nl_catd_type _Locale_catopen (struct _Locale_messages *__loc, const char *__cat_name)
void _Locale_catclose (struct _Locale_messages *__loc, nl_catd_type __cat)
const char * _Locale_catgets (struct _Locale_messages *__loc, nl_catd_type __cat, int __setid, int __msgid, const char *dfault)


Define Documentation

#define __LOCALE_CREATE ( nm,
category   )     (void*)__newlocale(1 << category, nm, NULL )

#define __LOCALE_DESTROY ( __loc   )     __freelocale((__c_locale)__loc)


Typedef Documentation

typedef __locale_t __c_locale

Definition at line 88 of file c_locale_glibc2.c.


Function Documentation

const char* _Locale_abbrev_dayofweek ( struct _Locale_time __loc,
int  _d 
)

Definition at line 666 of file c_locale_glibc2.c.

const char* _Locale_abbrev_monthname ( struct _Locale_time __loc,
int  _m 
)

Definition at line 656 of file c_locale_glibc2.c.

const char* _Locale_am_str ( struct _Locale_time __loc  ) 

Definition at line 696 of file c_locale_glibc2.c.

const char* _Locale_aux_default ( const char *  LC,
char *  nm 
)

wint_t _Locale_btowc ( struct _Locale_ctype __loc,
int  c 
)

Definition at line 384 of file c_locale_glibc2.c.

References btowc(), and wint_t.

void _Locale_catclose ( struct _Locale_messages __loc,
nl_catd_type  __cat 
)

Definition at line 718 of file c_locale_glibc2.c.

const char* _Locale_catgets ( struct _Locale_messages __loc,
nl_catd_type  __cat,
int  __setid,
int  __msgid,
const char *  dfault 
)

Definition at line 723 of file c_locale_glibc2.c.

nl_catd_type _Locale_catopen ( struct _Locale_messages __loc,
const char *  __cat_name 
)

Definition at line 713 of file c_locale_glibc2.c.

void* _Locale_collate_create ( const char *  nm,
struct _Locale_name_hint hint 
)

Definition at line 153 of file c_locale_glibc2.c.

References __LOCALE_CREATE.

const char* _Locale_collate_default ( char *  nm  ) 

Definition at line 204 of file c_locale_glibc2.c.

References _Locale_aux_default().

void _Locale_collate_destroy ( void *  __loc  ) 

Definition at line 258 of file c_locale_glibc2.c.

References __LOCALE_DESTROY.

char const* _Locale_collate_name ( const void *  __loc,
char *  buf 
)

Definition at line 234 of file c_locale_glibc2.c.

References _Locale_MAX_SIMPLE_NAME.

char const* _Locale_compose_name ( char *  __DUMMY_PAR1,
const char *  __DUMMY_PAR2,
const char *  __DUMMY_PAR3,
const char *  __DUMMY_PAR4,
const char *  __DUMMY_PAR5,
const char *  __DUMMY_PAR6,
const char *  __DUMMY_PAR7,
const char *  __DUMMY_PAR8 
)

Definition at line 311 of file c_locale_glibc2.c.

void* _Locale_ctype_create ( const char *  nm,
struct _Locale_name_hint hint 
)

Definition at line 144 of file c_locale_glibc2.c.

References __LOCALE_CREATE.

const char* _Locale_ctype_default ( char *  nm  ) 

Definition at line 189 of file c_locale_glibc2.c.

References _Locale_aux_default().

void _Locale_ctype_destroy ( void *  __loc  ) 

Definition at line 249 of file c_locale_glibc2.c.

References __LOCALE_DESTROY.

char const* _Locale_ctype_name ( const void *  __loc,
char *  buf 
)

Definition at line 219 of file c_locale_glibc2.c.

References _Locale_MAX_SIMPLE_NAME.

const _Locale_mask_t* _Locale_ctype_table ( struct _Locale_ctype __loc  ) 

Definition at line 336 of file c_locale_glibc2.c.

const char* _Locale_currency_symbol ( struct _Locale_monetary __loc  ) 

Definition at line 560 of file c_locale_glibc2.c.

const char* _Locale_d_fmt ( struct _Locale_time __loc  ) 

Definition at line 676 of file c_locale_glibc2.c.

const char* _Locale_d_t_fmt ( struct _Locale_time __loc  ) 

Definition at line 671 of file c_locale_glibc2.c.

char _Locale_decimal_point ( struct _Locale_numeric __loc  ) 

Definition at line 526 of file c_locale_glibc2.c.

char const* _Locale_extract_collate_name ( const char *  loc,
char *  buf,
struct _Locale_name_hint hint 
)

Definition at line 302 of file c_locale_glibc2.c.

References __Extract_locale_name().

char const* _Locale_extract_ctype_name ( const char *  loc,
char *  buf,
struct _Locale_name_hint hint 
)

Definition at line 293 of file c_locale_glibc2.c.

References __Extract_locale_name().

char const* _Locale_extract_messages_name ( const char *  loc,
char *  buf,
struct _Locale_name_hint hint 
)

Definition at line 308 of file c_locale_glibc2.c.

References __Extract_locale_name().

char const* _Locale_extract_monetary_name ( const char *  loc,
char *  buf,
struct _Locale_name_hint hint 
)

Definition at line 305 of file c_locale_glibc2.c.

References __Extract_locale_name().

char const* _Locale_extract_numeric_name ( const char *  loc,
char *  buf,
struct _Locale_name_hint hint 
)

Definition at line 296 of file c_locale_glibc2.c.

References __Extract_locale_name().

char const* _Locale_extract_time_name ( const char *  loc,
char *  buf,
struct _Locale_name_hint hint 
)

Definition at line 299 of file c_locale_glibc2.c.

References __Extract_locale_name().

const char* _Locale_false ( struct _Locale_numeric __loc  ) 

Definition at line 547 of file c_locale_glibc2.c.

void _Locale_final (  ) 

Definition at line 141 of file c_locale_glibc2.c.

char _Locale_frac_digits ( struct _Locale_monetary __loc  ) 

Definition at line 596 of file c_locale_glibc2.c.

const char* _Locale_full_dayofweek ( struct _Locale_time __loc,
int  _d 
)

Definition at line 661 of file c_locale_glibc2.c.

const char* _Locale_full_monthname ( struct _Locale_time __loc,
int  _m 
)

Definition at line 651 of file c_locale_glibc2.c.

struct _Locale_name_hint* _Locale_get_collate_hint ( struct _Locale_collate collate  ) 

Definition at line 327 of file c_locale_glibc2.c.

struct _Locale_name_hint* _Locale_get_ctype_hint ( struct _Locale_ctype ctype  ) 

Definition at line 321 of file c_locale_glibc2.c.

struct _Locale_name_hint* _Locale_get_messages_hint ( struct _Locale_messages messages  ) 

Definition at line 331 of file c_locale_glibc2.c.

struct _Locale_name_hint* _Locale_get_monetary_hint ( struct _Locale_monetary monetary  ) 

Definition at line 329 of file c_locale_glibc2.c.

struct _Locale_name_hint* _Locale_get_numeric_hint ( struct _Locale_numeric numeric  ) 

Definition at line 323 of file c_locale_glibc2.c.

struct _Locale_name_hint* _Locale_get_time_hint ( struct _Locale_time time  ) 

Definition at line 325 of file c_locale_glibc2.c.

const char* _Locale_grouping ( struct _Locale_numeric __loc  ) 

Definition at line 536 of file c_locale_glibc2.c.

References _Locale_thousands_sep().

void _Locale_init (  ) 

Definition at line 138 of file c_locale_glibc2.c.

const char* _Locale_int_curr_symbol ( struct _Locale_monetary __loc  ) 

Definition at line 555 of file c_locale_glibc2.c.

char _Locale_int_frac_digits ( struct _Locale_monetary __loc  ) 

Definition at line 591 of file c_locale_glibc2.c.

int _Locale_is_stateless ( struct _Locale_ctype __DUMMY_PAR  ) 

Definition at line 378 of file c_locale_glibc2.c.

const char* _Locale_long_d_fmt ( struct _Locale_time __loc  ) 

Definition at line 691 of file c_locale_glibc2.c.

const char* _Locale_long_d_t_fmt ( struct _Locale_time __loc  ) 

Definition at line 686 of file c_locale_glibc2.c.

int _Locale_mb_cur_max ( struct _Locale_ctype __DUMMY_PAR  ) 

Definition at line 368 of file c_locale_glibc2.c.

int _Locale_mb_cur_min ( struct _Locale_ctype __DUMMY_PAR  ) 

Definition at line 373 of file c_locale_glibc2.c.

size_t _Locale_mbtowc ( struct _Locale_ctype __DUMMY_PAR1,
wchar_t *  __DUMMY_PAR2,
const char *  __DUMMY_PAR3,
size_t  __DUMMY_PAR4,
mbstate_t __DUMMY_PAR5 
)

Definition at line 400 of file c_locale_glibc2.c.

void* _Locale_messages_create ( const char *  nm,
struct _Locale_name_hint hint 
)

Definition at line 159 of file c_locale_glibc2.c.

References __LOCALE_CREATE.

const char* _Locale_messages_default ( char *  nm  ) 

Definition at line 214 of file c_locale_glibc2.c.

References _Locale_aux_default().

void _Locale_messages_destroy ( void *  __loc  ) 

Definition at line 264 of file c_locale_glibc2.c.

References __LOCALE_DESTROY.

char const* _Locale_messages_name ( const void *  __loc,
char *  buf 
)

Definition at line 244 of file c_locale_glibc2.c.

References _Locale_MAX_SIMPLE_NAME.

char _Locale_mon_decimal_point ( struct _Locale_monetary __loc  ) 

Definition at line 565 of file c_locale_glibc2.c.

const char* _Locale_mon_grouping ( struct _Locale_monetary __loc  ) 

Definition at line 575 of file c_locale_glibc2.c.

References _Locale_mon_thousands_sep().

char _Locale_mon_thousands_sep ( struct _Locale_monetary __loc  ) 

Definition at line 570 of file c_locale_glibc2.c.

void* _Locale_monetary_create ( const char *  nm,
struct _Locale_name_hint hint 
)

Definition at line 156 of file c_locale_glibc2.c.

References __LOCALE_CREATE.

const char* _Locale_monetary_default ( char *  nm  ) 

Definition at line 209 of file c_locale_glibc2.c.

References _Locale_aux_default().

void _Locale_monetary_destroy ( void *  __loc  ) 

Definition at line 261 of file c_locale_glibc2.c.

References __LOCALE_DESTROY.

char const* _Locale_monetary_name ( const void *  __loc,
char *  buf 
)

Definition at line 239 of file c_locale_glibc2.c.

References _Locale_MAX_SIMPLE_NAME.

int _Locale_n_cs_precedes ( struct _Locale_monetary __loc  ) 

Definition at line 626 of file c_locale_glibc2.c.

int _Locale_n_sep_by_space ( struct _Locale_monetary __loc  ) 

Definition at line 632 of file c_locale_glibc2.c.

int _Locale_n_sign_posn ( struct _Locale_monetary __loc  ) 

Definition at line 644 of file c_locale_glibc2.c.

const char* _Locale_negative_sign ( struct _Locale_monetary __loc  ) 

Definition at line 586 of file c_locale_glibc2.c.

void* _Locale_numeric_create ( const char *  nm,
struct _Locale_name_hint hint 
)

Definition at line 147 of file c_locale_glibc2.c.

References __LOCALE_CREATE.

const char* _Locale_numeric_default ( char *  nm  ) 

Definition at line 194 of file c_locale_glibc2.c.

References _Locale_aux_default().

void _Locale_numeric_destroy ( void *  __loc  ) 

Definition at line 252 of file c_locale_glibc2.c.

References __LOCALE_DESTROY.

char const* _Locale_numeric_name ( const void *  __loc,
char *  buf 
)

Definition at line 224 of file c_locale_glibc2.c.

References _Locale_MAX_SIMPLE_NAME.

int _Locale_p_cs_precedes ( struct _Locale_monetary __loc  ) 

Definition at line 602 of file c_locale_glibc2.c.

int _Locale_p_sep_by_space ( struct _Locale_monetary __loc  ) 

Definition at line 608 of file c_locale_glibc2.c.

int _Locale_p_sign_posn ( struct _Locale_monetary __loc  ) 

Definition at line 620 of file c_locale_glibc2.c.

const char* _Locale_pm_str ( struct _Locale_time __loc  ) 

Definition at line 701 of file c_locale_glibc2.c.

const char* _Locale_positive_sign ( struct _Locale_monetary __loc  ) 

Definition at line 581 of file c_locale_glibc2.c.

int _Locale_strcmp ( struct _Locale_collate __loc,
const char *  s1,
size_t  n1,
const char *  s2,
size_t  n2 
)

Definition at line 427 of file c_locale_glibc2.c.

int _Locale_strwcmp ( struct _Locale_collate __loc,
const wchar_t *  s1,
size_t  n1,
const wchar_t *  s2,
size_t  n2 
)

Definition at line 447 of file c_locale_glibc2.c.

size_t _Locale_strwxfrm ( struct _Locale_collate __loc,
wchar_t *  dest,
size_t  dest_n,
const wchar_t *  src,
size_t  src_n 
)

Definition at line 496 of file c_locale_glibc2.c.

size_t _Locale_strxfrm ( struct _Locale_collate __loc,
char *  dest,
size_t  dest_n,
const char *  src,
size_t  src_n 
)

Definition at line 468 of file c_locale_glibc2.c.

const char* _Locale_t_fmt ( struct _Locale_time __loc  ) 

Definition at line 681 of file c_locale_glibc2.c.

const char* _Locale_t_fmt_ampm ( struct _Locale_time __loc  ) 

Definition at line 706 of file c_locale_glibc2.c.

char _Locale_thousands_sep ( struct _Locale_numeric __loc  ) 

Definition at line 531 of file c_locale_glibc2.c.

void* _Locale_time_create ( const char *  nm,
struct _Locale_name_hint hint 
)

Definition at line 150 of file c_locale_glibc2.c.

References __LOCALE_CREATE.

const char* _Locale_time_default ( char *  nm  ) 

Definition at line 199 of file c_locale_glibc2.c.

References _Locale_aux_default().

void _Locale_time_destroy ( void *  __loc  ) 

Definition at line 255 of file c_locale_glibc2.c.

References __LOCALE_DESTROY.

char const* _Locale_time_name ( const void *  __loc,
char *  buf 
)

Definition at line 229 of file c_locale_glibc2.c.

References _Locale_MAX_SIMPLE_NAME.

int _Locale_tolower ( struct _Locale_ctype __loc,
int  c 
)

Definition at line 346 of file c_locale_glibc2.c.

int _Locale_toupper ( struct _Locale_ctype __loc,
int  c 
)

Definition at line 343 of file c_locale_glibc2.c.

const char* _Locale_true ( struct _Locale_numeric __loc  ) 

Definition at line 542 of file c_locale_glibc2.c.

size_t _Locale_unshift ( struct _Locale_ctype __DUMMY_PAR1,
mbstate_t __DUMMY_PAR2,
char *  __DUMMY_PAR3,
size_t  __DUMMY_PAR4,
char **  __DUMMY_PAR5 
)

Definition at line 417 of file c_locale_glibc2.c.

_Locale_mask_t _Locale_wchar_ctype ( struct _Locale_ctype __DUMMY_PAR1,
wint_t  __DUMMY_PAR2,
_Locale_mask_t  __DUMMY_PAR3 
)

Definition at line 350 of file c_locale_glibc2.c.

wint_t _Locale_wchar_tolower ( struct _Locale_ctype __loc,
wint_t  c 
)

Definition at line 355 of file c_locale_glibc2.c.

wint_t _Locale_wchar_toupper ( struct _Locale_ctype __loc,
wint_t  c 
)

Definition at line 360 of file c_locale_glibc2.c.

int _Locale_wctob ( struct _Locale_ctype __loc,
wint_t  c 
)

Definition at line 392 of file c_locale_glibc2.c.

References wctob().

size_t _Locale_wctomb ( struct _Locale_ctype __DUMMY_PAR1,
char *  __DUMMY_PAR2,
size_t  __DUMMY_PAR3,
const wchar_t  __DUMMY_PAR4,
mbstate_t __DUMMY_PAR5 
)

Definition at line 408 of file c_locale_glibc2.c.



Generated on Mon Mar 10 15:32:47 2008 by  doxygen 1.5.1