Improve check for systime vs streamtime

This commit is contained in:
badaix 2019-12-01 22:56:49 +01:00
parent f35efe568a
commit eb94867b57
4 changed files with 37 additions and 5 deletions

View file

@ -95,6 +95,22 @@ static std::string uriDecode(const std::string& src)
}
static void split_left(const std::string& s, char delim, std::string& left, std::string& right)
{
auto pos = s.find(delim);
if (pos != std::string::npos)
{
left = s.substr(0, pos);
right = s.substr(pos + 1);
}
else
{
left = s;
right = "";
}
}
static std::vector<std::string>& split(const std::string& s, char delim, std::vector<std::string>& elems)
{