Files

35 lines
965 B
C++

//
// Copyright(c) 2016-2017 benikabocha.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#ifndef SABA_BASE_PATH_H_
#define SABA_BASE_PATH_H_
#include <string>
#include <vector>
namespace saba {
class PathUtil
{
public:
PathUtil() = delete;
PathUtil(const PathUtil&) = delete;
PathUtil& operator = (const PathUtil&) = delete;
static std::string GetCWD();
static std::string GetExecutablePath();
static std::string Combine(const std::vector<std::string>& parts);
static std::string Combine(const std::string& a, const std::string& b);
static std::string GetDirectoryName(const std::string& path);
static std::string GetFilename(const std::string& path);
static std::string GetFilenameWithoutExt(const std::string& path);
static std::string GetExt(const std::string& path);
static std::string GetDelimiter();
static std::string Normalize(const std::string& path);
};
}
#endif // !SABA_BASE_PATH_H_