8MakeError(ExecutableLookupError, Error);
16 std::vector<std::filesystem::path> directories;
18 constexpr static const OsChar separator =
63 std::optional<std::filesystem::path>
findName(
65 std::function<
bool(
const std::filesystem::path &)> isExecutableFile = isExecutableFileAmbient)
const;
75 const std::filesystem::path & exe,
76 std::function<
bool(
const std::filesystem::path &)> isExecutable = isExecutableFileAmbient)
const;
std::basic_string< OsChar > OsString
Definition os-string.hh:32
char OsChar
Definition os-string.hh:17
Definition executable-path.hh:15
std::filesystem::path findPath(const std::filesystem::path &exe, std::function< bool(const std::filesystem::path &)> isExecutable=isExecutableFileAmbient) const
Definition executable-path.cc:82
static ExecutablePath load()
Definition executable-path.cc:18
OsString render() const
Definition executable-path.cc:56
static ExecutablePath parse(const OsString &path)
Definition executable-path.cc:26
std::optional< std::filesystem::path > findName(const OsString &exe, std::function< bool(const std::filesystem::path &)> isExecutableFile=isExecutableFileAmbient) const
Definition executable-path.cc:66