mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
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:
12
src/util.cpp
12
src/util.cpp
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user