| 74 | } |
| 75 | |
| 76 | bool IsTruthy(const char* value) { |
| 77 | if (value == nullptr) { |
| 78 | return false; |
| 79 | } |
| 80 | const std::string text(value); |
| 81 | return text == "1" || text == "true" || text == "TRUE" || text == "yes" || |
| 82 | text == "on"; |
| 83 | } |
| 84 | |
| 85 | bool IsReadableFile(const std::string& path) { |
| 86 | #if defined(_WIN32) || defined(_WIN64) |
no outgoing calls
no test coverage detected