StringSegmentSplit(StringSegmentSplitOptions) Method
Splits this
StringSegment instance into a collection of
StringSegment instances without allocating new strings.
This overload uses the whitespace characters as separators. Alternatively, you can use the
ReadToWhiteSpace extension method.
See the
Remarks section of the
StringSegment type for details and some examples.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public IList<StringSegment> Split(
StringSegmentSplitOptions options
)
Public Function Split (
options As StringSegmentSplitOptions
) As IList(Of StringSegment)
public:
IList<StringSegment>^ Split(
StringSegmentSplitOptions options
)
member Split :
options : StringSegmentSplitOptions -> IList<StringSegment>
- options StringSegmentSplitOptions
- A StringSegmentSplitOptions value that specifies whether to trim segments and remove empty entries.
IListStringSegmentA list of
StringSegment instances, whose elements contain the substrings in this
StringSegment that are
delimited by whitespace characters.