---------------------------------------------------------------------------
| 325 | |
| 326 | //--------------------------------------------------------------------------- |
| 327 | std::string extractBaseName(const std::string &name) |
| 328 | { |
| 329 | std::string s(name); |
| 330 | if (isOnlyDirectory(name)) return std::string(); |
| 331 | cleanFileName(s); |
| 332 | std::string res = extractFileName(s); |
| 333 | size_t pos = res.rfind("."); |
| 334 | if (pos != std::string::npos) res.resize(pos); |
| 335 | return res; |
| 336 | } |
| 337 | |
| 338 | |
| 339 | //--------------------------------------------------------------------------- |
no test coverage detected