ReactOS 0.4.15-dev-7958-gcd0bb1a
c_locale.h File Reference
#include "stlport_prefix.h"
#include <wchar.h>
#include <stl/c_locale.h>
Include dependency graph for c_locale.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _Locale_MAX_SIMPLE_NAME   256
 
#define _STLP_LOC_UNDEFINED   0
 
#define _STLP_LOC_UNSUPPORTED_FACET_CATEGORY   1
 
#define _STLP_LOC_UNKNOWN_NAME   2
 
#define _STLP_LOC_NO_PLATFORM_SUPPORT   3
 
#define _STLP_LOC_NO_MEMORY   4
 

Typedefs

typedef int nl_catd_type
 
typedef unsigned short int _Locale_mask_t
 

Functions

void _Locale_init (void)
 
void _Locale_final (void)
 
struct _Locale_ctype_Locale_ctype_create (const char *, struct _Locale_name_hint *, int *)
 
struct _Locale_codecvt_Locale_codecvt_create (const char *, struct _Locale_name_hint *, int *)
 
struct _Locale_numeric_Locale_numeric_create (const char *, struct _Locale_name_hint *, int *)
 
struct _Locale_time_Locale_time_create (const char *, struct _Locale_name_hint *, int *)
 
struct _Locale_collate_Locale_collate_create (const char *, struct _Locale_name_hint *, int *)
 
struct _Locale_monetary_Locale_monetary_create (const char *, struct _Locale_name_hint *, int *)
 
struct _Locale_messages * _Locale_messages_create (const char *, struct _Locale_name_hint *, int *)
 
void _Locale_ctype_destroy (struct _Locale_ctype *)
 
void _Locale_codecvt_destroy (struct _Locale_codecvt *)
 
void _Locale_numeric_destroy (struct _Locale_numeric *)
 
void _Locale_time_destroy (struct _Locale_time *)
 
void _Locale_collate_destroy (struct _Locale_collate *)
 
void _Locale_monetary_destroy (struct _Locale_monetary *)
 
void _Locale_messages_destroy (struct _Locale_messages *)
 
const char_Locale_ctype_default (char *__buf)
 
const char_Locale_numeric_default (char *__buf)
 
const char_Locale_time_default (char *__buf)
 
const char_Locale_collate_default (char *__buf)
 
const char_Locale_monetary_default (char *__buf)
 
const char_Locale_messages_default (char *__buf)
 
char const_Locale_ctype_name (const struct _Locale_ctype *, char *__buf)
 
char const_Locale_codecvt_name (const struct _Locale_codecvt *, char *__buf)
 
char const_Locale_numeric_name (const struct _Locale_numeric *, char *__buf)
 
char const_Locale_time_name (const struct _Locale_time *, char *__buf)
 
char const_Locale_collate_name (const struct _Locale_collate *, char *__buf)
 
char const_Locale_monetary_name (const struct _Locale_monetary *, char *__buf)
 
char const_Locale_messages_name (const struct _Locale_messages *, char *__buf)
 
