summaryrefslogtreecommitdiff
path: root/zen/file_path.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/file_path.h')
-rw-r--r--zen/file_path.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/zen/file_path.h b/zen/file_path.h
index d67a49d0..960ec52f 100644
--- a/zen/file_path.h
+++ b/zen/file_path.h
@@ -19,7 +19,7 @@ struct PathComponents
Zstring rootPath; //itemPath = rootPath + (FILE_NAME_SEPARATOR?) + relPath
Zstring relPath; //
};
-std::optional<PathComponents> parsePathComponents(const Zstring& itemPath); //no value on failure
+std::optional<PathComponents> parsePathComponents(const Zstring& itemPath); //no value on error
std::optional<Zstring> getParentFolderPath(const Zstring& itemPath);
inline Zstring getItemName(const Zstring& itemPath) { return afterLast(itemPath, FILE_NAME_SEPARATOR, IfNotFoundReturn::all); }
@@ -44,6 +44,8 @@ inline bool equalNativePath(const Zstring& lhs, const Zstring& rhs) { return com
struct LessNativePath { bool operator()(const Zstring& lhs, const Zstring& rhs) const { return compareNativePath(lhs, rhs) < 0; } };
//------------------------------------------------------------------------------------------
+std::optional<Zstring> getEnvironmentVar(const ZstringView name);
+
}
bgstack15