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

Function kwsysString_toupper

Source/kwsys/String.c:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117unsigned char kwsysString_toupper(char c)
118{
119 unsigned char const uc = (unsigned char)c;
120 /* Push 'a-z' to 230-255 so integer division by 230 is 1 only for them. */
121 return (unsigned char)(uc ^ ((((uc + 230 - 'a') & 0xFF) / 230) << 5));
122}
123
124int kwsysString_strcasecmp(char const* lhs, char const* rhs)
125{

Callers 5

GetcwdFunction · 0.85
GetCasePathNameMethod · 0.85
CapitalizedMethod · 0.85
CapitalizedWordsMethod · 0.85
testString_toupperFunction · 0.85

Calls

no outgoing calls

Tested by 1

testString_toupperFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…