MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getHexDigit

Function getHexDigit

Engine/source/console/CMDscan.cpp:2303–2312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2301}
2302
2303static int getHexDigit(char c)
2304{
2305 if(c >= '0' && c <= '9')
2306 return c - '0';
2307 if(c >= 'A' && c <= 'F')
2308 return c - 'A' + 10;
2309 if(c >= 'a' && c <= 'f')
2310 return c - 'a' + 10;
2311 return -1;
2312}
2313
2314static int Sc_ScanDocBlock()
2315{

Callers 1

collapseEscapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected