![]() |
MDBX Containers
|
Utility functions for path manipulation, including relative path computation. More...
#include <string>
#include <vector>
#include <cctype>
#include <stdexcept>
#include <unistd.h>
#include <limits.h>
#include <dirent.h>
#include <sys/stat.h>
#include <errno.h>
Go to the source code of this file.
Classes | |
struct | mdbxc::PathComponents |
Structure to hold the root and components of a path. More... | |
Namespaces | |
namespace | mdbxc |
Macros | |
#define | _MDBX_CONTAINERS_PATH_UTILS_HPP_INCLUDED |
Functions | |
bool | mdbxc::is_absolute_path (const std::string &path) |
Checks whether the given path is absolute (cross-platform). | |
std::string | mdbxc::get_parent_path (const std::string &file_path) |
Extracts the parent directory from a full file path. | |
std::string | mdbxc::get_exec_dir () |
Retrieves the directory of the executable file. | |
std::string | mdbxc::get_file_name (const std::string &file_path) |
Extracts the file name from a full file path. | |
PathComponents | mdbxc::split_path (const std::string &path) |
Splits a path into its root and components. | |
std::string | mdbxc::utf8_to_ansi (const std::string &utf8) noexcept |
Converts a UTF-8 string to an ANSI string (Windows-specific). | |
void | mdbxc::create_directories (const std::string &path) |
Creates directories recursively for the given path. | |
Utility functions for path manipulation, including relative path computation.
Definition in file path_utils.hpp.
#define _MDBX_CONTAINERS_PATH_UTILS_HPP_INCLUDED |
Definition at line 3 of file path_utils.hpp.