mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-04-22 06:02:06 +02:00
26 lines
620 B
C++
26 lines
620 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <fstream>
|
|
|
|
namespace common_helpers {
|
|
|
|
bool create_dir(const std::string &dir);
|
|
|
|
bool create_dir(const std::wstring &dir);
|
|
|
|
void write(std::ofstream &file, const std::string &data);
|
|
|
|
std::wstring str_to_w(const std::string &str);
|
|
|
|
std::string wstr_to_a(const std::wstring &wstr);
|
|
|
|
bool starts_with_i(const std::string &target, const std::string &query);
|
|
|
|
bool starts_with_i(const std::wstring &target, const std::wstring &query);
|
|
|
|
bool ends_with_i(const std::string &target, const std::string &query);
|
|
|
|
bool ends_with_i(const std::wstring &target, const std::wstring &query);
|
|
|
|
}
|