Files
anm2ed/src/path.h
T
shweet 7fb2c607c2 Flatten src into model, edit and ui, with .h headers
Resources and utilities sit directly in src. The ImGui windows, wizards, popups and helpers are in ui.
Headers that would shadow system ones are renamed: math_util, timestamp, subprocess, localization.
Includes are written from src.
2026-11-22 17:12:05 -05:00

24 lines
878 B
C++

#pragma once
#include <filesystem>
#include <string>
namespace anm2ed::util::path
{
std::filesystem::path to_lower(const std::filesystem::path&);
std::filesystem::path backslash_replace(const std::filesystem::path&);
std::string to_utf8(const std::filesystem::path&);
std::filesystem::path from_utf8(const std::string&);
std::filesystem::path make_relative(const std::filesystem::path&);
std::filesystem::path make_relative(const std::filesystem::path&, const std::filesystem::path&);
bool is_exist(const std::filesystem::path&);
bool is_executable(const std::filesystem::path&);
bool is_extension(const std::filesystem::path&, const std::string&);
bool ensure_directory(const std::filesystem::path&);
std::filesystem::path backslash_handle(const std::filesystem::path&);
std::filesystem::path case_insensitive_find(const std::filesystem::path&);
}