mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-22 21:46:15 +02:00
Improve check for systime vs streamtime
This commit is contained in:
parent
f35efe568a
commit
eb94867b57
4 changed files with 37 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue