mirror of
https://github.com/harfang3d/harfang3d.git
synced 2024-07-12 21:32:26 +00:00
45 lines
1.5 KiB
C
45 lines
1.5 KiB
C
![]() |
// HARFANG(R) Copyright (C) 2021 Emmanuel Julien, NWNC HARFANG. Released under GPL/LGPL/Commercial Licence, see licence.txt for details.
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
|
||
|
namespace hg {
|
||
|
|
||
|
bool IsPathAbsolute(const std::string &path);
|
||
|
|
||
|
std::string PathToDisplay(const std::string &path);
|
||
|
std::string NormalizePath(const std::string &path);
|
||
|
|
||
|
std::string PathToDisplay(const std::string &path);
|
||
|
std::string NormalizePath(const std::string &path);
|
||
|
|
||
|
std::string FactorizePath(const std::string &path);
|
||
|
std::string CleanPath(const std::string &path);
|
||
|
std::string CleanFileName(const std::string &filename);
|
||
|
|
||
|
std::string CutFilePath(const std::string &path);
|
||
|
std::string CutFileName(const std::string &path);
|
||
|
std::string CutFileExtension(const std::string &path);
|
||
|
|
||
|
std::string GetFilePath(const std::string &path);
|
||
|
std::string GetFileName(const std::string &path);
|
||
|
std::string GetFileExtension(const std::string &path);
|
||
|
|
||
|
bool HasFileExtension(const std::string &path);
|
||
|
|
||
|
bool PathStartsWith(const std::string &path, const std::string &with);
|
||
|
std::string PathStripPrefix(const std::string &path, const std::string &prefix);
|
||
|
std::string PathStripSuffix(const std::string &path, const std::string &suffix);
|
||
|
std::string PathJoin(const std::vector<std::string> &elements);
|
||
|
|
||
|
std::string SwapFileExtension(const std::string &path, const std::string &ext);
|
||
|
|
||
|
std::string GetCurrentWorkingDirectory();
|
||
|
bool SetCurrentWorkingDirectory(const std::string &path);
|
||
|
|
||
|
std::string GetUserFolder();
|
||
|
|
||
|
} // namespace hg
|