![]() |
MDBX Containers
|
Utility functions for path manipulation, including relative path computation. More...
#include <string>#include <vector>#include <stdexcept>#include <cctype>#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_explicitly_relative (const std::string &s) noexcept |
| Check if path starts with explicit relative prefix. | |
| 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. | |
| std::string | mdbxc::utf8_to_ansi (const std::string &utf8) noexcept |
| Converts a UTF-8 string to an ANSI string (Windows-specific). | |
| bool | mdbxc::is_path_sep (char c) |
| Check if character is a path separator. | |
| std::string | mdbxc::lexically_normal_compat (const std::string &in) |
| Normalize path removing '. | |
| PathComponents | mdbxc::split_path (const std::string &path) |
| Splits a path into its root and components. | |
| 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.