xtd 0.2.0
Loading...
Searching...
No Matches
split.cpp

Shows how to use xtd::string::split method.

#include <xtd/xtd>
auto main() -> int {
auto strings = string("One Two Three\tFour\nFive").split();
console::write_line("strings.size = {}", strings.size());
for (auto string : strings)
console::write_line(string);
}
// This code produces the following output :
//
// strings.size = 5
// One
// Two
// Three
// Four
// Five