| 279 | |
| 280 | |
| 281 | std::string getStem(const std::string& path) { |
| 282 | try { |
| 283 | return fs::u8path(path).stem().generic_u8string(); |
| 284 | } |
| 285 | catch (fs::filesystem_error& e) { |
| 286 | return ""; |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | |
| 291 | std::string getExtension(const std::string& path) { |
no outgoing calls
no test coverage detected