MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / IsTruthy

Function IsTruthy

src/PluginSegmentation.cpp:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76bool 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
85bool IsReadableFile(const std::string& path) {
86#if defined(_WIN32) || defined(_WIN64)

Callers 2

LoadByTypeMethod · 0.85
LoadByPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected