Boost reference removal and dev setup script. (#127)

* Removed unneeded boost library links.
* Replaced boost string split with util function.
* Added dev setup script.
* Updated readme.
This commit is contained in:
Ravin Perera
2020-09-26 18:20:07 +05:30
committed by GitHub
parent ef1a650f91
commit 4df0918f8e
7 changed files with 147 additions and 94 deletions

View File

@@ -363,4 +363,16 @@ namespace util
return remove(path.data());
}
void split_string(std::vector<std::string> &collection, std::string_view str, std::string_view delimeter)
{
size_t start = 0U;
size_t end = str.find(delimeter);
while (end != std::string::npos)
{
collection.push_back(std::string(str.substr(start, end - start)));
start = end + delimeter.length();
end = str.find(delimeter, start);
}
}
} // namespace util