ReactOS 0.4.16-dev-2110-ge3521eb
strtox.cpp File Reference
#include <corecrt_internal.h>
#include <corecrt_internal_strtox.h>
#include <corecrt_wstdlib.h>
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <locale.h>
#include <stdint.h>
#include <stdlib.h>
#include <inttypes.h>
Include dependency graph for strtox.cpp:

Go to the source code of this file.

Macros

#define _ALLOW_OLD_VALIDATE_MACROS
 

Functions

long __cdecl strtol (char const *const string, char **const end_ptr, int const base)
 
long __cdecl _strtol_l (char const *const string, char **const end_ptr, int const base, _locale_t const locale)
 
unsigned long __cdecl strtoul (char const *const string, char **const end_ptr, int const base)
 
unsigned long __cdecl _strtoul_l (char const *const string, char **const end_ptr, int const base, _locale_t const locale)
 
__int64 __cdecl _strtoi64 (char const *const string, char **const end_ptr, int const base)
 
long long __cdecl strtoll (char const *const string, char **const end_ptr, int const base)
 
intmax_t __cdecl strtoimax (char const *const string, char **const end_ptr, int const base)
 
__int64 __cdecl _strtoi64_l (char const *const string, char **const end_ptr, int const base, _locale_t const locale)
 
long long __cdecl _strtoll_l (char const *const string, char **const end_ptr, int const base, _locale_t const locale)
 
intmax_t __cdecl _strtoimax_l (char const *const string, char **const end_ptr, int const base, _locale_t const locale)
 
unsigned __int64 __cdecl _strtoui64 (char const *const string, char **const end_ptr, int const base)
 
unsigned long long __cdecl strtoull (char const *const string, char **const end_ptr, int const base)
 
uintmax_t __cdecl strtoumax (char const *const string, char **const end_ptr, int const base)
 
unsigned __int64 __cdecl _strtoui64_l (char const *const string, char **const end_ptr, int const base, _locale_t const locale)
 
unsigned long long __cdecl _strtoull_l (char const *const string, char **const end_ptr, int const base, _locale_t const locale)
 
uintmax_t __cdecl _strtoumax_l (char const *const string, char **const end_ptr, int const base, _locale_t const locale)
 
long __cdecl wcstol (wchar_t const *const string, wchar_t **const end_ptr, int const base)
 
long __cdecl _wcstol_l (wchar_t const *const string, wchar_t **const end_ptr, int const base, _locale_t const locale)
 
unsigned long __cdecl wcstoul (wchar_t const *const string, wchar_t **const end_ptr, int const base)
 
unsigned long __cdecl _wcstoul_l (wchar_t const *const string, wchar_t **const end_ptr, int const base, _locale_t const locale)
 
__int64 __cdecl _wcstoi64 (wchar_t const *const string, wchar_t **const end_ptr, int const base)
 
long long __cdecl wcstoll (wchar_t const *const string, wchar_t **const end_ptr, int const base)
 
intmax_t __cdecl wcstoimax (wchar_t const *const string, wchar_t **const end_ptr, int const base)
 
__int64 __cdecl _wcstoi64_l (wchar_t const *const string, wchar_t **const end_ptr, int const base, _locale_t const locale)
 
long long __cdecl _wcstoll_l (wchar_t const *const string, wchar_t **const end_ptr, int const base, _locale_t const locale)
 
intmax_t __cdecl _wcstoimax_l (wchar_t const *const string, wchar_t **const end_ptr, int const base, _locale_t const locale)
 
unsigned __int64 __cdecl _wcstoui64 (wchar_t const *const string, wchar_t **const end_ptr, int const base)
 
unsigned long long __cdecl wcstoull (wchar_t const *const string, wchar_t **const end_ptr, int const base)
 
uintmax_t __cdecl wcstoumax (wchar_t const *const string, wchar_t **const end_ptr, int const base)
 
unsigned __int64 __cdecl _wcstoui64_l (wchar_t const *const string, wchar_t **const end_ptr, int const base, _locale_t const locale)
 
unsigned long long __cdecl _wcstoull_l (wchar_t const *const string, wchar_t **const end_ptr, int const base, _locale_t const locale)
 
uintmax_t __cdecl _wcstoumax_l (wchar_t const *const string, wchar_t **const end_ptr, int const base, _locale_t const locale)
 

Macro Definition Documentation

◆ _ALLOW_OLD_VALIDATE_MACROS

#define _ALLOW_OLD_VALIDATE_MACROS

Definition at line 44 of file strtox.cpp.

Function Documentation

◆ _strtoi64()

