xentara-utils v2.0.4
The Xentara Utility Library
|
Filesystem path functionality. More...
Classes | |
class | StringOrStringReference |
A string that may or may not point to the internal buffer of a path. More... | |
Functions | |
auto | toInternalPath (std::reference_wrapper< const std::filesystem::path > path) -> StringOrStringReference |
Converts a path to circumvent MAX_PATH length limitations. | |
template<std::convertible_to< std::wstring > WString> | |
auto | fromInternalPath (WString &&path) -> std::wstring |
Converts a path from "\\?\" notation. | |
template<std::convertible_to< std::string > String> | |
auto | fromInternalPath (String &&path) -> std::string |
Converts a path from "\\?\" notation. | |
template<std::convertible_to< std::wstring > WString> | |
internal auto | fromInternalPath (WString &&path) -> std::wstring |
Converts a path from "\\?\" notation. | |
Filesystem path functionality.
This namespace contains functionality realted to filesystem paths under Windows.
auto xentara::utils::windows::path::fromInternalPath | ( | String && | path | ) | -> std::string |
Converts a path from "\\?\" notation.
This Function remnoves superfluous "\\?\" from a path
#include <xentara/utils/windows/path.hpp>
path | The path to convert |
auto xentara::utils::windows::path::fromInternalPath | ( | WString && | path | ) | -> std::wstring |
Converts a path from "\\?\" notation.
This Function remnoves superfluous "\\?\" from a path
#include <xentara/utils/windows/path.hpp>
path | The path to convert |
internal auto xentara::utils::windows::path::fromInternalPath | ( | WString && | path | ) | -> std::wstring |
Converts a path from "\\?\" notation.
This Function remnoves superfluous "\\?\" from a path
#include <xentara/utils/windows/path.hpp>
path | The path to convert |
auto xentara::utils::windows::path::toInternalPath | ( | std::reference_wrapper< const std::filesystem::path > | path | ) | -> StringOrStringReference |
Converts a path to circumvent MAX_PATH length limitations.
This Function prepends "\\?\" to the path, if necessary. It also normalizes the path, because prepenbding "\?" disables the normalization of paths in Windows File API functions
#include <xentara/utils/windows/path.hpp>
path | The path to convert |