ReactOS 0.4.15-dev-7942-gd23573b
c_locale_dummy.c File Reference
#include <string.h>
#include <wchar.h>
#include <ctype.h>
#include <wctype.h>
#include <limits.h>
Include dependency graph for c_locale_dummy.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _STLP_STRNCPY(D, DS, S, C)   strncpy(D, S, C)
 
#define _STLP_WCSNCPY(D, DS, S, C)   wcsncpy(D, S, C)
 

Functions

void _Locale_init (void)
 
void _Locale_final (void)
 
void_Locale_create (const char *name, int *__err_code)
 
struct _Locale_ctype_Locale_ctype_create (const char *name, struct _Locale_name_hint *hint, int *__err_code)
 
struct _Locale_codecvt_Locale_codecvt_create (const char *name, struct _Locale_name_hint *hint, int *__err_code)
 
struct _Locale_numeric_Locale_numeric_create (const char *name, struct _Locale_name_hint *hint, int *__err_code)
 
struct _Locale_time_Locale_time_create (const char *name, struct _Locale_name_hint *hint, int *__err_code)
 
struct _Locale_collate_Locale_collate_create (const char *name, struct _Locale_name_hint *hint, int *__err_code)
 
struct _Locale_monetary_Locale_monetary_create (const char *name, struct _Locale_name_hint *hint, int *__err_code)
 
struct _Locale_messages * _Locale_messages_create (const char *name, struct _Locale_name_hint *hint, int *__err_code)
 
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 *lctype, char *buf)
 
char const_Locale_codecvt_name (const struct _Locale_codecvt *lcodecvt, char *buf)
 
char const_Locale_numeric_name (const struct _Locale_numeric *lnum, char *buf)
 
char const_Locale_time_name (const struct _Locale_time *ltime, char *buf)
 
char const_Locale_collate_name (const struct _Locale_collate *lcol, char *buf)
 
char const_Locale_monetary_name (const struct _Locale_monetary *lmon, char *buf)
 
char const_Locale_messages_name (const struct _Locale_messages *lmes, char *buf)
 
void _Locale_ctype_destroy (struct _Locale_ctype *lctype)
 
void _Locale_codecvt_destroy (struct _Locale_codecvt *lcodecvt)
 
void _Locale_numeric_destroy (struct _Locale_numeric *lnum)
 
void _Locale_time_destroy (struct _Locale_time *ltime)
 
void _Locale_collate_destroy (struct _Locale_collate *lcol)
 
void _Locale_monetary_destroy (struct _Locale_monetary *lmon)
 
void _Locale_messages_destroy (struct _Locale_messages *lmes)
 
static char const_Locale_extract_name (const char *name, int *__err_code)
 
