MCPcopy Create free account
hub / github.com/Cantera/cantera / isBool

Function isBool

src/base/AnyMap.cpp:97–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97bool isBool(const string& val) {
98 string str = ba::trim_copy(val);
99 return (val == "true" || val == "True" || val == "false" || val == "False");
100}
101
102bool dunder(const string& s) {
103 return ba::starts_with(s, "__") && ba::ends_with(s, "__");

Callers 2

elementTypesFunction · 0.85
decodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected