Implementation Split

This commit is contained in:
Leonetienne
2022-03-13 15:52:53 +01:00
parent 5f791b8d9f
commit 25bd269729
5 changed files with 60 additions and 20 deletions

View File

@@ -3,7 +3,11 @@
int main()
{
std::cout << StringTools::Replace("Hello, ${where}!\n", "${where}", "World") << std::endl;
std::vector<std::string> foo =
StringTools::Split("Hello, lol, test", ", ");
for (const auto& it : foo)
std::cout << "'" << it << "'" << std::endl;
return 0;
}