Represents paths on a filesystem; accepts utf-8, Windows utf-16 wchar_t, or std::filesystem::path. More...
#include <Path.hpp>
Public Types | |
using | string_type = std::basic_string< value_type > |
using | value_type = char |
character used by native-encoding of filesystem More... | |
Public Member Functions | |
bool | empty () const noexcept |
Observes if path is empty (contains no string/folders/filename) More... | |
const string_type & | native () const noexcept |
Returns native-encoding string by const reference, suitable for use with OS APIs. More... | |
operator string_type () const noexcept | |
Implicitly convert to native-encoding string, suitable for use with OS APIs. More... | |
Path & | operator= (const Path &)=default |
Path & | operator= (Path &&)=default |
Path ()=default | |
Path (const Path &)=default | |
Path (const string_type &source) | |
Construct Path object from source. More... | |
Path (const value_type *source) | |
Construct Path object from source. More... | |
Path (Path &&)=default | |
Path (string_type &&source) noexcept | |
Construct Path object from source. More... | |
std::string | string () const |
Get path in native-encoding string; no conversion. More... | |
std::string | u8string () const |
Get path in utf-8. More... | |
~Path ()=default | |
Private Attributes | |
string_type | _nativePath |
Represents paths on a filesystem; accepts utf-8, Windows utf-16 wchar_t, or std::filesystem::path.
It is suitable for direct use with OS APIs. Features are limited to character-set conversion of paths. It is not intended as a full replacement for std::filesystem::path
using dai::Path::string_type = std::basic_string<value_type> |
using dai::Path::value_type = char |
|
default |
|
default |
|
default |
|
default |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
private |