diff options
| author | Leonetienne <leonetienne@hotmail.de> | 2022-03-13 15:52:53 +0100 |
|---|---|---|
| committer | Leonetienne <leonetienne@hotmail.de> | 2022-03-13 15:52:53 +0100 |
| commit | 25bd26972945f956ad4c92ce8a61bb6126c0dedb (patch) | |
| tree | 9548e39ced9cd541586a8dd5c12638a0edb6a1ca /Exec/main.cpp | |
| parent | 5f791b8d9f66b53e1019abfe6a13b6e86fe5ca51 (diff) | |
Implementation Split
Diffstat (limited to 'Exec/main.cpp')
| -rw-r--r-- | Exec/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<std::string> foo =
+ StringTools::Split("Hello, lol, test", ", ");
+
+ for (const auto& it : foo)
+ std::cout << "'" << it << "'" << std::endl;
return 0;
}
|
