25#ifndef PATH_UTIL_INCLUDED
26#define PATH_UTIL_INCLUDED
42 Path(
const std::string &s);
58 void path(
const std::string &
p);
66 bool qpath(
const std::string &qp);
A helper class for handling file paths.
Definition: path.h:38
bool normalize_path()
Definition: path.cc:125
Path & append(const std::string &path)
Definition: path.cc:85
friend std::ostream & operator<<(std::ostream &op, const Path &p)
Definition: path.cc:195
void path(const std::string &p)
Definition: path.cc:98
std::string m_filename
Definition: path.h:85
std::string to_str()
Definition: path.cc:161
void get_homedir()
Definition: path.cc:184
void parent_directory(Path *out)
Definition: path.cc:68
Path & up()
Definition: path.cc:76
void filename(const std::string &f)
Definition: path.cc:104
bool qpath(const std::string &qp)
Definition: path.cc:110
bool is_qualified_path()
Definition: path.cc:143
bool path_getcwd()
Definition: path.cc:49
void trim()
Definition: path.cc:58
std::string m_path
Definition: path.h:84
Path & filename_append(const std::string &ext)
Definition: path.cc:92
bool exists()
Definition: path.cc:145
bool empty()
Definition: path.cc:170
const char * p
Definition: ctype-mb.cc:1225
Json_data_extension ext
Definition: backend.cc:50
std::ostream & operator<<(std::ostream &op, const Path &p)
Definition: path.cc:195