16#if defined (_STLP_USE_SAFE_STRING_FUNCTIONS)
17# define _STLP_WCSNCPY(D, DS, S, C) wcsncpy_s(D, DS, S, C)
19# define _STLP_WCSNCPY(D, DS, S, C) wcsncpy(D, S, C)
75 lcodecvt->
cp =
atoi(cp_name);
99 if (!lcodecvt)
return;
116 unsigned char c = (
unsigned char)
i;
137 if (
result == 0)
return -1;
149 if (
result == 0)
return (
size_t)-1;
154 unsigned int count = 1;
159 else if (retval == -1)
160 {
return (
size_t)-1; }
172 if (!
size)
return (
size_t)-1;
173 if ((
size_t)
size >
n)
return (
size_t)-2;
198 const wchar_t*
s1,
size_t n1,
199 const wchar_t*
s2,
size_t n2) {
201 while (
n1 > 0 ||
n2 > 0) {
214 const wchar_t*
s1,
size_t n1,
215 const wchar_t*
s2,
size_t n2) {
222 wchar_t*
dst,
size_t dst_size,
223 const wchar_t*
src,
size_t src_size) {
#define _STLP_MARK_PARAMETER_AS_UNUSED(X)
static _Locale_mask_t ctable[256]
static void my_ltoa(long __x, char *buf)
unsigned short MapCtypeMask(unsigned short mask)
static DWORD trim_size_t_to_DWORD(size_t n)
static int __GetLCIDFromName(const char *lname, LCID *lcid, char *cp, _Locale_lcid_t *hint)
static char const * __GetLocaleName(LCID lcid, const char *cp, char *buf)
struct _Locale_codecvt _Locale_codecvt_t
static int __mbtowc(_Locale_codecvt_t *l, wchar_t *dst, const char *from, unsigned int count)
wchar_t _WLocale_decimal_point(_Locale_numeric_t *lnum)
const wchar_t * _WLocale_negative_sign(_Locale_monetary_t *lmon, wchar_t *buf, size_t bufSize)
static int __isleadbyte(int i, unsigned char *ctable)
#define _STLP_WCSNCPY(D, DS, S, C)
size_t _WLocale_mbtowc(_Locale_codecvt_t *lcodecvt, wchar_t *to, const char *from, size_t n, mbstate_t *shift_state)
const wchar_t * _WLocale_positive_sign(_Locale_monetary_t *lmon, wchar_t *buf, size_t bufSize)
int _WLocale_mb_cur_min(_Locale_codecvt_t *lcodecvt)
void _Locale_codecvt_destroy(_Locale_codecvt_t *lcodecvt)
const wchar_t * _WLocale_full_dayofweek(_Locale_time_t *ltime, int day, wchar_t *buf, size_t bufSize)
_Locale_mask_t _WLocale_ctype(_Locale_ctype_t *ltype, wint_t c, _Locale_mask_t which_bits)
wint_t _WLocale_tolower(_Locale_ctype_t *ltype, wint_t c)
wchar_t _WLocale_thousands_sep(_Locale_numeric_t *lnum)
const wchar_t * _WLocale_am_str(_Locale_time_t *ltime, wchar_t *buf, size_t bufSize)
static const wchar_t * __wtrue_name
const wchar_t * _WLocale_false(_Locale_numeric_t *lnum, wchar_t *buf, size_t bufSize)
wchar_t _WLocale_mon_thousands_sep(_Locale_monetary_t *lmon)
const wchar_t * _WLocale_true(_Locale_numeric_t *lnum, wchar_t *buf, size_t bufSize)
wint_t _WLocale_toupper(_Locale_ctype_t *ltype, wint_t c)
static int _WLocale_strcmp_aux(_Locale_collate_t *lcol, const wchar_t *s1, size_t n1, const wchar_t *s2, size_t n2)
const wchar_t * _WLocale_currency_symbol(_Locale_monetary_t *lmon, wchar_t *buf, size_t bufSize)
size_t _WLocale_wctomb(_Locale_codecvt_t *lcodecvt, char *to, size_t n, const wchar_t c, mbstate_t *shift_state)
size_t _WLocale_unshift(_Locale_codecvt_t *lcodecvt, mbstate_t *st, char *buf, size_t n, char **next)
int _WLocale_mb_cur_max(_Locale_codecvt_t *lcodecvt)
_Locale_codecvt_t * _Locale_codecvt_create(const char *name, _Locale_lcid_t *lc_hint, int *__err_code)
wchar_t _WLocale_mon_decimal_point(_Locale_monetary_t *lmon)
const wchar_t * _WLocale_full_monthname(_Locale_time_t *ltime, int month, wchar_t *buf, size_t bufSize)
const wchar_t * _WLocale_abbrev_dayofweek(_Locale_time_t *ltime, int day, wchar_t *buf, size_t bufSize)
int _WLocale_strcmp(_Locale_collate_t *lcol, const wchar_t *s1, size_t n1, const wchar_t *s2, size_t n2)
const wchar_t * _WLocale_int_curr_symbol(_Locale_monetary_t *lmon, wchar_t *buf, size_t bufSize)
size_t _WLocale_strxfrm(_Locale_collate_t *lcol, wchar_t *dst, size_t dst_size, const wchar_t *src, size_t src_size)
const wchar_t * _WLocale_abbrev_monthname(_Locale_time_t *ltime, int month, wchar_t *buf, size_t bufSize)
int _WLocale_is_stateless(_Locale_codecvt_t *lcodecvt)
const wchar_t * _WLocale_pm_str(_Locale_time_t *ltime, wchar_t *buf, size_t bufSize)
static const wchar_t * __wfalse_name
char const * _Locale_codecvt_name(const _Locale_codecvt_t *lcodecvt, char *buf)
#define WideCharToMultiByte
#define MultiByteToWideChar
static DOUBLE day(DOUBLE time)
INT WINAPI CompareStringW(LCID lcid, DWORD flags, LPCWSTR str1, INT len1, LPCWSTR str2, INT len2)
BOOL WINAPI GetCPInfo(UINT codepage, LPCPINFO cpinfo)
BOOL WINAPI GetStringTypeW(DWORD type, LPCWSTR src, INT count, LPWORD chartype)
INT WINAPI LCMapStringW(LCID lcid, DWORD flags, LPCWSTR src, INT srclen, LPWSTR dst, INT dstlen)
INT WINAPI GetLocaleInfoW(LCID lcid, LCTYPE lctype, LPWSTR buffer, INT len)
static const WCHAR month[12][4]
GLuint GLuint GLsizei count
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define WC_COMPOSITECHECK
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
unsigned short int _Locale_mask_t
#define _STLP_LOC_NO_MEMORY
#define _STLP_LOC_UNKNOWN_NAME
static unsigned __int64 next
unsigned char cleads[256/CHAR_BIT]
unsigned char max_char_size
BYTE LeadByte[MAX_LEADBYTES]
DWORD WINAPI GetLastError(void)
#define ERROR_NO_UNICODE_TRANSLATION
#define LOCALE_SPOSITIVESIGN
#define LOCALE_SMONTHNAME1
#define LOCALE_SABBREVMONTHNAME1
#define LOCALE_SABBREVDAYNAME1
#define LOCALE_SNEGATIVESIGN
#define LOCALE_SINTLSYMBOL