| 14 | return std::filesystem::path(relative_candidate).generic_string(); |
| 15 | } |
| 16 | |
| 17 | std::string candidate_stem_or_filename(const std::string & relative_candidate) { |
| 18 | const auto path = std::filesystem::path(relative_candidate); |
| 19 | if (!path.stem().empty()) { |
| 20 | return path.stem().string(); |
| 21 | } |
| 22 | return path.filename().string(); |
| 23 | } |
| 24 | |
| 25 | } |
no test coverage detected