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

@@ -9,4 +9,8 @@ TEST(split_str, check)
{
std::vector<std::string> v { "asdf", "qwer", "zxcv" };
ASSERT_EQ(hack::string::split_str("asdf,qwer,zxcv", ','), v);
std::vector<std::string> v1 { "qqq", "aaa", "eee", "sss" };
ASSERT_EQ(hack::string::split_str("qqq,aaa:eee,sss", ":,"), v1);
}