#include <precomp.h>
Go to the source code of this file.
|
| __int64 CDECL | _wtoi64_l (const wchar_t *str, _locale_t locale) |
| |
| __int64 CDECL | _wtoi64 (const wchar_t *str) |
| |
| __int64 CDECL | _wcstoi64_l (const wchar_t *nptr, wchar_t **endptr, int base, _locale_t locale) |
| |
| __int64 CDECL | _wcstoi64 (const wchar_t *nptr, wchar_t **endptr, int base) |
| |
| unsigned __int64 CDECL | _wcstoui64_l (const wchar_t *nptr, wchar_t **endptr, int base, _locale_t locale) |
| |
| unsigned __int64 CDECL | _wcstoui64 (const wchar_t *nptr, wchar_t **endptr, int base) |
| |
◆ _wcstoi64()
Definition at line 120 of file wtoi64.c.
122{
124}
__int64 CDECL _wcstoi64_l(const wchar_t *nptr, wchar_t **endptr, int base, _locale_t locale)
◆ _wcstoi64_l()
Definition at line 44 of file wtoi64.c.
46{
49
50#ifndef _LIBCNT_
52#endif
53
57
59
60 if(*nptr == '-') {
62 nptr++;
63 } else if(*nptr == '+')
64 nptr++;
65
68 nptr += 2;
69 }
70
72 if(*nptr=='0')
74 else
76 }
77
78 while(*nptr) {
81
84 break;
86 } else {
88 break;
90 }
91
92 if(negative)
94
95 nptr++;
96
99#ifndef _LIBCNT_
101#endif
104#ifndef _LIBCNT_
106#endif
107 } else
109 }
110
111 if(endptr)
112 *endptr = (wchar_t*)nptr;
113
115}
#define MSVCRT_CHECK_PMT(x)
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Referenced by _wcstoi64().
◆ _wcstoui64()
Definition at line 199 of file wtoi64.c.
201{
203}
unsigned __int64 CDECL _wcstoui64_l(const wchar_t *nptr, wchar_t **endptr, int base, _locale_t locale)
◆ _wcstoui64_l()
Definition at line 131 of file wtoi64.c.
133{
136
137#ifndef _LIBCNT_
139#endif
140
144
146
147 if(*nptr == '-') {
149 nptr++;
150 } else if(*nptr == '+')
151 nptr++;
152
155 nptr += 2;
156 }
157
159 if(*nptr=='0')
161 else
163 }
164
165 while(*nptr) {
168
169 if(
cur>=
'0' &&
cur<=
'9') {
171 break;
173 } else {
175 break;
177 }
178
179 nptr++;
180
183#ifndef _LIBCNT_
185#endif
186 } else
188 }
189
190 if(endptr)
191 *endptr = (wchar_t*)nptr;
192
194}
Referenced by _wcstoui64().
◆ _wtoi64()
Definition at line 33 of file wtoi64.c.
34{
36}
__int64 CDECL _wtoi64_l(const wchar_t *str, _locale_t locale)
◆ _wtoi64_l()
Definition at line 6 of file wtoi64.c.
7{
10
13 }
14
17 }
else if (*
str ==
'-') {
20 }
21
22 while (*
str >=
'0' && *
str <=
'9') {
23 RunningTotal = RunningTotal * 10 + *
str -
'0';
25 }
26
27 return bMinus ? -RunningTotal : RunningTotal;
28}
Referenced by _wtoi64().