| 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 | { |