2016-07-11 11:14:58 -04:00
|
|
|
namespace Utils
|
|
|
|
{
|
|
|
|
std::string GetMimeType(std::string url);
|
|
|
|
std::string ParseChallenge(std::string data);
|
2016-08-28 13:38:16 -04:00
|
|
|
void OutputDebugLastError();
|
2016-07-11 11:14:58 -04:00
|
|
|
|
|
|
|
template <typename T> void Merge(std::vector<T>* target, T* source, size_t length)
|
|
|
|
{
|
|
|
|
if (source)
|
|
|
|
{
|
|
|
|
for (size_t i = 0; i < length; ++i)
|
|
|
|
{
|
|
|
|
target->push_back(source[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename T> void Merge(std::vector<T>* target, std::vector<T> source)
|
|
|
|
{
|
|
|
|
for (auto &entry : source)
|
|
|
|
{
|
|
|
|
target->push_back(entry);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|