MCPcopy Create free account
hub / github.com/Kitware/CMake / cmStrToULong

Function cmStrToULong

Source/cmStringAlgorithms.cxx:197–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197bool cmStrToULong(char const* str, unsigned long* value)
198{
199 errno = 0;
200 char* endp;
201 while (cmsysString_isspace(*str)) {
202 ++str;
203 }
204 if (*str == '-') {
205 return false;
206 }
207 *value = strtoul(str, &endp, 10);
208 return (*endp == '\0') && (endp != str) && (errno == 0);
209}
210
211bool cmStrToULong(std::string const& str, unsigned long* value)
212{

Callers 15

testStringAlgorithmsFunction · 0.85
HandleRepeatCommandFunction · 0.85
ParseIndexFunction · 0.85
RunMethod · 0.85
extract_job_numberFunction · 0.85
do_buildFunction · 0.85
InitCustomTargetsMethod · 0.85
GetQtVersionMethod · 0.85
CheckNinjaFeaturesMethod · 0.85

Calls 1

c_strMethod · 0.80

Tested by 9

testStringAlgorithmsFunction · 0.68
RunMethod · 0.68
SetParallelLevelMethod · 0.68
SetTestLoadMethod · 0.68
InitializeHandlerMethod · 0.68
ProcessOptionsMethod · 0.68
HandleCDashUploadFileMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…