forked from ValleyBell/in_vgm-libvgm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.hpp
19 lines (16 loc) · 790 Bytes
/
utils.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include <vector>
#include <string>
#ifdef _WIN32
#undef GetFileTitle
#undef GetFileExtension
#endif
const char* GetFileTitle(const char* filePath);
const char* GetFileExtension(const char* filePath);
const wchar_t* GetFileTitle(const wchar_t* filePath);
const wchar_t* GetFileExtension(const wchar_t* filePath);
void StandardizeDirSeparators(std::string& filePath);
std::string CombinePaths(const std::string& basePath, const std::string& addPath);
std::string FindFile_List(const std::vector<std::string>& fileList, const std::vector<std::string>& pathList);
std::string FindFile_Single(const std::string& fileName, const std::vector<std::string>& pathList);
std::vector<std::string> CombineBaseWithList(const std::string base, const std::vector<std::string>& postfixes);