| 239 | } |
| 240 | |
| 241 | int 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 | |
| 255 | const char* nullAsEmpty(const char* str) { |
| 256 | if (str) { |