xtd 0.2.0
Loading...
Searching...
No Matches

◆ split() [1/9]

template<typename char_t , typename traits_t , typename allocator_t >
xtd::array< basic_string > xtd::basic_string< char_t, traits_t, allocator_t >::split ( ) const
noexcept

Splits this basic_string into substrings that are based on the default white-space characters. White-space characters are defined by the c++ standard and return true if they are passed to the xtd::char_object::isspace() or std::iswspace() method.

Returns
An array whose elements contain the substrings in this basic_string that are delimited by one or more characters in white-space separators. For more information, see the Remarks section.
Remarks
Delimiter characters are not included in the elements of the returned array.
If the specified basic_string does not contain any of the characters in separator, or the count parameter is 1, the returned array consists of a single element that contains the specified basic_string.
Examples
split.cpp.