From 25bd26972945f956ad4c92ce8a61bb6126c0dedb Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sun, 13 Mar 2022 15:52:53 +0100 Subject: Implementation Split --- Exec/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Exec/main.cpp') diff --git a/Exec/main.cpp b/Exec/main.cpp index b833214..bb337a5 100644 --- a/Exec/main.cpp +++ b/Exec/main.cpp @@ -3,7 +3,11 @@ int main() { - std::cout << StringTools::Replace("Hello, ${where}!\n", "${where}", "World") << std::endl; + std::vector foo = + StringTools::Split("Hello, lol, test", ", "); + + for (const auto& it : foo) + std::cout << "'" << it << "'" << std::endl; return 0; } -- cgit v1.2.3