char const_Locale_extract_ctype_name (const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
 
char const_Locale_extract_numeric_name (const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
 
char const_Locale_extract_time_name (const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
 
char const_Locale_extract_collate_name (const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
 
char const_Locale_extract_monetary_name (const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
 
char const_Locale_extract_messages_name (const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
 
struct _Locale_name_hint_Locale_get_ctype_hint (struct _Locale_ctype *)
 
struct _Locale_name_hint_Locale_get_numeric_hint (struct _Locale_numeric *)
 
struct _Locale_name_hint_Locale_get_time_hint (struct _Locale_time *)
 
struct _Locale_name_hint_Locale_get_collate_hint (struct _Locale_collate *)
 
struct _Locale_name_hint_Locale_get_monetary_hint (struct _Locale_monetary *)
 
struct _Locale_name_hint_Locale_get_messages_hint (struct _Locale_messages *)
 
const _Locale_mask_t_Locale_ctype_table (struct _Locale_ctype *)
 
int _Locale_toupper (struct _Locale_ctype *, int)
 
int _Locale_tolower (struct _Locale_ctype *, int)
 
_Locale_mask_t _WLocale_ctype (struct _Locale_ctype *, wint_t, _Locale_mask_t)
 
wint_t _WLocale_tolower (struct _Locale_ctype *, wint_t)
 
wint_t _WLocale_toupper (struct _Locale_ctype *, wint_t)
 
int _WLocale_mb_cur_max (struct _Locale_codecvt *)
 
int _WLocale_mb_cur_min (struct _Locale_codecvt *)
 
int _WLocale_is_stateless (struct _Locale_codecvt *)
 
size_t _WLocale_mbtowc (struct _Locale_codecvt *, wchar_t *, const char *, size_t, mbstate_t *)
 
size_t _WLocale_wctomb (struct _Locale_codecvt *, char *, size_t, const wchar_t, mbstate_t *)
 
size_t _WLocale_unshift (struct _Locale_codecvt *, mbstate_t *, char *, size_t, char **)
 
int _Locale_strcmp (struct _Locale_collate *, const char *, size_t, const char *, size_t)
 
int _WLocale_strcmp (struct _Locale_collate *, const wchar_t *, size_t, const wchar_t *, size_t)
 
size_t _Locale_strxfrm (struct _Locale_collate *, char *, size_t, const char *, size_t)
 
size_t _WLocale_strxfrm (struct _Locale_collate *, wchar_t *, size_t, const wchar_t *, size_t)
 
char _Locale_decimal_point (struct _Locale_numeric *)
 
char _Locale_thousands_sep (struct _Locale_numeric *)
 
const char_Locale_grouping (struct _Locale_numeric *)
 
wchar_t _WLocale_decimal_point (struct _Locale_numeric *)
 
wchar_t _WLocale_thousands_sep (struct _Locale_numeric *)
 
const char_Locale_true (struct _Locale_numeric *)
 
const char_Locale_false (struct _Locale_numeric *)
 
const wchar_t_WLocale_true (struct _Locale_numeric *, wchar_t *, size_t)
 
const wchar_t_WLocale_false (struct _Locale_numeric *, wchar_t *, size_t)
 
const char_Locale_int_curr_symbol (struct _Locale_monetary *)
 
const char_Locale_currency_symbol (struct _Locale_monetary *)
 
char _Locale_mon_decimal_point (struct _Locale_monetary *)
 
char _Locale_mon_thousands_sep (struct _Locale_monetary *)
 
const char_Locale_mon_grouping (struct _Locale_monetary *)
 
const char_Locale_positive_sign (struct _Locale_monetary *)
 
const char_Locale_negative_sign (struct _Locale_monetary *)
 
char _Locale_int_frac_digits (struct _Locale_monetary *)
 
char _Locale_frac_digits (struct _Locale_monetary *)
 
int _Locale_p_cs_precedes (struct _Locale_monetary *)
 
int _Locale_p_sep_by_space (struct _Locale_monetary *)
 
int _Locale_p_sign_posn (struct _Locale_monetary *)
 
int _Locale_n_cs_precedes (struct _Locale_monetary *)
 
int _Locale_n_sep_by_space (struct _Locale_monetary *)
 
int _Locale_n_sign_posn (struct _Locale_monetary *)
 
const wchar_t_WLocale_int_curr_symbol (struct _Locale_monetary *, wchar_t *, size_t)
 
const wchar_t_WLocale_currency_symbol (struct _Locale_monetary *, wchar_t *, size_t)
 
wchar_t _WLocale_mon_decimal_point (struct _Locale_monetary *)
 
wchar_t _WLocale_mon_thousands_sep (struct _Locale_monetary *)
 
const wchar_t_WLocale_positive_sign (struct _Locale_monetary *, wchar_t *, size_t)
 
const wchar_t_WLocale_negative_sign (struct _Locale_monetary *, wchar_t *, size_t)
 
const char_Locale_full_monthname (struct _Locale_time *, int)
 
const char_Locale_abbrev_monthname (struct _Locale_time *, int)
 
const wchar_t_WLocale_full_monthname (struct _Locale_time *, int, wchar_t *, size_t)
 
const wchar_t_WLocale_abbrev_monthname (struct _Locale_time *, int, wchar_t *, size_t)
 
const char_Locale_full_dayofweek (struct _Locale_time *, int)
 
const char_Locale_abbrev_dayofweek (struct _Locale_time *, int)
 
const wchar_t_WLocale_full_dayofweek (struct _Locale_time *, int, wchar_t *, size_t)
 
const wchar_t_WLocale_abbrev_dayofweek (struct _Locale_time *, int, wchar_t *, size_t)
 
const char_Locale_d_t_fmt (struct _Locale_time *)
 
const char_Locale_d_fmt (struct _Locale_time *)
 
const char_Locale_t_fmt (struct _Locale_time *)
 
const char_Locale_long_d_t_fmt (struct _Locale_time *)
 
const char_Locale_long_d_fmt (struct _Locale_time *)
 
const char_Locale_am_str (struct _Locale_time *)
 
const char_Locale_pm_str (struct _Locale_time *)
 
const wchar_t_WLocale_am_str (struct _Locale_time *, wchar_t *, size_t)
 
const wchar_t_WLocale_pm_str (struct _Locale_time *, wchar_t *, size_t)
 
nl_catd_type _Locale_catopen (struct _Locale_messages *, const char *)
 
void _Locale_catclose (struct _Locale_messages *, nl_catd_type)
 
const char_Locale_catgets (struct _Locale_messages *, nl_catd_type, int, int, const char *)
 

Macro Definition Documentation

◆ _Locale_MAX_SIMPLE_NAME

#define _Locale_MAX_SIMPLE_NAME   256

Definition at line 54 of file c_locale.h.

◆ _STLP_LOC_NO_MEMORY

#define _STLP_LOC_NO_MEMORY   4

Definition at line 103 of file c_locale.h.

◆ _STLP_LOC_NO_PLATFORM_SUPPORT

#define _STLP_LOC_NO_PLATFORM_SUPPORT   3

Definition at line 102 of file c_locale.h.

◆ _STLP_LOC_UNDEFINED

#define _STLP_LOC_UNDEFINED   0

Definition at line 99 of file c_locale.h.

◆ _STLP_LOC_UNKNOWN_NAME

#define _STLP_LOC_UNKNOWN_NAME   2

Definition at line 101 of file c_locale.h.

◆ _STLP_LOC_UNSUPPORTED_FACET_CATEGORY

#define _STLP_LOC_UNSUPPORTED_FACET_CATEGORY   1

Definition at line 100 of file c_locale.h.

Typedef Documentation

◆ _Locale_mask_t

Definition at line 63 of file c_locale.h.

◆ nl_catd_type

typedef int nl_catd_type

Definition at line 47 of file c_locale.h.

Function Documentation

◆ _Locale_abbrev_dayofweek()

const char * _Locale_abbrev_dayofweek ( struct _Locale_time ltime,
int  n 
)

Definition at line 425 of file c_locale_dummy.c.

426{ return abbrev_dayname[n]; }
static const char * abbrev_dayname[]
GLdouble n
Definition: glext.h:7729

Referenced by _Init_timeinfo(), and _WLocale_abbrev_dayofweek().

◆ _Locale_abbrev_monthname()

const char * _Locale_abbrev_monthname ( struct _Locale_time ltime,
int  n 
)

Definition at line 415 of file c_locale_dummy.c.

416{ return abbrev_monthname[n]; }
static const char * abbrev_monthname[]

Referenced by _Init_timeinfo(), and _WLocale_abbrev_monthname().

◆ _Locale_am_str()

const char * _Locale_am_str ( struct _Locale_time ltime)

Definition at line 438 of file c_locale_dummy.c.

439{ return "AM"; }

Referenced by _Init_timeinfo(), and _WLocale_am_str().

◆ _Locale_catclose()

void _Locale_catclose ( struct _Locale_messages *  lmes,
nl_catd_type  cat 
)

Definition at line 482 of file c_locale_dummy.c.

482{}

Referenced by _Messages::do_close().

◆ _Locale_catgets()

const char * _Locale_catgets ( struct _Locale_messages *  lmes,
nl_catd_type  cat,
int  setid,
int  msgid,
const char dfault 
)

Definition at line 483 of file c_locale_dummy.c.

485{ return dfault; }

Referenced by _Messages::do_get().

◆ _Locale_catopen()

nl_catd_type _Locale_catopen ( struct _Locale_messages *  lmes,
const char name 
)

Definition at line 480 of file c_locale_dummy.c.

481{ return -1; }

Referenced by _Messages::do_open().

◆ _Locale_codecvt_create()

struct _Locale_codecvt * _Locale_codecvt_create ( const char name,
struct _Locale_name_hint hint,
int __err_code 
)

Definition at line 88 of file c_locale_dummy.c.

90{ return (struct _Locale_codecvt*)_Locale_create(name, __err_code); }
void * _Locale_create(const char *name, int *__err_code)
Definition: name.c:39

Referenced by _Loc_codecvt_create().

◆ _Locale_codecvt_destroy()

void _Locale_codecvt_destroy ( struct _Locale_codecvt lcodecvt)

Definition at line 141 of file c_locale_dummy.c.

141{}

Referenced by _Loc_codecvt_destroy().

◆ _Locale_codecvt_name()

char const * _Locale_codecvt_name ( const struct _Locale_codecvt lcodecvt,
char __buf 
)

Definition at line 122 of file c_locale_dummy.c.

123{ return _C_name; }
static const char * _C_name

Referenced by _Loc_codecvt_name().

◆ _Locale_collate_create()

struct _Locale_collate * _Locale_collate_create ( const char name,
struct _Locale_name_hint hint,
int __err_code 
)

Definition at line 100 of file c_locale_dummy.c.

102{ return (struct _Locale_collate*)_Locale_create(name, __err_code); }

Referenced by _Loc_collate_create().

◆ _Locale_collate_default()

const char * _Locale_collate_default ( char __buf)

Definition at line 115 of file c_locale_dummy.c.

115{ return _C_name; }

Referenced by _Loc_collate_default(), and _Locale_impl::insert_collate_facets().

◆ _Locale_collate_destroy()

void _Locale_collate_destroy ( struct _Locale_collate lcol)

Definition at line 144 of file c_locale_dummy.c.

144{}

Referenced by _Loc_collate_destroy().

◆ _Locale_collate_name()

char const * _Locale_collate_name ( const struct _Locale_collate lcol,
char __buf 
)

Definition at line 131 of file c_locale_dummy.c.

132{ return _C_name; }

Referenced by _Loc_collate_name().

◆ _Locale_ctype_create()

struct _Locale_ctype * _Locale_ctype_create ( const char name,
struct _Locale_name_hint hint,
int __err_code 
)

Definition at line 84 of file c_locale_dummy.c.

86{ return (struct _Locale_ctype*)_Locale_create(name, __err_code); }

Referenced by _Loc_ctype_create().

◆ _Locale_ctype_default()

const char * _Locale_ctype_default ( char __buf)

Definition at line 112 of file c_locale_dummy.c.

112{ return _C_name; }

Referenced by _Loc_ctype_default(), and _Locale_impl::insert_ctype_facets().

◆ _Locale_ctype_destroy()

void _Locale_ctype_destroy ( struct _Locale_ctype lctype)

Definition at line 140 of file c_locale_dummy.c.

140{}

Referenced by _Loc_ctype_destroy().

◆ _Locale_ctype_name()

char const * _Locale_ctype_name ( const struct _Locale_ctype lctype,
char __buf 
)

Definition at line 119 of file c_locale_dummy.c.

120{ return _C_name; }

Referenced by _Loc_ctype_name().

◆ _Locale_ctype_table()

const _Locale_mask_t * _Locale_ctype_table ( struct _Locale_ctype lctype)

Definition at line 194 of file c_locale_dummy.c.

194 {
196 return ctable;
197}
#define _STLP_MARK_PARAMETER_AS_UNUSED(X)
Definition: _dm.h:68
static _Locale_mask_t ctable[256]

Referenced by ctype_byname< char >::_M_init().

◆ _Locale_currency_symbol()

const char * _Locale_currency_symbol ( struct _Locale_monetary lmon)

Definition at line 357 of file c_locale_dummy.c.

358{ return _empty_str; }
static const char * _empty_str

Referenced by _WLocale_currency_symbol(), and moneypunct_byname< char, false >::do_curr_symbol().

◆ _Locale_d_fmt()

const char * _Locale_d_fmt ( struct _Locale_time ltime)

Definition at line 430 of file c_locale_dummy.c.

431{ return "%m/%d/%y"; }

Referenced by __get_date_order(), and _Init_timeinfo_base().

◆ _Locale_d_t_fmt()

const char * _Locale_d_t_fmt ( struct _Locale_time ltime)

Definition at line 428 of file c_locale_dummy.c.

429{ return "%m/%d/%y"; }

Referenced by _Init_timeinfo_base().

◆ _Locale_decimal_point()

char _Locale_decimal_point ( struct _Locale_numeric lnum)

Definition at line 331 of file c_locale_dummy.c.

332{ return '.'; }

Referenced by _WLocale_decimal_point(), and numpunct_byname< char >::do_decimal_point().

◆ _Locale_extract_collate_name()

char const * _Locale_extract_collate_name ( const char cname,
char __buf,
struct _Locale_name_hint __hint,
int __err_code 
)

Definition at line 168 of file c_locale_dummy.c.

170{ return _Locale_extract_name(name, __err_code); }
static char const * _Locale_extract_name(const char *name, int *__err_code)

Referenced by __acquire_collate(), and _Stl_loc_combine_names_aux().

◆ _Locale_extract_ctype_name()

char const * _Locale_extract_ctype_name ( const char cname,
char __buf,
struct _Locale_name_hint __hint,
int __err_code 
)

Definition at line 156 of file c_locale_dummy.c.

158{ return _Locale_extract_name(name, __err_code); }

Referenced by __acquire_codecvt(), __acquire_ctype(), and _Stl_loc_combine_names_aux().

◆ _Locale_extract_messages_name()

char const * _Locale_extract_messages_name ( const char cname,
char __buf,
struct _Locale_name_hint __hint,
int __err_code 
)

Definition at line 176 of file c_locale_dummy.c.

178{ return _Locale_extract_name(name, __err_code); }

Referenced by __acquire_messages(), and _Stl_loc_combine_names_aux().

◆ _Locale_extract_monetary_name()

char const * _Locale_extract_monetary_name ( const char cname,
char __buf,
struct _Locale_name_hint __hint,
int __err_code 
)

Definition at line 172 of file c_locale_dummy.c.

174{ return _Locale_extract_name(name, __err_code); }

Referenced by __acquire_monetary(), and _Stl_loc_combine_names_aux().

◆ _Locale_extract_numeric_name()

char const * _Locale_extract_numeric_name ( const char cname,
char __buf,
struct _Locale_name_hint __hint,
int __err_code 
)

Definition at line 160 of file c_locale_dummy.c.

162{ return _Locale_extract_name(name, __err_code); }

Referenced by __acquire_numeric(), and _Stl_loc_combine_names_aux().

◆ _Locale_extract_time_name()

char const * _Locale_extract_time_name ( const char cname,
char __buf,
struct _Locale_name_hint __hint,
int __err_code 
)

Definition at line 164 of file c_locale_dummy.c.

166{ return _Locale_extract_name(name, __err_code); }

Referenced by __acquire_time(), and _Stl_loc_combine_names_aux().

◆ _Locale_false()

const char * _Locale_false ( struct _Locale_numeric lnum)

Definition at line 339 of file c_locale_dummy.c.

340{ return "false"; }

Referenced by _WLocale_false(), and numpunct_byname< char >::do_falsename().

◆ _Locale_final()

void _Locale_final ( void  )

Definition at line 75 of file c_locale_dummy.c.

76{}

Referenced by ios_base::Init::~Init().

◆ _Locale_frac_digits()

char _Locale_frac_digits ( struct _Locale_monetary lmon)

◆ _Locale_full_dayofweek()

const char * _Locale_full_dayofweek ( struct _Locale_time ltime,
int  n 
)

Definition at line 420 of file c_locale_dummy.c.

421{ return full_dayname[n]; }
static const char * full_dayname[]

Referenced by _Init_timeinfo(), and _WLocale_full_dayofweek().

◆ _Locale_full_monthname()

const char * _Locale_full_monthname ( struct _Locale_time ltime,
int  n 
)

Definition at line 409 of file c_locale_dummy.c.

410{ return full_monthname[n]; }
static const char * full_monthname[]

Referenced by _Init_timeinfo(), and _WLocale_full_monthname().

◆ _Locale_get_collate_hint()

struct _Locale_name_hint * _Locale_get_collate_hint ( struct _Locale_collate collate)

Definition at line 186 of file c_locale_dummy.c.

187{ return 0; }

Referenced by _Locale_impl::insert_collate_facets().

◆ _Locale_get_ctype_hint()

struct _Locale_name_hint * _Locale_get_ctype_hint ( struct _Locale_ctype ctype)

Definition at line 180 of file c_locale_dummy.c.

181{ return 0; }

Referenced by _Locale_impl::insert_ctype_facets().

◆ _Locale_get_messages_hint()

struct _Locale_name_hint * _Locale_get_messages_hint ( struct _Locale_messages *  messages)

Definition at line 190 of file c_locale_dummy.c.

191{ return 0; }

◆ _Locale_get_monetary_hint()

struct _Locale_name_hint * _Locale_get_monetary_hint ( struct _Locale_monetary monetary)

Definition at line 188 of file c_locale_dummy.c.

189{ return 0; }

Referenced by _Locale_impl::insert_monetary_facets().

◆ _Locale_get_numeric_hint()

struct _Locale_name_hint * _Locale_get_numeric_hint ( struct _Locale_numeric numeric)

Definition at line 182 of file c_locale_dummy.c.

183{ return 0; }

Referenced by _Locale_impl::insert_numeric_facets().

◆ _Locale_get_time_hint()

struct _Locale_name_hint * _Locale_get_time_hint ( struct _Locale_time time)

Definition at line 184 of file c_locale_dummy.c.

185{ return 0; }

Referenced by _Locale_impl::insert_time_facets().

◆ _Locale_grouping()

const char * _Locale_grouping ( struct _Locale_numeric lnum)

◆ _Locale_init()

void _Locale_init ( void  )

Definition at line 54 of file c_locale_dummy.c.

54 {
55 /* Ctype table for the ASCII character set. */
56 char c;
57 /* We might never reach 128 when char is signed. */
58 for (c = 0; /* c != 128 */; ++c) {
59 if (isalpha(c)) ctable[(unsigned char)c] |= _Locale_ALPHA;
60 if (iscntrl(c)) ctable[(unsigned char)c] |= _Locale_CNTRL;
61 if (isdigit(c)) ctable[(unsigned char)c] |= _Locale_DIGIT;
62 if (isprint(c)) ctable[(unsigned char)c] |= _Locale_PRINT;
63 if (ispunct(c)) ctable[(unsigned char)c] |= _Locale_PUNCT;
64 if (isspace(c)) ctable[(unsigned char)c] |= _Locale_SPACE;
65 if (isxdigit(c)) ctable[(unsigned char)c] |= _Locale_XDIGIT;
66 if (isupper(c)) ctable[(unsigned char)c] |= _Locale_UPPER;
67 if (islower(c)) ctable[(unsigned char)c] |= _Locale_LOWER;
68 if (c == 127) break;
69 }
70
71 /* ASCII is a 7-bit code, so everything else is non-ASCII. */
72 memset(&(ctable[128]), 0, 128 * sizeof(_Locale_mask_t));
73}
#define isspace(c)
Definition: acclib.h:69
#define islower(c)
Definition: acclib.h:72
#define isalpha(c)
Definition: acclib.h:74
#define isdigit(c)
Definition: acclib.h:68
#define isprint(c)
Definition: acclib.h:73
#define isxdigit(c)
Definition: acclib.h:70
#define isupper(c)
Definition: acclib.h:71
unsigned char
Definition: typeof.h:29
const GLubyte * c
Definition: glext.h:8905
#define _Locale_CNTRL
Definition: c_locale.h:122
#define _Locale_LOWER
Definition: c_locale.h:124
#define _Locale_XDIGIT
Definition: c_locale.h:128
#define _Locale_SPACE
Definition: c_locale.h:120
#define _Locale_PUNCT
Definition: c_locale.h:127
#define _Locale_ALPHA
Definition: c_locale.h:125
#define _Locale_UPPER
Definition: c_locale.h:123
#define _Locale_DIGIT
Definition: c_locale.h:126
#define _Locale_PRINT
Definition: c_locale.h:121
_Check_return_ _CRTIMP int __cdecl ispunct(_In_ int _C)
_Check_return_ _CRTIMP int __cdecl iscntrl(_In_ int _C)
#define c
Definition: ke_i.h:80
unsigned short int _Locale_mask_t
Definition: c_locale.h:63
#define memset(x, y, z)
Definition: compat.h:39

Referenced by ios_base::Init::Init().

◆ _Locale_int_curr_symbol()

const char * _Locale_int_curr_symbol ( struct _Locale_monetary lmon)

◆ _Locale_int_frac_digits()

char _Locale_int_frac_digits ( struct _Locale_monetary lmon)

◆ _Locale_long_d_fmt()

const char * _Locale_long_d_fmt ( struct _Locale_time ltime)

Definition at line 436 of file c_locale_dummy.c.

437{ return _empty_str; }

Referenced by _Init_timeinfo_base().

◆ _Locale_long_d_t_fmt()

const char * _Locale_long_d_t_fmt ( struct _Locale_time ltime)

Definition at line 434 of file c_locale_dummy.c.

435{ return _empty_str; }

Referenced by _Init_timeinfo_base().

◆ _Locale_messages_create()

struct _Locale_messages * _Locale_messages_create ( const char name,
struct _Locale_name_hint hint,
int __err_code 
)

Definition at line 108 of file c_locale_dummy.c.

110{ return (struct _Locale_messages*)_Locale_create(name, __err_code); }

Referenced by _Loc_messages_create().

◆ _Locale_messages_default()

const char * _Locale_messages_default ( char __buf)

Definition at line 117 of file c_locale_dummy.c.

117{ return _C_name; }

Referenced by _Loc_messages_default(), and _Locale_impl::insert_messages_facets().

◆ _Locale_messages_destroy()

void _Locale_messages_destroy ( struct _Locale_messages *  lmes)

Definition at line 146 of file c_locale_dummy.c.

146{}

Referenced by _Loc_messages_destroy().

◆ _Locale_messages_name()

char const * _Locale_messages_name ( const struct _Locale_messages *  lmes,
char __buf 
)

Definition at line 137 of file c_locale_dummy.c.

138{ return _C_name; }

Referenced by _Loc_messages_name().

◆ _Locale_mon_decimal_point()

◆ _Locale_mon_grouping()

◆ _Locale_mon_thousands_sep()

◆ _Locale_monetary_create()

struct _Locale_monetary * _Locale_monetary_create ( const char name,
struct _Locale_name_hint hint,
int __err_code 
)

Definition at line 104 of file c_locale_dummy.c.

106{ return (struct _Locale_monetary*)_Locale_create(name, __err_code); }

Referenced by _Loc_monetary_create().

◆ _Locale_monetary_default()

const char * _Locale_monetary_default ( char __buf)

Definition at line 116 of file c_locale_dummy.c.

116{ return _C_name; }

Referenced by _Loc_monetary_default(), and _Locale_impl::insert_monetary_facets().

◆ _Locale_monetary_destroy()

void _Locale_monetary_destroy ( struct _Locale_monetary lmon)

Definition at line 145 of file c_locale_dummy.c.

145{}

Referenced by _Loc_monetary_destroy().

◆ _Locale_monetary_name()

char const * _Locale_monetary_name ( const struct _Locale_monetary lmon,
char __buf 
)

Definition at line 134 of file c_locale_dummy.c.

135{ return _C_name; }

Referenced by _Loc_monetary_name().

◆ _Locale_n_cs_precedes()

int _Locale_n_cs_precedes ( struct _Locale_monetary lmon)

Definition at line 379 of file c_locale_dummy.c.

380{ return CHAR_MAX; }
#define CHAR_MAX
Definition: limits.h:32

Referenced by _Init_monetary_formats(), and _Init_monetary_formats_int().

◆ _Locale_n_sep_by_space()

int _Locale_n_sep_by_space ( struct _Locale_monetary lmon)

Definition at line 381 of file c_locale_dummy.c.

382{ return CHAR_MAX; }

Referenced by _Init_monetary_formats().

◆ _Locale_n_sign_posn()

int _Locale_n_sign_posn ( struct _Locale_monetary lmon)

Definition at line 383 of file c_locale_dummy.c.

384{ return CHAR_MAX; }

Referenced by _Init_monetary_formats(), and _Init_monetary_formats_int().

◆ _Locale_negative_sign()

◆ _Locale_numeric_create()

struct _Locale_numeric * _Locale_numeric_create ( const char name,
struct _Locale_name_hint hint,
int __err_code 
)

Definition at line 92 of file c_locale_dummy.c.

94{ return (struct _Locale_numeric*)_Locale_create(name, __err_code); }

Referenced by _Loc_numeric_create().

◆ _Locale_numeric_default()

const char * _Locale_numeric_default ( char __buf)

Definition at line 113 of file c_locale_dummy.c.

113{ return _C_name; }

Referenced by _Loc_numeric_default(), and _Locale_impl::insert_numeric_facets().

◆ _Locale_numeric_destroy()

void _Locale_numeric_destroy ( struct _Locale_numeric lnum)

Definition at line 142 of file c_locale_dummy.c.

142{}

Referenced by _Loc_numeric_destroy().

◆ _Locale_numeric_name()

char const * _Locale_numeric_name ( const struct _Locale_numeric lnum,
char __buf 
)

Definition at line 125 of file c_locale_dummy.c.

126{ return _C_name; }

Referenced by _Loc_numeric_name().

◆ _Locale_p_cs_precedes()

int _Locale_p_cs_precedes ( struct _Locale_monetary lmon)

Definition at line 373 of file c_locale_dummy.c.

374{ return CHAR_MAX; }

Referenced by _Init_monetary_formats(), and _Init_monetary_formats_int().

◆ _Locale_p_sep_by_space()

int _Locale_p_sep_by_space ( struct _Locale_monetary lmon)

Definition at line 375 of file c_locale_dummy.c.

376{ return CHAR_MAX; }

Referenced by _Init_monetary_formats().

◆ _Locale_p_sign_posn()

int _Locale_p_sign_posn ( struct _Locale_monetary lmon)

Definition at line 377 of file c_locale_dummy.c.

378{ return CHAR_MAX; }

Referenced by _Init_monetary_formats(), and _Init_monetary_formats_int().

◆ _Locale_pm_str()

const char * _Locale_pm_str ( struct _Locale_time ltime)

Definition at line 440 of file c_locale_dummy.c.

441{ return "PM"; }

Referenced by _Init_timeinfo(), and _WLocale_pm_str().

◆ _Locale_positive_sign()

◆ _Locale_strcmp()

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

Definition at line 267 of file c_locale_dummy.c.

268 {
269 int ret = 0;
270 char buf1[64], buf2[64];
271 while (n1 > 0 || n2 > 0) {
272 size_t bufsize1 = n1 < 63 ? n1 : 63;
273 size_t bufsize2 = n2 < 63 ? n2 : 63;
274 _STLP_STRNCPY(buf1, 64, s1, bufsize1); buf1[bufsize1] = 0;
275 _STLP_STRNCPY(buf2, 64, s2, bufsize2); buf2[bufsize2] = 0;
276
277 ret = strcmp(buf1, buf2);
278 if (ret != 0) return ret < 0 ? -1 : 1;
279 s1 += bufsize1; n1 -= bufsize1;
280 s2 += bufsize2; n2 -= bufsize2;
281 }
282 return ret == 0 ? 0 : (ret < 0 ? -1 : 1);
283}
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469
#define _STLP_STRNCPY(D, DS, S, C)
struct S1 s1
struct S2 s2
int n2
Definition: dwarfget.c:147
int n1
Definition: dwarfget.c:147
int ret

Referenced by collate_byname< char >::do_compare().

◆ _Locale_strxfrm()

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

Definition at line 307 of file c_locale_dummy.c.

309 {
310 if (dest != 0) {
311 _STLP_STRNCPY(dest, dest_n, src, dest_n - 1); dest[dest_n - 1] = 0;
312 }
313 return src_n;
314}
GLenum src
Definition: glext.h:6340
static char * dest
Definition: rtl.c:135

Referenced by collate_byname< char >::do_transform().

◆ _Locale_t_fmt()

const char * _Locale_t_fmt ( struct _Locale_time ltime)

Definition at line 432 of file c_locale_dummy.c.

433{ return "%H:%M:%S"; }

Referenced by _Init_timeinfo_base().

◆ _Locale_thousands_sep()

char _Locale_thousands_sep ( struct _Locale_numeric lnum)

Definition at line 333 of file c_locale_dummy.c.

334{ return ','; }

Referenced by _Locale_grouping(), _WLocale_thousands_sep(), and numpunct_byname< char >::do_thousands_sep().

◆ _Locale_time_create()

struct _Locale_time * _Locale_time_create ( const char name,
struct _Locale_name_hint hint,
int __err_code 
)

Definition at line 96 of file c_locale_dummy.c.

98{ return (struct _Locale_time*)_Locale_create(name, __err_code); }

Referenced by _Loc_time_create().

◆ _Locale_time_default()

const char * _Locale_time_default ( char __buf)

Definition at line 114 of file c_locale_dummy.c.

114{ return _C_name; }

Referenced by _Loc_time_default(), and _Locale_impl::insert_time_facets().

◆ _Locale_time_destroy()

void _Locale_time_destroy ( struct _Locale_time ltime)

Definition at line 143 of file c_locale_dummy.c.

143{}

Referenced by _Loc_time_destroy(), and _Locale_time_create().

◆ _Locale_time_name()

char const * _Locale_time_name ( const struct _Locale_time ltime,
char __buf 
)

Definition at line 128 of file c_locale_dummy.c.

129{ return _C_name; }

Referenced by _Loc_time_name().

◆ _Locale_tolower()

int _Locale_tolower ( struct _Locale_ctype lctype,
int  c 
)

Definition at line 202 of file c_locale_dummy.c.

203{ return tolower(c); }
int tolower(int c)
Definition: utclib.c:902

Referenced by ctype_byname< char >::do_tolower().

◆ _Locale_toupper()

int _Locale_toupper ( struct _Locale_ctype lctype,
int  c 
)

Definition at line 199 of file c_locale_dummy.c.

200{ return toupper(c); }
int toupper(int c)
Definition: utclib.c:881

Referenced by ctype_byname< char >::do_toupper().

◆ _Locale_true()

const char * _Locale_true ( struct _Locale_numeric lnum)

Definition at line 337 of file c_locale_dummy.c.

338{ return "true"; }

Referenced by _WLocale_true(), and numpunct_byname< char >::do_truename().

◆ _WLocale_abbrev_dayofweek()

const wchar_t * _WLocale_abbrev_dayofweek ( struct _Locale_time ltime,
int  n,
wchar_t buf,
size_t  bufSize 
)

Definition at line 466 of file c_locale_dummy.c.

468{ return abbrev_wdayname[n]; }
static const wchar_t * abbrev_wdayname[]

Referenced by _Init_timeinfo().

◆ _WLocale_abbrev_monthname()

const wchar_t * _WLocale_abbrev_monthname ( struct _Locale_time ltime,
int  n,
wchar_t buf,
size_t  bufSize 
)

Definition at line 454 of file c_locale_dummy.c.

456{ return abbrev_wmonthname[n]; }
static const wchar_t * abbrev_wmonthname[]

Referenced by _Init_timeinfo().

◆ _WLocale_am_str()

const wchar_t * _WLocale_am_str ( struct _Locale_time ltime,
wchar_t buf,
size_t  bufSize 
)

Definition at line 470 of file c_locale_dummy.c.

472{ return L"AM"; }
#define L(x)
Definition: ntvdm.h:50

Referenced by _Init_timeinfo().

◆ _WLocale_ctype()

_Locale_mask_t _WLocale_ctype ( struct _Locale_ctype lctype,
wint_t  wc,
_Locale_mask_t  mask 
)

Definition at line 206 of file c_locale_dummy.c.

206 {
208 if ((mask & _Locale_ALPHA) != 0 && iswalpha(wc))
210
211 if ((mask & _Locale_CNTRL) != 0 && iswcntrl(wc))
213
214 if ((mask & _Locale_DIGIT) != 0 && iswdigit(wc))
216
217 if ((mask & _Locale_PRINT) != 0 && iswprint(wc))
219
220 if ((mask & _Locale_PUNCT) != 0 && iswpunct(wc))
222
223 if ((mask & _Locale_SPACE) != 0 && iswspace(wc))
225
226 if ((mask & _Locale_XDIGIT) != 0 && iswxdigit(wc))
228
229 if ((mask & _Locale_UPPER) != 0 && iswupper(wc))
231
232 if ((mask & _Locale_LOWER) != 0 && iswlower(wc))
234
235 return ret;
236}
GLenum GLint GLuint mask
Definition: glext.h:6028
#define iswcntrl(_c)
Definition: ctype.h:674
#define iswspace(_c)
Definition: ctype.h:669
#define iswupper(_c)
Definition: ctype.h:665
#define iswdigit(_c)
Definition: ctype.h:667
#define iswlower(_c)
Definition: ctype.h:666
#define iswprint(_c)
Definition: ctype.h:672
#define iswxdigit(_c)
Definition: ctype.h:668
#define iswpunct(_c)
Definition: ctype.h:670
#define iswalpha(_c)
Definition: ctype.h:664

Referenced by ctype_byname< wchar_t >::do_is(), and _Ctype_byname_w_is_mask::operator()().

◆ _WLocale_currency_symbol()

const wchar_t * _WLocale_currency_symbol ( struct _Locale_monetary lmon,
wchar_t buf,
size_t  bufSize 
)

Definition at line 390 of file c_locale_dummy.c.

392{ return _empty_wstr; }
static const wchar_t * _empty_wstr

Referenced by moneypunct_byname< wchar_t, false >::do_curr_symbol().

◆ _WLocale_decimal_point()

wchar_t _WLocale_decimal_point ( struct _Locale_numeric lnum)

Definition at line 343 of file c_locale_dummy.c.

344{ return L'.'; }

Referenced by numpunct_byname< wchar_t >::do_decimal_point().

◆ _WLocale_false()

const wchar_t * _WLocale_false ( struct _Locale_numeric lnum,
wchar_t buf,
size_t  bufSize 
)

Definition at line 349 of file c_locale_dummy.c.

350{ return L"false"; }

Referenced by numpunct_byname< wchar_t >::do_falsename().

◆ _WLocale_full_dayofweek()

const wchar_t * _WLocale_full_dayofweek ( struct _Locale_time ltime,
int  n,
wchar_t buf,
size_t  bufSize 
)

Definition at line 460 of file c_locale_dummy.c.

462{ return full_wdayname[n]; }
static const wchar_t * full_wdayname[]

Referenced by _Init_timeinfo().

◆ _WLocale_full_monthname()

const wchar_t * _WLocale_full_monthname ( struct _Locale_time ltime,
int  n,
wchar_t buf,
size_t  bufSize 
)

Definition at line 447 of file c_locale_dummy.c.

449{ return full_wmonthname[n]; }
static const wchar_t * full_wmonthname[]

Referenced by _Init_timeinfo().

◆ _WLocale_int_curr_symbol()

const wchar_t * _WLocale_int_curr_symbol ( struct _Locale_monetary lmon,
wchar_t buf,
size_t  bufSize 
)

Definition at line 387 of file c_locale_dummy.c.

389{ return _empty_wstr; }

Referenced by moneypunct_byname< wchar_t, true >::do_curr_symbol().

◆ _WLocale_is_stateless()

int _WLocale_is_stateless ( struct _Locale_codecvt lcodecvt)

Definition at line 246 of file c_locale_dummy.c.

246{ return 1; }

Referenced by codecvt_byname< wchar_t, char, mbstate_t >::do_encoding().

◆ _WLocale_mb_cur_max()

int _WLocale_mb_cur_max ( struct _Locale_codecvt lcodecvt)

◆ _WLocale_mb_cur_min()

int _WLocale_mb_cur_min ( struct _Locale_codecvt lcodecvt)

Definition at line 245 of file c_locale_dummy.c.

245{ return 1; }

Referenced by codecvt_byname< wchar_t, char, mbstate_t >::do_encoding().

◆ _WLocale_mbtowc()

size_t _WLocale_mbtowc ( struct _Locale_codecvt lcodecvt,
wchar_t to,
const char from,
size_t  n,
mbstate_t st 
)

Definition at line 248 of file c_locale_dummy.c.

252{ *to = *from; return 1; }
CardRegion * from
Definition: spigame.cpp:19

Referenced by codecvt_byname< wchar_t, char, mbstate_t >::do_in(), and codecvt_byname< wchar_t, char, mbstate_t >::do_length().

◆ _WLocale_mon_decimal_point()

wchar_t _WLocale_mon_decimal_point ( struct _Locale_monetary lmon)

Definition at line 393 of file c_locale_dummy.c.

394{ return L'.'; }

◆ _WLocale_mon_thousands_sep()

wchar_t _WLocale_mon_thousands_sep ( struct _Locale_monetary lmon)

Definition at line 395 of file c_locale_dummy.c.

396{ return L','; }

◆ _WLocale_negative_sign()

const wchar_t * _WLocale_negative_sign ( struct _Locale_monetary lmon,
wchar_t buf,
size_t  bufSize 
)

◆ _WLocale_pm_str()

const wchar_t * _WLocale_pm_str ( struct _Locale_time ltime,
wchar_t buf,
size_t  bufSize 
)

Definition at line 473 of file c_locale_dummy.c.

475{ return L"PM"; }

Referenced by _Init_timeinfo().

◆ _WLocale_positive_sign()

const wchar_t * _WLocale_positive_sign ( struct _Locale_monetary lmon,
wchar_t buf,
size_t  bufSize 
)

◆ _WLocale_strcmp()

int _WLocale_strcmp ( struct _Locale_collate lcol,
const wchar_t s1,
size_t  n1,
const wchar_t s2,
size_t  n2 
)

Definition at line 287 of file c_locale_dummy.c.

288 {
289 int ret = 0;
290 wchar_t buf1[64], buf2[64];
291 while (n1 > 0 || n2 > 0) {
292 size_t bufsize1 = n1 < 63 ? n1 : 63;
293 size_t bufsize2 = n2 < 63 ? n2 : 63;
294 _STLP_WCSNCPY(buf1, 64, s1, bufsize1); buf1[bufsize1] = 0;
295 _STLP_WCSNCPY(buf2, 64, s2, bufsize2); buf2[bufsize2] = 0;
296
297 ret = wcscmp(buf1, buf2);
298 if (ret != 0) return ret < 0 ? -1 : 1;
299 s1 += bufsize1; n1 -= bufsize1;
300 s2 += bufsize2; n2 -= bufsize2;
301 }
302 return ret == 0 ? 0 : (ret < 0 ? -1 : 1);
303}
#define _STLP_WCSNCPY(D, DS, S, C)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)

Referenced by collate_byname< wchar_t >::do_compare().

◆ _WLocale_strxfrm()

size_t _WLocale_strxfrm ( struct _Locale_collate lcol,
wchar_t dest,
size_t  dest_n,
const wchar_t src,
size_t  src_n 
)

Definition at line 318 of file c_locale_dummy.c.

320 {
321 if (dest != 0) {
322 _STLP_WCSNCPY(dest, dest_n, src, dest_n - 1); dest[dest_n - 1] = 0;
323 }
324 return src_n;
325}

Referenced by collate_byname< wchar_t >::do_transform().

◆ _WLocale_thousands_sep()

wchar_t _WLocale_thousands_sep ( struct _Locale_numeric lnum)

Definition at line 345 of file c_locale_dummy.c.

346{ return L','; }

Referenced by numpunct_byname< wchar_t >::do_thousands_sep().

◆ _WLocale_tolower()

wint_t _WLocale_tolower ( struct _Locale_ctype lctype,
wint_t  wc 
)

Definition at line 238 of file c_locale_dummy.c.

239{ return towlower(wc); }
#define towlower(c)
Definition: wctype.h:97

Referenced by ctype_byname< wchar_t >::do_tolower().

◆ _WLocale_toupper()

wint_t _WLocale_toupper ( struct _Locale_ctype lctype,
wint_t  wc 
)

Definition at line 241 of file c_locale_dummy.c.

242{ return towupper(wc); }
#define towupper(c)
Definition: wctype.h:99

Referenced by ctype_byname< wchar_t >::do_toupper().

◆ _WLocale_true()

const wchar_t * _WLocale_true ( struct _Locale_numeric lnum,
wchar_t buf,
size_t  bufSize 
)

Definition at line 347 of file c_locale_dummy.c.

348{ return L"true"; }

Referenced by numpunct_byname< wchar_t >::do_truename().

◆ _WLocale_unshift()

size_t _WLocale_unshift ( struct _Locale_codecvt lcodecvt,
mbstate_t st,
char buf,
size_t  n,
char **  next 
)

Definition at line 260 of file c_locale_dummy.c.

263{ *next = buf; return 0; }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
static unsigned __int64 next
Definition: rand_nt.c:6

Referenced by codecvt_byname< wchar_t, char, mbstate_t >::do_unshift().

◆ _WLocale_wctomb()

size_t _WLocale_wctomb ( struct _Locale_codecvt lcodecvt,
char to,
size_t  n,
const wchar_t  c,
mbstate_t st 
)

Definition at line 254 of file c_locale_dummy.c.

258{ *to = (char)c; return 1; }

Referenced by codecvt_byname< wchar_t, char, mbstate_t >::do_out().