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

Function testString_tolower

Source/kwsys/testString.c:60–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58MAKE_testString_(isxdigit);
59
60static int testString_tolower(void)
61{
62 int i = 0;
63 int j;
64 for (; i < 'A'; ++i) {
65 if ((j = kwsysString_tolower((char)i)) != i) {
66 printf("tolower(%d) failed: %d\n", i, j);
67 return 1;
68 }
69 }
70 for (; i <= 'Z'; ++i) {
71 if ((j = kwsysString_tolower((char)i)) != i + 32) {
72 printf("tolower(%d) failed: %d\n", i, j);
73 return 1;
74 }
75 }
76 for (; i < 256; ++i) {
77 if ((j = kwsysString_tolower((char)i)) != i) {
78 printf("tolower(%d) failed: %d\n", i, j);
79 return 1;
80 }
81 }
82 return 0;
83}
84
85static int testString_toupper(void)
86{

Callers 1

testStringFunction · 0.85

Calls 1

kwsysString_tolowerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…