get_env for Win32, @pierrec's get_config_dir and get_home_dir

This commit is contained in:
Christoffer Lerno
2023-09-25 16:08:27 +02:00
committed by Christoffer Lerno
parent 2a683a6a05
commit c5404c6573
5 changed files with 124 additions and 22 deletions

View File

@@ -448,6 +448,17 @@ fn void Path.free(self)
free(self.path_string.ptr);
}
fn usz! Path.to_format(&self, Formatter* formatter) @dynamic
{
return formatter.print(self.str_view());
}
fn String Path.to_string(&self, Allocator* using = mem::heap()) @dynamic
{
return self.str_view().copy(using);
}
const bool[256] RESERVED_PATH_CHAR_POSIX = {
[0] = true,
['/'] = true,