2024-08-30 05:03:32 +03:00
|
|
|
#ifndef UTILS_H
|
|
|
|
#define UTILS_H
|
|
|
|
|
|
|
|
#include <string>
|
2024-10-05 13:52:44 +03:00
|
|
|
#include <vector>
|
2024-08-30 05:03:32 +03:00
|
|
|
|
|
|
|
std::string to_utf8(std::wstring wide_string);
|
|
|
|
std::wstring from_utf8(std::string string);
|
|
|
|
|
2024-10-05 13:52:44 +03:00
|
|
|
std::string get_path_relative_to_home(std::string path);
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
bool vector_contains_element(const std::vector<T> &vector, const T &to_find);
|
|
|
|
|
2024-08-30 05:03:32 +03:00
|
|
|
#endif // UTILS_H
|