MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / saysTrue

Function saysTrue

Source/Utility/strings.cpp:241–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241int saysTrue(const char* str) {
242 if (str) {
243 if (strmtch(str, "true")) {
244 return SAYS_TRUE;
245 } else if (strmtch(str, "false")) {
246 return SAYS_FALSE;
247 } else {
248 return SAYS_TRUE_NO_MATCH;
249 }
250 } else {
251 return SAYS_TRUE_NULL_INPUT;
252 }
253}
254
255const char* nullAsEmpty(const char* str) {
256 if (str) {

Callers 8

LoadMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
test<1>Method · 0.85
saysTrueMethod · 0.85
ReloadMethod · 0.85

Calls 1

strmtchFunction · 0.85

Tested by 1

test<1>Method · 0.68