MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / BoolFromString

Function BoolFromString

src/OpenColorIO/ParseUtils.cpp:106–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106bool BoolFromString(const char * s)
107{
108 const std::string str = StringUtils::Lower(s ? s : "");
109
110 return (str == "true") || (str == "yes");
111}
112
113const char * LoggingLevelToString(LoggingLevel level)
114{

Callers 2

OCIO_ADD_TESTFunction · 0.85

Calls 1

LowerFunction · 0.85

Tested by 1

OCIO_ADD_TESTFunction · 0.68