#include <corecrt_internal_strtox.h>
#include <stdlib.h>
Go to the source code of this file.
|
template<typename FloatingType , typename Character > |
static FloatingType __cdecl | common_strtod_l (_In_z_ Character const *const string, _Out_opt_ _Deref_post_z_ Character **const end_ptr, _locale_t const locale) throw () |
|
float __cdecl | strtof (char const *const string, char **const end_ptr) |
|
float __cdecl | _strtof_l (char const *const string, char **const end_ptr, _locale_t const locale) |
|
double __cdecl | strtod (char const *const string, char **const end_ptr) |
|
double __cdecl | _strtod_l (char const *const string, char **const end_ptr, _locale_t const locale) |
|
long double __cdecl | strtold (char const *const string, char **const end_ptr) |
|
long double __cdecl | _strtold_l (char const *const string, char **const end_ptr, _locale_t const locale) |
|
float __cdecl | wcstof (wchar_t const *const string, wchar_t **const end_ptr) |
|
float __cdecl | _wcstof_l (wchar_t const *const string, wchar_t **const end_ptr, _locale_t const locale) |
|
double __cdecl | wcstod (wchar_t const *const string, wchar_t **const end_ptr) |
|
double __cdecl | _wcstod_l (wchar_t const *const string, wchar_t **const end_ptr, _locale_t const locale) |
|
long double __cdecl | wcstold (wchar_t const *const string, wchar_t **const end_ptr) |
|
long double __cdecl | _wcstold_l (wchar_t const *const string, wchar_t **const end_ptr, _locale_t const locale) |
|
◆ _ALLOW_OLD_VALIDATE_MACROS
#define _ALLOW_OLD_VALIDATE_MACROS |
◆ _strtod_l()
Definition at line 80 of file strtod.cpp.
85{
86 return common_strtod_l<double>(
string, end_ptr,
locale);
87}
◆ _strtof_l()
Definition at line 63 of file strtod.cpp.
68{
69 return common_strtod_l<float>(
string, end_ptr,
locale);
70}
◆ _strtold_l()
Definition at line 98 of file strtod.cpp.
103{
104 return common_strtod_l<double>(
string, end_ptr,
locale);
105}
◆ _wcstod_l()
Definition at line 139 of file strtod.cpp.
144{
145 return common_strtod_l<double>(
string, end_ptr,
locale);
146}
◆ _wcstof_l()
Definition at line 122 of file strtod.cpp.
127{
128 return common_strtod_l<float>(
string, end_ptr,
locale);
129}
◆ _wcstold_l()
Definition at line 157 of file strtod.cpp.
162{
163 return common_strtod_l<double>(
string, end_ptr,
locale);
164}
◆ common_strtod_l()
Definition at line 21 of file strtod.cpp.
26{
27 if (end_ptr)
28 {
29 *end_ptr =
const_cast<Character*
>(
string);
30 }
31
33
34 _LocaleUpdate locale_update(
locale);
35
38 locale_update.GetLocaleT(),
41
43 {
45 }
46
48}
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
c_string_character_source< Character > __cdecl make_c_string_character_source(Character const *const string, EndPointer const end)
SLD_STATUS __cdecl parse_floating_point(_locale_t const locale, CharacterSource source, FloatingType *const result)
◆ strtod()
Definition at line 72 of file strtod.cpp.
76{
77 return common_strtod_l<double>(string, end_ptr, nullptr);
78}
◆ strtof()
Definition at line 55 of file strtod.cpp.
59{
60 return common_strtod_l<float>(string, end_ptr, nullptr);
61}
Referenced by test_strtof().
◆ strtold()
◆ wcstod()
Definition at line 131 of file strtod.cpp.
135{
136 return common_strtod_l<double>(string, end_ptr, nullptr);
137}
◆ wcstof()
Definition at line 114 of file strtod.cpp.
118{
119 return common_strtod_l<float>(string, end_ptr, nullptr);
120}
◆ wcstold()
Definition at line 148 of file strtod.cpp.
152{
153 return common_strtod_l<double>(string, end_ptr, nullptr);
154}