Euphoria
|
vfs_path.cc
Go to the documentation of this file.
std::vector< std::string > split(const std::string &s, char delim)
Definition: stringutils.cc:431
std::string replace_with_character(const std::string &string, const std::string &to_find, char to_replace)
Definition: stringutils.cc:301
std::string trim(const std::string &string_to_trim, std::string_view trim_characters)
Remove characters from both the start and the end.
Definition: stringutils.cc:79
bool begins_with(const std::string &string_to_test, const std::string &start)
Tests if a string starts with another string.
Definition: stringutils.cc:87
bool operator!=(const DirPath &lhs, const DirPath &rhs)
Definition: vfs_path.cc:458
std::optional< DirPath > resolve_relative(const DirPath &base)
Definition: vfs_path.cc:349
bool operator==(const DirPath &lhs, const DirPath &rhs)
Definition: vfs_path.cc:444
String utility functions.
Definition: stringmerger.h:9
constexpr StringMerger & set_start_and_end(const std::string_view &both, const std::string_view &the_end)
Definition: stringmerger.h:47
std::string merge(const std::vector< std::string > &strings) const
Definition: stringmerger.cc:11
constexpr StringMerger & set_separator(const std::string_view &the_separator, const std::string_view &the_final_separator)
Definition: stringmerger.h:24
Definition: vfs_path.h:67
DirPath get_directory(const std::string &single) const
Definition: vfs_path.cc:329
DirPath get_parent_directory() const
Definition: vfs_path.cc:286
static DirPath from_dirs(const std::vector< std::string > &dirs)
Definition: vfs_path.cc:232
std::vector< std::string > split_directories() const
Definition: vfs_path.cc:309
FilePath get_file(const std::string &filename) const
Definition: vfs_path.cc:252
Definition: vfs_path.h:36
FilePath extend_extension_copy(const std::string &ext) const
Definition: vfs_path.cc:189
std::tuple< DirPath, std::string > split_directories_and_file() const
Definition: vfs_path.cc:116
static std::optional< FilePath > from_script_or_empty(const std::string &path)
optional or not, log if error
Definition: vfs_path.cc:102
FilePath set_extension_copy(const std::string &ext) const
Definition: vfs_path.cc:170
std::string get_file_with_extension() const
Definition: vfs_path.cc:144
std::string get_filename_without_extension() const
Definition: vfs_path.cc:151
static std::optional< FilePath > from_script(const std::string &path)
apply only minor changes, return null on invalid
Definition: vfs_path.cc:46
static std::optional< FilePath > from_dirty_source(const std::string &path)
do everything possible to convert from dirty path to valid path
Definition: vfs_path.cc:75