16 lines
519 B
C++
16 lines
519 B
C++
#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
|