char const_Locale_extract_ctype_name (const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
 
char const_Locale_extract_numeric_name (const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
 
char const_Locale_extract_time_name (const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
 
char const_Locale_extract_collate_name (const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
 
char const_Locale_extract_monetary_name (const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
 
char const_Locale_extract_messages_name (const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
 
struct _Locale_name_hint_Locale_get_ctype_hint (struct _Locale_ctype *ctype)
 
struct _Locale_name_hint_Locale_get_numeric_hint (struct _Locale_numeric *numeric)
 
struct _Locale_name_hint_Locale_get_time_hint (struct _Locale_time *time)
 
struct _Locale_name_hint_Locale_get_collate_hint (struct _Locale_collate *collate)
 
struct _Locale_name_hint_Locale_get_monetary_hint (struct _Locale_monetary *monetary)
 
struct _Locale_name_hint_Locale_get_messages_hint (struct _Locale_messages *messages)
 
const _Locale_mask_t_Locale_ctype_table (struct _Locale_ctype *lctype)
 
int _Locale_toupper (struct _Locale_ctype *lctype, int c)
 
int _Locale_tolower (struct _Locale_ctype *lctype, int c)
 
_Locale_mask_t _WLocale_ctype (struct _Locale_ctype *lctype, wint_t wc, _Locale_mask_t mask)
 
wint_t _WLocale_tolower (struct _Locale_ctype *lctype, wint_t wc)
 
wint_t _WLocale_toupper (struct _Locale_ctype *lctype, wint_t wc)
 
int _WLocale_mb_cur_max (struct _Locale_codecvt *lcodecvt)
 
int _WLocale_mb_cur_min (struct _Locale_codecvt *lcodecvt)
 
int _WLocale_is_stateless (struct _Locale_codecvt *lcodecvt)
 
size_t _WLocale_mbtowc (struct _Locale_codecvt *lcodecvt, wchar_t *to, const char *from, size_t n, mbstate_t *st)
 
size_t _WLocale_wctomb (struct _Locale_codecvt *lcodecvt, char *to, size_t n, const wchar_t c, mbstate_t *st)
 
size_t _WLocale_unshift (struct _Locale_codecvt *lcodecvt, mbstate_t *st, char *buf, size_t n, char **next)
 
int _Locale_strcmp (struct _Locale_collate *lcol, const char *s1, size_t n1, const char *s2, size_t n2)
 
int _WLocale_strcmp (struct _Locale_collate *lcol, const wchar_t *s1, size_t n1, const wchar_t *s2, size_t n2)
 
size_t _Locale_strxfrm (struct _Locale_collate *lcol, char *dest, size_t dest_n, const char *src, size_t src_n)
 
size_t _WLocale_strxfrm (struct _Locale_collate *lcol, wchar_t *dest, size_t dest_n, const wchar_t *src, size_t src_n)
 
char _Locale_decimal_point (struct _Locale_numeric *lnum)
 
char _Locale_thousands_sep (struct _Locale_numeric *lnum)
 
const char_Locale_grouping (struct _Locale_numeric *lnum)
 
const char_Locale_true (struct _Locale_numeric *lnum)
 
const char_Locale_false (struct _Locale_numeric *lnum)
 
wchar_t _WLocale_decimal_point (struct _Locale_numeric *lnum)
 
wchar_t _WLocale_thousands_sep (struct _Locale_numeric *lnum)
 
const wchar_t_WLocale_true (struct _Locale_numeric *lnum, wchar_t *buf, size_t bufSize)
 
const wchar_t_WLocale_false (struct _Locale_numeric *lnum, wchar_t *buf, size_t bufSize)
 
const char_Locale_int_curr_symbol (struct _Locale_monetary *lmon)
 
const char_Locale_currency_symbol (struct _Locale_monetary *lmon)
 
char _Locale_mon_decimal_point (struct _Locale_monetary *lmon)
 
char _Locale_mon_thousands_sep (struct _Locale_monetary *lmon)
 
const char_Locale_mon_grouping (struct _Locale_monetary *lmon)
 
const char_Locale_positive_sign (struct _Locale_monetary *lmon)
 
const char_Locale_negative_sign (struct _Locale_monetary *lmon)
 
char _Locale_int_frac_digits (struct _Locale_monetary *lmon)
 
char _Locale_frac_digits (struct _Locale_monetary *lmon)
 
int _Locale_p_cs_precedes (struct _Locale_monetary *lmon)
 
int _Locale_p_sep_by_space (struct _Locale_monetary *lmon)
 
int _Locale_p_sign_posn (struct _Locale_monetary *lmon)
 
int _Locale_n_cs_precedes (struct _Locale_monetary *lmon)
 
int _Locale_n_sep_by_space (struct _Locale_monetary *lmon)
 
int _Locale_n_sign_posn (struct _Locale_monetary *lmon)
 
const wchar_t_WLocale_int_curr_symbol (struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
 
const wchar_t_WLocale_currency_symbol (struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
 
wchar_t _WLocale_mon_decimal_point (struct _Locale_monetary *lmon)
 
wchar_t _WLocale_mon_thousands_sep (struct _Locale_monetary *lmon)
 
const wchar_t_WLocale_positive_sign (struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
 
const wchar_t_WLocale_negative_sign (struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
 
const char_Locale_full_monthname (struct _Locale_time *ltime, int n)
 
const char_Locale_abbrev_monthname (struct _Locale_time *ltime, int n)
 
const char_Locale_full_dayofweek (struct _Locale_time *ltime, int n)
 
const char_Locale_abbrev_dayofweek (struct _Locale_time *ltime, int n)
 
const char_Locale_d_t_fmt (struct _Locale_time *ltime)
 
const char_Locale_d_fmt (struct _Locale_time *ltime)
 
const char_Locale_t_fmt (struct _Locale_time *ltime)
 
const char_Locale_long_d_t_fmt (struct _Locale_time *ltime)
 
const char_Locale_long_d_fmt (struct _Locale_time *ltime)
 
const char_Locale_am_str (struct _Locale_time *ltime)
 
const char_Locale_pm_str (struct _Locale_time *ltime)
 
const wchar_t_WLocale_full_monthname (struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
 
const wchar_t_WLocale_abbrev_monthname (struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
 
const wchar_t_WLocale_full_dayofweek (struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
 
const wchar_t_WLocale_abbrev_dayofweek (struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
 
const wchar_t_WLocale_am_str (struct _Locale_time *ltime, wchar_t *buf, size_t bufSize)
 
const wchar_t_WLocale_pm_str (struct _Locale_time *ltime, wchar_t *buf, size_t bufSize)
 
nl_catd_type _Locale_catopen (struct _Locale_messages *lmes, const char *name)
 
void _Locale_catclose (struct _Locale_messages *lmes, nl_catd_type cat)
 
const char_Locale_catgets (struct _Locale_messages *lmes, nl_catd_type cat, int setid, int msgid, const char *dfault)
 

Variables

static const char_C_name = "C"
 
static const char_empty_str = ""
 
static const wchar_t_empty_wstr = L""
 
static _Locale_mask_t ctable [256]
 
static const charfull_monthname []
 
static const charabbrev_monthname []
 
static const charfull_dayname []
 
static const charabbrev_dayname []
 
static const wchar_tfull_wmonthname []
 
static const wchar_tabbrev_wmonthname []
 
static const wchar_tfull_wdayname []
 
static const wchar_tabbrev_wdayname []
 

Macro Definition Documentation

◆ _STLP_STRNCPY

#define _STLP_STRNCPY (   D,
  DS,
  S,
  C 
)    strncpy(D, S, C)

Definition at line 38 of file c_locale_dummy.c.

◆ _STLP_WCSNCPY

#define _STLP_WCSNCPY (   D,
  DS,
  S,
  C 
)    wcsncpy(D, S, C)

Definition at line 40 of file c_locale_dummy.c.

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

◆ _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[]

◆ _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"; }

◆ _Locale_catclose()

void _Locale_catclose ( struct _Locale_messages *  lmes,
nl_catd_type  cat 
)

Definition at line 482 of file c_locale_dummy.c.

482{}

◆ _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; }

◆ _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; }

◆ _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

◆ _Locale_codecvt_destroy()

void _Locale_codecvt_destroy ( struct _Locale_codecvt lcodecvt)

Definition at line 141 of file c_locale_dummy.c.

141{}

◆ _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

◆ _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); }

◆ _Locale_collate_default()

const char * _Locale_collate_default ( char buf)

Definition at line 115 of file c_locale_dummy.c.

115{ return _C_name; }

◆ _Locale_collate_destroy()

void _Locale_collate_destroy ( struct _Locale_collate lcol)

Definition at line 144 of file c_locale_dummy.c.

144{}

◆ _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; }

◆ _Locale_create()

void * _Locale_create ( const char name,
int __err_code 
)

Definition at line 78 of file c_locale_dummy.c.

78 {
79 if (name[0] == 'C' && name[1] == 0)
80 { return (void*)0x1; }
81 *__err_code = _STLP_LOC_NO_PLATFORM_SUPPORT; return 0;
82}
#define _STLP_LOC_NO_PLATFORM_SUPPORT
Definition: c_locale.h:102

Referenced by _Locale_codecvt_create(), _Locale_collate_create(), _Locale_ctype_create(), _Locale_messages_create(), _Locale_monetary_create(), _Locale_numeric_create(), and _Locale_time_create().

◆ _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); }

◆ _Locale_ctype_default()

const char * _Locale_ctype_default ( char buf)

Definition at line 112 of file c_locale_dummy.c.

112{ return _C_name; }

◆ _Locale_ctype_destroy()

void _Locale_ctype_destroy ( struct _Locale_ctype lctype)

Definition at line 140 of file c_locale_dummy.c.

140{}

◆ _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; }

◆ _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]

◆ _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

◆ _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"; }

◆ _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"; }

◆ _Locale_decimal_point()

char _Locale_decimal_point ( struct _Locale_numeric lnum)

Definition at line 331 of file c_locale_dummy.c.

332{ return '.'; }

◆ _Locale_extract_collate_name()

char const * _Locale_extract_collate_name ( const char name,
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)

◆ _Locale_extract_ctype_name()

char const * _Locale_extract_ctype_name ( const char name,
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); }

◆ _Locale_extract_messages_name()

char const * _Locale_extract_messages_name ( const char name,
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); }

◆ _Locale_extract_monetary_name()

char const * _Locale_extract_monetary_name ( const char name,
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); }

