MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Parse

Function Parse

Source/Engine/Platform/StringUtils.h:238–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236 // Parses text to the unsigned integer value. Returns true if failed to convert the value.
237 template<typename T>
238 static bool Parse(const T* str, int32 length, uint64* result)
239 {
240 int64 sum = 0;
241 const T* p = str;
242 while (length--)
243 {
244 int32 c = *p++ - 48;
245 if (c < 0 || c > 9)
246 return true;
247 sum = 10 * sum + c;
248 }
249 *result = sum;
250 return false;
251 }
252 template<typename T>
253 static bool Parse(const T* str, uint32 length, uint32* result)
254 {

Callers 15

TestGuid.cppFile · 0.50
TestPrefabs.cppFile · 0.50
OnInitMethod · 0.50
GetSystemVersionMethod · 0.50
GetSystemVersionMethod · 0.50
GetWindowsVersionFunction · 0.50
MacPlatform.cppFile · 0.50
InitMethod · 0.50
GetDriverVersionMethod · 0.50
ImportPoMethod · 0.50
FindIdsFunction · 0.50

Calls 1

LengthFunction · 0.50

Tested by

no test coverage detected