///////////////////////////////////////////////////////////////////////////
| 207 | |
| 208 | //////////////////////////////////////////////////////////////////////////////// |
| 209 | const std::vector<std::string> extractParents(const std::string& project, |
| 210 | const char& delimiter /* = '.' */) { |
| 211 | std::vector<std::string> vec; |
| 212 | std::string::size_type pos = 0; |
| 213 | std::string::size_type copyUntil = 0; |
| 214 | while ((copyUntil = project.find(delimiter, pos + 1)) != std::string::npos) { |
| 215 | if (copyUntil != project.size() - 1) vec.push_back(project.substr(0, copyUntil)); |
| 216 | pos = copyUntil; |
| 217 | } |
| 218 | return vec; |
| 219 | } |
| 220 | |
| 221 | //////////////////////////////////////////////////////////////////////////////// |
| 222 | bool nontrivial(const std::string& input) { |
no test coverage detected