Files
XCEngine/new_editor/app/Features/Project/ProjectBrowserModelInternal.h

25 lines
896 B
C
Raw Normal View History

#pragma once
#include <filesystem>
#include <string>
#include <string_view>
#include <vector>
namespace XCEngine::UI::Editor::App::ProjectBrowserModelInternal {
inline constexpr std::string_view kAssetsRootId = "Assets";
std::string ToLowerCopy(std::string value);
std::string PathToUtf8String(const std::filesystem::path& path);
std::string NormalizePathSeparators(std::string value);
std::string BuildRelativeItemId(
const std::filesystem::path& path,
const std::filesystem::path& assetsRoot);
std::string BuildAssetDisplayName(const std::filesystem::path& path, bool directory);
bool IsMetaFile(const std::filesystem::path& path);
bool HasChildDirectories(const std::filesystem::path& folderPath);
std::vector<std::filesystem::path> CollectSortedChildDirectories(
const std::filesystem::path& folderPath);
} // namespace XCEngine::UI::Editor::App::ProjectBrowserModelInternal