xentara-utils v1.2.1
Xentara utilities library
|
A string that may or may not point to the internal buffer of a path. More...
#include <windows/path.hpp>
Public Member Functions | |
StringOrStringReference (std::reference_wrapper< const std::filesystem::path > path) | |
Constructor for a reference to the n ative representation of a path. | |
template<std::convertible_to< std::wstring > String> | |
StringOrStringReference (String &&string) | |
Constructor for a string. | |
auto | c_str () const noexcept -> const wchar_t * |
Gets the string as a null terminated string. | |
auto | str () const &noexcept -> const std::wstring & |
Gets the string as an std::wstring. | |
auto | str () &&noexcept -> std::wstring |
Gets the string as an std::wstring reference. | |
A string that may or may not point to the internal buffer of a path.
xentara::utils::windows::path::StringOrStringReference::StringOrStringReference | ( | std::reference_wrapper< const std::filesystem::path > | path | ) |
Constructor for a reference to the n ative representation of a path.
path | The path to refer to. Must remain valid as long as this object exists. |
xentara::utils::windows::path::StringOrStringReference::StringOrStringReference | ( | String && | string | ) |
Constructor for a string.
string | The string |
|
noexcept |
Gets the string as a null terminated string.
|
noexcept |
Gets the string as an std::wstring reference.
|
noexcept |
Gets the string as an std::wstring.