initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace sedpp {
|
||||
|
||||
// Minimal POSIX-style path helpers used by command-line and file-output code.
|
||||
// They intentionally avoid filesystem canonicalization so sed path strings stay
|
||||
// close to what the user supplied.
|
||||
[[nodiscard]] bool isAbsolutePath(const std::string &path);
|
||||
[[nodiscard]] std::string basenameOf(const std::string &path);
|
||||
[[nodiscard]] std::string joinPath(const std::string &directory,
|
||||
const std::string &name);
|
||||
|
||||
} // namespace sedpp
|
||||
Reference in New Issue
Block a user