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

Function kwsysString_isdigit

Source/kwsys/String.c:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52int kwsysString_isdigit(char c)
53{
54 unsigned char const uc = (unsigned char)c;
55 /* Push '0-9' to 246-255 so integer division by 246 is 1 only for them. */
56 return ((uc + 246 - '0') & 0xFF) / 246;
57}
58
59int kwsysString_isgraph(char c)
60{

Callers 2

QueryLinuxMemoryMethod · 0.85
kwsysString_isalnumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…