add split string function

This commit is contained in:
chatlanin
2022-03-01 12:03:12 +03:00
parent e872067709
commit d7bff82e02
5 changed files with 35 additions and 35 deletions

View File

@@ -1,6 +1,11 @@
#include "src/string/string.hpp"
#include <iostream>
#include "string/string.hpp"
int main(int argc, char *argv[])
{
return 0;
std::string str { "asdf,qwer,zxcv" };
hack::v_str v = hack::split_str(str, ',');
for (const auto& c : v) std::cout << c << std::endl;
}