add new split string implemantation

This commit is contained in:
chatlanin
2022-07-20 11:13:55 +03:00
parent 7ec159ac5f
commit e7d35b0e1d
4 changed files with 25 additions and 17 deletions

View File

@@ -48,6 +48,10 @@ int main(int argc, char *argv[])
hack::string::v_str v = hack::string::split_str(str, ',');
hack::log log;
for (const auto& c : v) log(c);
std::string str_2 { "qqq,aaa:eee,ggg" };
hack::string::v_str v_2 = hack::string::split_str(str_2, ",:");
for (const auto& c : v_2) log(c);
}
{// ex: renge::within