4#include "../Foundation/StringSpan.h"
12#if SC_PLATFORM_WINDOWS
13 static constexpr size_t MaxPath = 260;
14#elif SC_PLATFORM_APPLE
15 static constexpr size_t MaxPath = 1024;
20#if SC_PLATFORM_WINDOWS
Pre-sized char array holding enough space to represent a file system path.
Definition StringPath.h:10
size_t length
Length of the path in bytes (excluding null terminator)
Definition StringPath.h:19
static constexpr size_t MaxPath
Maximum size of paths on current native platform.
Definition StringPath.h:17
bool assign(StringSpan pathToConvert)
Assigns a StringView to current StringPath, converting the encoding from UTF16 to UTF8 if needed.
StringSpan view() const
Obtain a StringSpan from the current StringPath.
Definition StringPath.h:29
char path[MaxPath]
Native path on Posix (UTF-8)
Definition StringPath.h:24
An read-only view over a string (to avoid including Strings library when parsing is not needed).
Definition StringSpan.h:31