NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
filesys.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include <filesystem>
9#include <string>
10#include <string_view>
11
12namespace nnl {
17namespace utl::filesys {
18
30std::string u8string(const std::filesystem::path& path);
36std::filesystem::path u8path(std::string_view path);
37
44std::filesystem::path ReplaceExtension(const std::filesystem::path& path, const std::filesystem::path& new_extension);
46} // namespace utl::filesys
47
48} // namespace nnl
std::filesystem::path ReplaceExtension(const std::filesystem::path &path, const std::filesystem::path &new_extension)
Returns a new path with the specified file extension.
std::string u8string(const std::filesystem::path &path)
Converts a filesystem path to a UTF-8 string.
std::filesystem::path u8path(std::string_view path)
Creates a filesystem path from a UTF-8 string.
Provides utility functions for filesystem operations.
Definition filesys.hpp:17
Definition exception.hpp:56