| 648 | } |
| 649 | |
| 650 | void cmCursesMainForm::FixValue(cmStateEnums::CacheEntryType type, |
| 651 | std::string const& in, std::string& out) const |
| 652 | { |
| 653 | out = in.substr(0, in.find_last_not_of(' ') + 1); |
| 654 | if (type == cmStateEnums::PATH || type == cmStateEnums::FILEPATH) { |
| 655 | cmSystemTools::ConvertToUnixSlashes(out); |
| 656 | } |
| 657 | if (type == cmStateEnums::BOOL) { |
| 658 | if (cmIsOff(out)) { |
| 659 | out = "OFF"; |
| 660 | } else { |
| 661 | out = "ON"; |
| 662 | } |
| 663 | } |
| 664 | } |
| 665 | |
| 666 | void cmCursesMainForm::SetSearchMode(bool enable) |
| 667 | { |
no test coverage detected