| 6003 | } |
| 6004 | |
| 6005 | static std::string |
| 6006 | name_from_title (const std::string &title) |
| 6007 | { |
| 6008 | std::string s = title; |
| 6009 | std::string::size_type tab = s.find ('\t'); |
| 6010 | if (tab != std::string::npos) { |
| 6011 | s = std::string (s, 0, tab); |
| 6012 | } |
| 6013 | std::string::size_type colon = s.find (':'); |
| 6014 | if (colon != std::string::npos) { |
| 6015 | s = std::string (s, 0, colon); |
| 6016 | } |
| 6017 | return s; |
| 6018 | } |
| 6019 | |
| 6020 | static bool |
| 6021 | edit_mode_from_title (const std::string &title) |
no test coverage detected