MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / IsFalseText

Function IsFalseText

Source/Utils/cxxopts.hpp:614–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612 }
613
614 inline bool IsFalseText(const std::string &text)
615 {
616 const char *pdata = text.c_str();
617 if (*pdata == 'f' || *pdata == 'F')
618 {
619 pdata += 1;
620 if (strncmp(pdata, "alse\0", 5) == 0)
621 {
622 return true;
623 }
624 }
625 else if (strncmp(pdata, "0\0", 2) == 0)
626 {
627 return true;
628 }
629 return false;
630 }
631
632 inline std::pair<std::string, std::string> SplitSwitchDef(const std::string &text)
633 {

Callers 1

parse_valueFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected