32#if defined (_STLP_USE_SAFE_STRING_FUNCTIONS)
33# define _STLP_STRNCPY(D, DS, S, C) strncpy_s(D, DS, S, C)
34# if !defined (_STLP_NO_WCHAR_T)
35# define _STLP_WCSNCPY(D, DS, S, C) wcsncpy_s(D, DS, S, C)
38# define _STLP_STRNCPY(D, DS, S, C) strncpy(D, S, C)
39# if !defined (_STLP_NO_WCHAR_T)
40# define _STLP_WCSNCPY(D, DS, S, C) wcsncpy(D, S, C)
46#ifndef _STLP_NO_WCHAR_T
80 {
return (
void*)0x1; }
205#ifndef _STLP_NO_WCHAR_T
250 const char *
from,
size_t n,
252{ *to = *
from;
return 1; }
258{ *to = (
char)
c;
return 1; }
268 const char*
s1,
size_t n1,
const char*
s2,
size_t n2) {
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;
278 if (
ret != 0)
return ret < 0 ? -1 : 1;
279 s1 += bufsize1;
n1 -= bufsize1;
280 s2 += bufsize2;
n2 -= bufsize2;
282 return ret == 0 ? 0 : (
ret < 0 ? -1 : 1);
285#ifndef _STLP_NO_WCHAR_T
288 const wchar_t*
s1,
size_t n1,
const wchar_t*
s2,
size_t n2) {
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;
298 if (
ret != 0)
return ret < 0 ? -1 : 1;
299 s1 += bufsize1;
n1 -= bufsize1;
300 s2 += bufsize2;
n2 -= bufsize2;
302 return ret == 0 ? 0 : (
ret < 0 ? -1 : 1);
308 char*
dest,
size_t dest_n,
309 const char*
src,
size_t src_n) {
316#ifndef _STLP_NO_WCHAR_T
319 wchar_t*
dest,
size_t dest_n,
320 const wchar_t*
src,
size_t src_n) {
342#ifndef _STLP_NO_WCHAR_T
386#ifndef _STLP_NO_WCHAR_T
407{
"January",
"February",
"March",
"April",
"May",
"June",
408 "July",
"August",
"September",
"October",
"November",
"December" };
413{
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
414 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec" };
419{
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday" };
424{
"Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat" };
429{
return "%m/%d/%y"; }
431{
return "%m/%d/%y"; }
433{
return "%H:%M:%S"; }
443#ifndef _STLP_NO_WCHAR_T
445{
L"January",
L"February",
L"March",
L"April",
L"May",
L"June",
446 L"July",
L"August",
L"September",
L"October",
L"November",
L"December" };
452{
L"Jan",
L"Feb",
L"Mar",
L"Apr",
L"May",
L"Jun",
453 L"Jul",
L"Aug",
L"Sep",
L"Oct",
L"Nov",
L"Dec" };
459{
L"Sunday",
L"Monday",
L"Tuesday",
L"Wednesday",
L"Thursday",
L"Friday",
L"Saturday" };
465{
L"Sun",
L"Mon",
L"Tue",
L"Wed",
L"Thu",
L"Fri",
L"Sat" };
484 int setid,
int msgid,
const char *dfault)
#define _STLP_MARK_PARAMETER_AS_UNUSED(X)
int strcmp(const char *String1, const char *String2)
const wchar_t * _WLocale_abbrev_monthname(struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
const char * _Locale_positive_sign(struct _Locale_monetary *lmon)
char _Locale_mon_thousands_sep(struct _Locale_monetary *lmon)
struct _Locale_name_hint * _Locale_get_collate_hint(struct _Locale_collate *collate)
static const char * abbrev_dayname[]
int _Locale_toupper(struct _Locale_ctype *lctype, int c)
char const * _Locale_extract_messages_name(const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
static const char * abbrev_monthname[]
const char * _Locale_pm_str(struct _Locale_time *ltime)
const wchar_t * _WLocale_currency_symbol(struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
static const wchar_t * _empty_wstr
const char * _Locale_am_str(struct _Locale_time *ltime)
const char * _Locale_full_dayofweek(struct _Locale_time *ltime, int n)
char const * _Locale_monetary_name(const struct _Locale_monetary *lmon, char *buf)
const char * _Locale_abbrev_monthname(struct _Locale_time *ltime, int n)
#define _STLP_WCSNCPY(D, DS, S, C)
void _Locale_catclose(struct _Locale_messages *lmes, nl_catd_type cat)
struct _Locale_monetary * _Locale_monetary_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
void * _Locale_create(const char *name, int *__err_code)
const wchar_t * _WLocale_full_monthname(struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
struct _Locale_name_hint * _Locale_get_ctype_hint(struct _Locale_ctype *ctype)
char _Locale_decimal_point(struct _Locale_numeric *lnum)
char const * _Locale_extract_monetary_name(const char *name, char *buf, 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)
int _Locale_n_sign_posn(struct _Locale_monetary *lmon)
const wchar_t * _WLocale_false(struct _Locale_numeric *lnum, wchar_t *buf, size_t bufSize)
void _Locale_codecvt_destroy(struct _Locale_codecvt *lcodecvt)
struct _Locale_name_hint * _Locale_get_numeric_hint(struct _Locale_numeric *numeric)
struct _Locale_numeric * _Locale_numeric_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
char const * _Locale_ctype_name(const struct _Locale_ctype *lctype, char *buf)
static const wchar_t * abbrev_wdayname[]
static const char * _empty_str
const char * _Locale_false(struct _Locale_numeric *lnum)
void _Locale_time_destroy(struct _Locale_time *ltime)
int _WLocale_mb_cur_max(struct _Locale_codecvt *lcodecvt)
#define _STLP_STRNCPY(D, DS, S, C)
struct _Locale_name_hint * _Locale_get_messages_hint(struct _Locale_messages *messages)
const wchar_t * _WLocale_pm_str(struct _Locale_time *ltime, wchar_t *buf, size_t bufSize)
int _Locale_strcmp(struct _Locale_collate *lcol, const char *s1, size_t n1, const char *s2, size_t n2)
const wchar_t * _WLocale_negative_sign(struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
int _Locale_p_cs_precedes(struct _Locale_monetary *lmon)
const char * _Locale_long_d_t_fmt(struct _Locale_time *ltime)
struct _Locale_name_hint * _Locale_get_time_hint(struct _Locale_time *time)
int _Locale_p_sign_posn(struct _Locale_monetary *lmon)
char const * _Locale_collate_name(const struct _Locale_collate *lcol, char *buf)
int _WLocale_strcmp(struct _Locale_collate *lcol, const wchar_t *s1, size_t n1, const wchar_t *s2, size_t n2)
const char * _Locale_abbrev_dayofweek(struct _Locale_time *ltime, int n)
char const * _Locale_extract_ctype_name(const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
const wchar_t * _WLocale_abbrev_dayofweek(struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
const char * _Locale_time_default(char *buf)
const char * _Locale_t_fmt(struct _Locale_time *ltime)
void _Locale_numeric_destroy(struct _Locale_numeric *lnum)
const wchar_t * _WLocale_full_dayofweek(struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
char _Locale_frac_digits(struct _Locale_monetary *lmon)
const char * _Locale_int_curr_symbol(struct _Locale_monetary *lmon)
const char * _Locale_d_t_fmt(struct _Locale_time *ltime)
const char * _Locale_mon_grouping(struct _Locale_monetary *lmon)
static const wchar_t * full_wmonthname[]
static const char * full_monthname[]
static const wchar_t * abbrev_wmonthname[]
const char * _Locale_catgets(struct _Locale_messages *lmes, nl_catd_type cat, int setid, int msgid, const char *dfault)
const char * _Locale_ctype_default(char *buf)
const char * _Locale_long_d_fmt(struct _Locale_time *ltime)
size_t _WLocale_unshift(struct _Locale_codecvt *lcodecvt, mbstate_t *st, char *buf, size_t n, char **next)
const char * _Locale_numeric_default(char *buf)
wchar_t _WLocale_thousands_sep(struct _Locale_numeric *lnum)
void _Locale_monetary_destroy(struct _Locale_monetary *lmon)
static const wchar_t * full_wdayname[]
const char * _Locale_monetary_default(char *buf)
const _Locale_mask_t * _Locale_ctype_table(struct _Locale_ctype *lctype)
int _Locale_tolower(struct _Locale_ctype *lctype, int c)
wint_t _WLocale_tolower(struct _Locale_ctype *lctype, wint_t wc)
size_t _WLocale_strxfrm(struct _Locale_collate *lcol, wchar_t *dest, size_t dest_n, const wchar_t *src, size_t src_n)
char const * _Locale_time_name(const struct _Locale_time *ltime, char *buf)
void _Locale_messages_destroy(struct _Locale_messages *lmes)
const char * _Locale_d_fmt(struct _Locale_time *ltime)
char _Locale_int_frac_digits(struct _Locale_monetary *lmon)
int _Locale_p_sep_by_space(struct _Locale_monetary *lmon)
const char * _Locale_negative_sign(struct _Locale_monetary *lmon)
static char const * _Locale_extract_name(const char *name, int *__err_code)
static _Locale_mask_t ctable[256]
int _Locale_n_sep_by_space(struct _Locale_monetary *lmon)
const char * _Locale_messages_default(char *buf)
size_t _Locale_strxfrm(struct _Locale_collate *lcol, char *dest, size_t dest_n, const char *src, size_t src_n)
struct _Locale_name_hint * _Locale_get_monetary_hint(struct _Locale_monetary *monetary)
char _Locale_mon_decimal_point(struct _Locale_monetary *lmon)
static const char * full_dayname[]
char const * _Locale_extract_collate_name(const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
int _Locale_n_cs_precedes(struct _Locale_monetary *lmon)
struct _Locale_messages * _Locale_messages_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
size_t _WLocale_mbtowc(struct _Locale_codecvt *lcodecvt, wchar_t *to, const char *from, size_t n, mbstate_t *st)
struct _Locale_collate * _Locale_collate_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
wchar_t _WLocale_mon_thousands_sep(struct _Locale_monetary *lmon)
char const * _Locale_extract_numeric_name(const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
char _Locale_thousands_sep(struct _Locale_numeric *lnum)
const wchar_t * _WLocale_am_str(struct _Locale_time *ltime, wchar_t *buf, size_t bufSize)
const char * _Locale_true(struct _Locale_numeric *lnum)
void _Locale_collate_destroy(struct _Locale_collate *lcol)
const char * _Locale_full_monthname(struct _Locale_time *ltime, int n)
struct _Locale_ctype * _Locale_ctype_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
char const * _Locale_codecvt_name(const struct _Locale_codecvt *lcodecvt, char *buf)
const char * _Locale_grouping(struct _Locale_numeric *lnum)
const wchar_t * _WLocale_positive_sign(struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
static const char * _C_name
int _WLocale_mb_cur_min(struct _Locale_codecvt *lcodecvt)
wchar_t _WLocale_decimal_point(struct _Locale_numeric *lnum)
const wchar_t * _WLocale_true(struct _Locale_numeric *lnum, wchar_t *buf, size_t bufSize)
wchar_t _WLocale_mon_decimal_point(struct _Locale_monetary *lmon)
_Locale_mask_t _WLocale_ctype(struct _Locale_ctype *lctype, wint_t wc, _Locale_mask_t mask)
char const * _Locale_messages_name(const struct _Locale_messages *lmes, char *buf)
wint_t _WLocale_toupper(struct _Locale_ctype *lctype, wint_t wc)
size_t _WLocale_wctomb(struct _Locale_codecvt *lcodecvt, char *to, size_t n, const wchar_t c, mbstate_t *st)
struct _Locale_codecvt * _Locale_codecvt_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
const char * _Locale_collate_default(char *buf)
void _Locale_ctype_destroy(struct _Locale_ctype *lctype)
nl_catd_type _Locale_catopen(struct _Locale_messages *lmes, const char *name)
char const * _Locale_numeric_name(const struct _Locale_numeric *lnum, char *buf)
const wchar_t * _WLocale_int_curr_symbol(struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
const char * _Locale_currency_symbol(struct _Locale_monetary *lmon)
int _WLocale_is_stateless(struct _Locale_codecvt *lcodecvt)
char const * _Locale_extract_time_name(const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
GLenum GLuint GLenum GLsizei const GLchar * buf
_Check_return_ _CRTIMP int __cdecl ispunct(_In_ int _C)
_Check_return_ _CRTIMP int __cdecl iscntrl(_In_ int _C)
unsigned short int _Locale_mask_t
#define _STLP_LOC_NO_PLATFORM_SUPPORT
static unsigned __int64 next
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)