MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / IsTrue

Method IsTrue

MonaBase/include/Mona/String.h:92–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 static Type ToNumber(Exception& ex, Type failValue, const char* value, std::size_t size = std::string::npos);
91
92 static bool IsTrue(const std::string& value) { return IsTrue(value.data(),value.size()); }
93 static bool IsTrue(const char* value,std::size_t size=std::string::npos) { return ICompare(value, "1", size) == 0 || String::ICompare(value, "true", size) == 0 || String::ICompare(value, "yes", size) == 0 || String::ICompare(value, "on", size) == 0; }
94 static bool IsFalse(const std::string& value) { return IsFalse(value.data(),value.size()); }
95 static bool IsFalse(const char* value, std::size_t size = std::string::npos) { return ICompare(value, "0", size) == 0 || String::ICompare(value, "false", size) == 0 || String::ICompare(value, "no", size) == 0 || String::ICompare(value, "off", size) == 0; }

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected