NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
File System

Provides utility functions for filesystem operations. More...

Functions

std::string nnl::utl::filesys::u8string (const std::filesystem::path &path)
 Converts a filesystem path to a UTF-8 string.
std::filesystem::path nnl::utl::filesys::u8path (std::string_view path)
 Creates a filesystem path from a UTF-8 string.
std::filesystem::path nnl::utl::filesys::ReplaceExtension (const std::filesystem::path &path, const std::filesystem::path &new_extension)
 Returns a new path with the specified file extension.

Detailed Description

Provides utility functions for filesystem operations.

Function Documentation

◆ ReplaceExtension()

std::filesystem::path nnl::utl::filesys::ReplaceExtension ( const std::filesystem::path & path,
const std::filesystem::path & new_extension )

Returns a new path with the specified file extension.

Parameters
pathOriginal file path
new_extensionNew extension
Returns
A new path with replaced extension

◆ u8path()

std::filesystem::path nnl::utl::filesys::u8path ( std::string_view path)

Creates a filesystem path from a UTF-8 string.

Parameters
pathUTF-8 string
Returns
Filesystem path

◆ u8string()

std::string nnl::utl::filesys::u8string ( const std::filesystem::path & path)

Converts a filesystem path to a UTF-8 string.

Parameters
pathFilesystem path
Returns
UTF-8 encoded string