plutonium sdk support

This commit is contained in:
2025-02-07 14:44:43 -06:00
parent 3020770cb3
commit 27ae961fd8
22 changed files with 581 additions and 143 deletions
+14
View File
@@ -140,4 +140,18 @@ namespace utils::string
return timestamp;
}
std::string trim(const std::string& str, const std::string& whitespace)
{
const auto first = str.find_first_not_of(whitespace);
if (first == std::string::npos)
{
return {};
}
const auto last = str.find_last_not_of(whitespace);
const auto range = last - first + 1;
return str.substr(first, range);
}
}