Soundux/src/helper/misc/misc.hpp

21 lines
551 B
C++
Raw Normal View History

#pragma once
#include <optional>
#include <string>
#include <vector>
namespace Soundux
{
namespace Helpers
{
#if defined(_WIN32)
std::wstring widen(const std::string &);
std::string narrow(const std::wstring &);
#endif
bool deleteFile(const std::string &, bool = true);
2021-05-05 21:36:31 +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
} // namespace Helpers
} // namespace Soundux