MCPcopy Create free account
hub / github.com/Kitware/CMake / FixValue

Method FixValue

Source/CursesDialog/cmCursesMainForm.cxx:650–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650void 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
666void cmCursesMainForm::SetSearchMode(bool enable)
667{

Callers 1

Calls 3

cmIsOffFunction · 0.85
find_last_not_ofMethod · 0.80
substrMethod · 0.45

Tested by

no test coverage detected