2021-03-12 17:05:50 +01:00
|
|
|
#pragma once
|
2021-03-17 21:15:00 +01:00
|
|
|
#include <optional>
|
2021-03-12 17:05:50 +01:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace Soundux
|
|
|
|
{
|
|
|
|
namespace Helpers
|
|
|
|
{
|
|
|
|
#if defined(_WIN32)
|
2021-05-22 16:41:36 +02:00
|
|
|
std::wstring widen(const std::string &);
|
|
|
|
std::string narrow(const std::wstring &);
|
2021-03-12 17:05:50 +01:00
|
|
|
#endif
|
2021-05-22 16:41:36 +02:00
|
|
|
bool deleteFile(const std::string &, bool = true);
|
2021-05-05 21:36:31 +02:00
|
|
|
|
2021-05-22 16:41:36 +02:00
|
|
|
bool run(const std::string &);
|
|
|
|
std::pair<std::string, bool> getResultCompact(const std::string &);
|
|
|
|
std::pair<std::vector<std::string>, bool> getResult(const std::string &);
|
2021-05-05 21:36:31 +02:00
|
|
|
|
2021-03-12 17:05:50 +01:00
|
|
|
} // namespace Helpers
|
|
|
|
} // namespace Soundux
|