31 #include <xlnt/xlnt_config.hpp> 44 static char system_separator();
54 explicit path(
const std::string &path_string);
59 path(
const std::string &path_string,
char sep);
66 bool is_relative()
const;
71 bool is_absolute()
const;
87 std::string filename()
const;
92 std::string extension()
const;
97 std::pair<std::string, std::string> split_extension()
const;
105 std::vector<std::string> split()
const;
111 const std::string &string()
const;
114 std::wstring wstring()
const;
126 path resolve(
const path &base_path)
const;
133 path relative_to(
const path &base_path)
const;
147 bool is_directory()
const;
153 bool is_file()
const;
161 std::string read_contents()
const;
168 path append(
const std::string &to_append)
const;
173 path append(
const path &to_append)
const;
194 char guess_separator()
const;
199 std::string internal_;
217 static hash<string> hasher;
218 return hasher(p.
string());
const std::string & string() const
Create a string representing this path separated by the provided separator or the system-default sepa...
Definition: cell_reference.hpp:262
size_t operator()(const xlnt::path &p) const
Returns a hashed represenation of the given path.
Definition: path.hpp:215
Enumerates the possible types a cell can be determined by it's current value.
Definition: cell.hpp:37
bool operator==(std::nullptr_t, const cell &cell)
Returns true if this cell is uninitialized.
Encapsulates a path that points to location in a filesystem.
Definition: path.hpp:38
bool operator!=(const std::string &reference_string, const range_reference &ref)
Returns true if the string representation of the range is not equivalent to ref.