MCPcopy Create free account
hub / github.com/csyonghe/Spire / StringToInt

Function StringToInt

Source/CoreLib/LibString.cpp:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 int StringToInt(const String & str, int radix)
47 {
48 if (str.StartsWith("0x"))
49 return (int)strtoll(str.Buffer(), NULL, 16);
50 else
51 return (int)strtoll(str.Buffer(), NULL, radix);
52 }
53 unsigned int StringToUInt(const String & str, int radix)
54 {
55 if (str.StartsWith("0x"))

Callers 12

TokenizeTextFunction · 0.85
ReadIntMethod · 0.85
HandleLineDirectiveFunction · 0.85
CreateShaderClosureFunction · 0.85
NameAllInstructionsMethod · 0.85
ParseTypeMethod · 0.85
ParseLeafExpressionMethod · 0.85
DefineBasicTypeMethod · 0.85
GenerateShaderWorldMethod · 0.85

Calls 2

StartsWithMethod · 0.80
BufferMethod · 0.45

Tested by

no test coverage detected