◆ _Locale_extract_name()

static char const * _Locale_extract_name ( const char name,
int __err_code 
)
static

Definition at line 148 of file c_locale_dummy.c.

148 {
149 // When the request is the default locale or the "C" locale we answer "C".
150 if (name[0] == 0 ||
151 (name[0] == 'C' && name[1] == 0))
152 { return _C_name; }
153 *__err_code = _STLP_LOC_NO_PLATFORM_SUPPORT; return 0;
154}

Referenced by _Locale_extract_collate_name(), _Locale_extract_ctype_name(), _Locale_extract_messages_name(), _Locale_extract_monetary_name(), _Locale_extract_numeric_name(), and _Locale_extract_time_name().

◆ _Locale_extract_numeric_name()

char const * _Locale_extract_numeric_name ( const char name,
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); }

◆ _Locale_extract_time_name()

char const * _Locale_extract_time_name ( const char name,
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); }

◆ _Locale_false()

const char * _Locale_false ( struct _Locale_numeric lnum)

Definition at line 339 of file c_locale_dummy.c.

340{ return "false"; }

◆ _Locale_final()

void _Locale_final ( void  )

Definition at line 75 of file c_locale_dummy.c.

76{}

◆ _Locale_frac_digits()

char _Locale_frac_digits ( struct _Locale_monetary lmon)

