open-story-teller/core/lib/sys_lib.h
anthony@rabine.fr 7973aa4709
Some checks failed
build-story-editor / build_linux (push) Has been cancelled
build-story-editor / build_win32 (push) Has been cancelled
Deploy / deploy (push) Has been cancelled
Fix win32 build, fix duplicate resource files, fix VM stop
2025-01-20 17:37:50 +01:00

21 lines
796 B
C++

#pragma once
#include <string>
#include <filesystem>
class SysLib
{
public:
static std::string GetFileExtension(const std::string &FileName);
static std::string GetFileName(const std::string &path);
static std::string GetDirectory(const std::string &filePath);
static std::string RemoveFileExtension(const std::string &FileName);
static void ReplaceCharacter(std::string &theString, const std::string &toFind, const std::string &toReplace);
static std::string Normalize(const std::string &input);
static void EraseString(std::string &theString, const std::string &toErase);
static std::string ToUpper(const std::string &input);
static std::string ToLower(const std::string &input);
static std::string ReadFile(const std::filesystem::path &filename);
};