| 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; } |