Definition at line 371 of file c_locale_dummy.c.

372{ return 0; }

◆ _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[]

◆ _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[]

◆ _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; }

◆ _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; }

◆ _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; }

◆ _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; }

◆ _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; }

◆ _Locale_grouping()

const char * _Locale_grouping ( struct _Locale_numeric lnum)

Definition at line 335 of file c_locale_dummy.c.

336{ return _empty_str; }

◆ _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

◆ _Locale_int_curr_symbol()

const char * _Locale_int_curr_symbol ( struct _Locale_monetary lmon)

Definition at line 355 of file c_locale_dummy.c.

356{ return _empty_str; }

◆ _Locale_int_frac_digits()

char _Locale_int_frac_digits ( struct _Locale_monetary lmon)

Definition at line 369 of file c_locale_dummy.c.

370{ return 0; }

◆ _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; }

◆ _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; }

◆ _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); }

◆ _Locale_messages_default()

const char * _Locale_messages_default ( char buf)

Definition at line 117 of file c_locale_dummy.c.

117{ return _C_name; }

◆ _Locale_messages_destroy()

void _Locale_messages_destroy ( struct _Locale_messages *  lmes)

Definition at line 146 of file c_locale_dummy.c.

146{}

◆ _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; }

◆ _Locale_mon_decimal_point()

char _Locale_mon_decimal_point ( struct _Locale_monetary lmon)

Definition at line 359 of file c_locale_dummy.c.

360{ return '.'; }

◆ _Locale_mon_grouping()

const char * _Locale_mon_grouping ( struct _Locale_monetary lmon)

Definition at line 363 of file c_locale_dummy.c.

364{ return _empty_str; }

◆ _Locale_mon_thousands_sep()

char _Locale_mon_thousands_sep ( struct _Locale_monetary lmon)

Definition at line 361 of file c_locale_dummy.c.

362{ return ','; }

◆ _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); }

◆ _Locale_monetary_default()

const char * _Locale_monetary_default ( char buf)

Definition at line 116 of file c_locale_dummy.c.

116{ return _C_name; }

◆ _Locale_monetary_destroy()

void _Locale_monetary_destroy ( struct _Locale_monetary lmon)

Definition at line 145 of file c_locale_dummy.c.

145{}

◆ _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; }

◆ _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

◆ _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; }

◆ _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; }

◆ _Locale_negative_sign()

const char * _Locale_negative_sign ( struct _Locale_monetary lmon)

Definition at line 367 of file c_locale_dummy.c.

368{ return _empty_str; }

◆ _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); }

◆ _Locale_numeric_default()

const char * _Locale_numeric_default ( char buf)

Definition at line 113 of file c_locale_dummy.c.

113{ return _C_name; }

◆ _Locale_numeric_destroy()

void _Locale_numeric_destroy ( struct _Locale_numeric lnum)

Definition at line 142 of file c_locale_dummy.c.

142{}

◆ _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; }

◆ _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; }

◆ _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; }

◆ _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; }

◆ _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"; }

◆ _Locale_positive_sign()

const char * _Locale_positive_sign ( struct _Locale_monetary lmon)

Definition at line 365 of file c_locale_dummy.c.

366{ return _empty_str; }

◆ _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

◆ _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

◆ _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"; }

◆ _Locale_thousands_sep()

char _Locale_thousands_sep ( struct _Locale_numeric lnum)

Definition at line 333 of file c_locale_dummy.c.

334{ return ','; }

◆ _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); }

◆ _Locale_time_default()

const char * _Locale_time_default ( char buf)

Definition at line 114 of file c_locale_dummy.c.

114{ return _C_name; }

◆ _Locale_time_destroy()

void _Locale_time_destroy ( struct _Locale_time ltime)

Definition at line 143 of file c_locale_dummy.c.

143{}

◆ _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; }

◆ _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

◆ _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

◆ _Locale_true()

const char * _Locale_true ( struct _Locale_numeric lnum)

Definition at line 337 of file c_locale_dummy.c.

338{ return "true"; }

◆ _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[]

◆ _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[]

◆ _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

◆ _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

◆ _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

◆ _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'.'; }

◆ _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"; }

◆ _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[]

◆ _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[]

◆ _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; }

◆ _WLocale_is_stateless()

int _WLocale_is_stateless ( struct _Locale_codecvt lcodecvt)

Definition at line 246 of file c_locale_dummy.c.

246{ return 1; }

◆ _WLocale_mb_cur_max()

int _WLocale_mb_cur_max ( struct _Locale_codecvt lcodecvt)

Definition at line 244 of file c_locale_dummy.c.

244{ return 1; }

◆ _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; }

◆ _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

◆ _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 
)

Definition at line 400 of file c_locale_dummy.c.

402{ return _empty_wstr; }

◆ _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"; }

◆ _WLocale_positive_sign()

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

Definition at line 397 of file c_locale_dummy.c.

399{ return _empty_wstr; }

◆ _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)

◆ _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}

◆ _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','; }

◆ _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

◆ _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

◆ _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"; }

◆ _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

◆ _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; }

Variable Documentation

◆ _C_name

◆ _empty_str

◆ _empty_wstr

◆ abbrev_dayname

const char* abbrev_dayname[]
static
Initial value:
=
{ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }

Definition at line 423 of file c_locale_dummy.c.

Referenced by _Locale_abbrev_dayofweek().

◆ abbrev_monthname

const char* abbrev_monthname[]
static
Initial value:
=
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }

Definition at line 412 of file c_locale_dummy.c.

Referenced by _Locale_abbrev_monthname().

◆ abbrev_wdayname

const wchar_t* abbrev_wdayname[]
static
Initial value:
=
{ L"Sun", L"Mon", L"Tue", L"Wed", L"Thu", L"Fri", L"Sat" }

Definition at line 464 of file c_locale_dummy.c.

Referenced by _WLocale_abbrev_dayofweek().

◆ abbrev_wmonthname

const wchar_t* abbrev_wmonthname[]
static
Initial value:
=
{ L"Jan", L"Feb", L"Mar", L"Apr", L"May", L"Jun",
L"Jul", L"Aug", L"Sep", L"Oct", L"Nov", L"Dec" }

Definition at line 451 of file c_locale_dummy.c.

Referenced by _WLocale_abbrev_monthname().

◆ ctable

◆ full_dayname

const char* full_dayname[]
static
Initial value:
=
{ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }

Definition at line 418 of file c_locale_dummy.c.

Referenced by _Locale_full_dayofweek().

◆ full_monthname

const char* full_monthname[]
static
Initial value:
=
{ "January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December" }

Definition at line 406 of file c_locale_dummy.c.

Referenced by _Locale_full_monthname().

◆ full_wdayname

const wchar_t* full_wdayname[]
static
Initial value:
=
{ L"Sunday", L"Monday", L"Tuesday", L"Wednesday", L"Thursday", L"Friday", L"Saturday" }

Definition at line 458 of file c_locale_dummy.c.

Referenced by _WLocale_full_dayofweek().

◆ full_wmonthname

const wchar_t* full_wmonthname[]
static
Initial value:
=
{ L"January", L"February", L"March", L"April", L"May", L"June",
L"July", L"August", L"September", L"October", L"November", L"December" }

Definition at line 444 of file c_locale_dummy.c.

Referenced by _WLocale_full_monthname().