__int64 __cdecl _strtoi64 ( char const *const  string,
char **const  end_ptr,
int const  base 
)

Definition at line 110 of file strtox.cpp.

115{
116 return __crt_strtox::parse_integer_from_string<__int64>(string, end_ptr, base, nullptr);
117}

Referenced by PROPVAR_ConvertNumber(), START_TEST(), and strtoll().

◆ _strtoi64_l()

__int64 __cdecl _strtoi64_l ( char const *const  string,
char **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 139 of file strtox.cpp.

145{
146 return __crt_strtox::parse_integer_from_string<__int64>(string, end_ptr, base, locale);
147}
Definition: _locale.h:75

Referenced by _strtoul_l().

◆ _strtoimax_l()

intmax_t __cdecl _strtoimax_l ( char const *const  string,
char **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 159 of file strtox.cpp.

165{
166 return __crt_strtox::parse_integer_from_string<intmax_t>(string, end_ptr, base, locale);
167}

◆ _strtol_l()

long __cdecl _strtol_l ( char const *const  string,
char **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 72 of file strtox.cpp.

78{
79 return __crt_strtox::parse_integer_from_string<long>(string, end_ptr, base, locale);
80}

◆ _strtoll_l()

long long __cdecl _strtoll_l ( char const *const  string,
char **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 149 of file strtox.cpp.

155{
156 return __crt_strtox::parse_integer_from_string<long long>(string, end_ptr, base, locale);
157}

◆ _strtoui64()

unsigned __int64 __cdecl _strtoui64 ( char const *const  string,
char **const  end_ptr,
int const  base 
)

Definition at line 171 of file strtox.cpp.

176{
177 return __crt_strtox::parse_integer_from_string<unsigned __int64>(string, end_ptr, base, nullptr);
178}

Referenced by strtoull().

◆ _strtoui64_l()

unsigned __int64 __cdecl _strtoui64_l ( char const *const  string,
char **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 200 of file strtox.cpp.

206{
207 return __crt_strtox::parse_integer_from_string<unsigned __int64>(string, end_ptr, base, locale);
208}

◆ _strtoul_l()

unsigned long __cdecl _strtoul_l ( char const *const  string,
char **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 93 of file strtox.cpp.

99{
100 return __crt_strtox::parse_integer_from_string<unsigned long>(string, end_ptr, base, locale);
101}

◆ _strtoull_l()

unsigned long long __cdecl _strtoull_l ( char const *const  string,
char **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 210 of file strtox.cpp.

216{
217 return __crt_strtox::parse_integer_from_string<unsigned long long>(string, end_ptr, base, locale);
218}

◆ _strtoumax_l()

uintmax_t __cdecl _strtoumax_l ( char const *const  string,
char **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 220 of file strtox.cpp.

226{
227 return __crt_strtox::parse_integer_from_string<uintmax_t>(string, end_ptr, base, locale);
228}

◆ _wcstoi64()

__int64 __cdecl _wcstoi64 ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base 
)

Definition at line 282 of file strtox.cpp.

287{
288 return __crt_strtox::parse_integer_from_string<__int64>(string, end_ptr, base, nullptr);
289}

Referenced by DumpDisk(), and DumpPartition().

◆ _wcstoi64_l()

__int64 __cdecl _wcstoi64_l ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 311 of file strtox.cpp.

317{
318 return __crt_strtox::parse_integer_from_string<__int64>(string, end_ptr, base, locale);
319}

◆ _wcstoimax_l()

intmax_t __cdecl _wcstoimax_l ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 331 of file strtox.cpp.

337{
338 return __crt_strtox::parse_integer_from_string<intmax_t>(string, end_ptr, base, locale);
339}

◆ _wcstol_l()

long __cdecl _wcstol_l ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 246 of file strtox.cpp.

252{
253 return __crt_strtox::parse_integer_from_string<long>(string, end_ptr, base, locale);
254}

◆ _wcstoll_l()

long long __cdecl _wcstoll_l ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 321 of file strtox.cpp.

327{
328 return __crt_strtox::parse_integer_from_string<long long>(string, end_ptr, base, locale);
329}

◆ _wcstoui64()

unsigned __int64 __cdecl _wcstoui64 ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base 
)

Definition at line 343 of file strtox.cpp.

348{
349 return __crt_strtox::parse_integer_from_string<unsigned __int64>(string, end_ptr, base, nullptr);
350}

Referenced by CreateEfiPartition(), CreateExtendedPartition(), CreateLogicalPartition(), CreateMsrPartition(), CreatePartitionPage(), CreatePrimaryPartition(), gpt_main(), and wWinMain().

◆ _wcstoui64_l()

unsigned __int64 __cdecl _wcstoui64_l ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 372 of file strtox.cpp.

378{
379 return __crt_strtox::parse_integer_from_string<unsigned __int64>(string, end_ptr, base, locale);
380}

◆ _wcstoul_l()

unsigned long __cdecl _wcstoul_l ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 265 of file strtox.cpp.

271{
272 return __crt_strtox::parse_integer_from_string<unsigned long>(string, end_ptr, base, locale);
273}

◆ _wcstoull_l()

unsigned long long __cdecl _wcstoull_l ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 382 of file strtox.cpp.

388{
389 return __crt_strtox::parse_integer_from_string<unsigned long long>(string, end_ptr, base, locale);
390}

◆ _wcstoumax_l()

uintmax_t __cdecl _wcstoumax_l ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base,
_locale_t const  locale 
)

Definition at line 392 of file strtox.cpp.

398{
399 return __crt_strtox::parse_integer_from_string<uintmax_t>(string, end_ptr, base, locale);
400}

◆ strtoimax()

intmax_t __cdecl strtoimax ( char const *const  string,
char **const  end_ptr,
int const  base 
)

Definition at line 128 of file strtox.cpp.

133{
134 return __crt_strtox::parse_integer_from_string<intmax_t>(string, end_ptr, base, nullptr);
135}

◆ strtol()

◆ strtoll()

long long __cdecl strtoll ( char const *const  string,
char **const  end_ptr,
int const  base 
)

Definition at line 119 of file strtox.cpp.

124{
125 return __crt_strtox::parse_integer_from_string<long long>(string, end_ptr, base, nullptr);
126}

◆ strtoul()

◆ strtoull()

unsigned long long __cdecl strtoull ( char const *const  string,
char **const  end_ptr,
int const  base 
)

Definition at line 180 of file strtox.cpp.

185{
186 return __crt_strtox::parse_integer_from_string<unsigned long long>(string, end_ptr, base, nullptr);
187}

◆ strtoumax()

uintmax_t __cdecl strtoumax ( char const *const  string,
char **const  end_ptr,
int const  base 
)

Definition at line 189 of file strtox.cpp.

194{
195 return __crt_strtox::parse_integer_from_string<uintmax_t>(string, end_ptr, base, nullptr);
196}

◆ wcstoimax()

intmax_t __cdecl wcstoimax ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base 
)

Definition at line 300 of file strtox.cpp.

305{
306 return __crt_strtox::parse_integer_from_string<intmax_t>(string, end_ptr, base, nullptr);
307}

◆ wcstol()

long __cdecl wcstol ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base 
)

Definition at line 237 of file strtox.cpp.

242{
243 return __crt_strtox::parse_integer_from_string<long>(string, end_ptr, base, nullptr);
244}

Referenced by build_createsql_columns(), build_zonemap_from_reg(), check_language(), check_transform_applicable(), CheckUnattendedSetup(), cmdConfig(), cmdHelpMsg(), construct_record(), ConvertTimeString(), custom_action_server(), date_parse(), deformat_index(), DelNodeRunDLL32W(), dialog_edit_control(), dialog_vcl_add_columns(), do_process_key(), ATL::CRegObject::do_process_key(), enum_locales_proc(), EnumOLEVERB_Next(), event_set_install_level(), fill_source_list(), FindPortNum(), get_dialog_font_point_size(), get_token(), CFSFolder::GetCustomViewInfo(), GetIntField(), GetKeyboardLayoutCP(), GetLongValue(), GetRegInt(), GetUserGeoID(), GetZipCodePage(), HTTP_GetResponseHeaders(), HttpProtocol_start_downloading(), SEALED_::IMsTscAx::Connect(), CCleanupHandler::Initialize(), InternetCrackUrlW(), InternetTimeToSystemTimeW(), IPADDRESS_ConstrainField(), IPADDRESS_GetAddress(), is_uninstallable(), IsFlag(), LanguagePage(), LaunchINFSectionExW(), LaunchINFSectionW(), lineGetCountryW(), LoadSetupData(), locale_return_reg_number(), margin_edit_notification(), mark_task_process(), MMDevPropStore_GetAt(), MONTHCAL_SetFirstDayOfWeek(), MSI_DatabaseImport(), msi_get_font_file_version(), msi_get_property_int(), MSI_OpenPackageW(), msi_parse_version_string(), msi_version_str_to_dword(), MsiSourceListEnumMediaDisksW(), PackageIdFromFullName(), parse_filetime(), parse_languages(), parse_prop(), parse_suminfo(), parse_version(), ParseArgument(), ParseUnattend(), PersistFile_Load(), PROPVAR_ConvertNumber(), RegLoadMUIStringW(), CInstalledApplicationInfo::RetrieveInstallDate(), rpcrt4_http_internet_connect(), set_ldids(), SetupStartPage(), SHLoadIndirectString(), start_debugger(), StrToIntW(), StrToNum(), test__wcstol(), TLB_ReadTypeLib(), tzset_from_environment_nolock(), UPDOWN_GetBuddyInt(), wmain(), WshShortcut_put_IconLocation(), and WSPStringToAddress().

◆ wcstoll()

long long __cdecl wcstoll ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base 
)

Definition at line 291 of file strtox.cpp.

296{
297 return __crt_strtox::parse_integer_from_string<long long>(string, end_ptr, base, nullptr);
298}

◆ wcstoul()

unsigned long __cdecl wcstoul ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base 
)

Definition at line 256 of file strtox.cpp.

261{
262 return __crt_strtox::parse_integer_from_string<unsigned long>(string, end_ptr, base, nullptr);
263}

Referenced by _LocalOpenPrinterHandle(), AddNewLayout(), ArcGetNextTokenU(), BiEnumerateElements(), cmdAccounts(), cmdUser(), convert_hex_csv_to_hex(), convert_hex_to_dword(), CreateFreeLoaderIniForReactOSAndBootSector(), CreateKeyboardLayoutList(), CreateLogicalPartition(), CreatePrimaryMbrPartition(), do_process_key(), ATL::CRegObject::do_process_key(), do_reg_operation(), DoParse(), DosStart(), DWORDfromString(), FontProc(), FontSizeList_GetSelectedFontSize(), format_main(), FreeLdrMigrateBootDrivePartWorker(), GeneralPropertyPageLocalesEnumProc(), get_regdata(), CicProfile::GetCodePageA(), GetDeviceLocationString(), GetDWordValue(), GetHKLSubstitute(), GetLPTTransmissionRetryTimeout(), GetProfiles(), GetSpecialKLID(), GetTimeZoneListIndex(), GetULONG(), GetUsedPorts(), HTTP_HttpQueryInfoW(), HTTP_ParseDateAsAsctime(), HTTP_ParseRfc1123Date(), HTTP_ParseRfc850Date(), HTTP_ParseTime(), HTTP_ProcessExpires(), ImageFile_ParseCmdline(), init_locale(), InitializeDefaultUserLocale(), InitializeGlobalJobList(), InitTTFontCache(), Internal_EnumLanguageGroupLocales(), Internal_EnumSystemCodePages(), Internal_EnumSystemLanguageGroups(), IntLoadKeyboardLayout(), IsLayoutExists(), IsValidLanguageGroup(), KLIDFromSpecialHKL(), LoadCurrentLocale(), LoadKeyboardLayoutW(), LocalesEnumProc(), lookup_manifest_file(), MAIN_LoadSettings(), mciSendStringW(), modify_dword_dlgproc(), NtPathToDiskPartComponents(), ObjectFromLresult(), OLEUTL_ReadRegistryDWORDValue(), parse_data_type(), parse_ipv6_component(), ParseCmdline(), ParseCmdLine(), ParseDaysOfMonth(), ParseId(), CConfiguration::ParseParameters(), ParseSetupInf(), ParseTime(), ProcessCommandLine(), ProcessDisplayRegistry(), ProcessKeyboardLayoutRegistry(), ReadRegDwordValue(), ReadSZFlagsFromRegistry(), SampFillUserDisplayCache(), SamrGetAliasMembership(), SelectDisk(), SelectPartition(), SelectVolume(), setid_main(), SortEnumProc(), SortTestEnumProc(), StrToColorref(), StrToNum(), test__wcstol(), Test_KLID(), UnescapeHex(), UnescapeOther(), UniqueIdDisk(), UpdateKBLayout(), UpdateRegistry(), VarDateFromStr(), wmain(), and wWinMain().

◆ wcstoull()

unsigned long long __cdecl wcstoull ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base 
)

Definition at line 352 of file strtox.cpp.

357{
358 return __crt_strtox::parse_integer_from_string<unsigned long long>(string, end_ptr, base, nullptr);
359}

◆ wcstoumax()

uintmax_t __cdecl wcstoumax ( wchar_t const *const  string,
wchar_t **const  end_ptr,
int const  base 
)

Definition at line 361 of file strtox.cpp.

366{
367 return __crt_strtox::parse_integer_from_string<uintmax_t>(string, end_ptr, base, nullptr);
368}