Pre-sized char array holding enough space to represent a file system path. More...
#include <StringPath.h>
Public Member Functions | |
operator StringSpan () const | |
StringSpan | view () const |
Obtain a StringSpan from the current StringPath. | |
bool | assign (StringSpan pathToConvert) |
Assigns a StringView to current StringPath, converting the encoding from UTF16 to UTF8 if needed. | |
Public Attributes | |
size_t | length = 0 |
Length of the path in bytes (excluding null terminator) | |
char | path [MaxPath] |
Native path on Posix (UTF-8) | |
Static Public Attributes | |
static constexpr size_t | MaxPath = 4096 |
Maximum size of paths on current native platform. | |
Pre-sized char array holding enough space to represent a file system path.
|
nodiscard |
Assigns a StringView to current StringPath, converting the encoding from UTF16 to UTF8 if needed.
|
inlinenodiscard |
Obtain a StringSpan from the current StringPath.
size_t SC::StringPath::length = 0 |
Length of the path in bytes (excluding null terminator)
|
staticconstexpr |
Maximum size of paths on current native platform.
char SC::StringPath::path[MaxPath] |
Native path on Posix (UTF-8)