StringSegmentSplit(ReadOnlySpanChar, StringSegmentSplitOptions) Method
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public IList<StringSegment> Split(
ReadOnlySpan<char> separator,
StringSegmentSplitOptions options
)
Public Function Split (
separator As ReadOnlySpan(Of Char),
options As StringSegmentSplitOptions
) As IList(Of StringSegment)
public:
IList<StringSegment>^ Split(
ReadOnlySpan<wchar_t> separator,
StringSegmentSplitOptions options
)
member Split :
separator : ReadOnlySpan<char> *
options : StringSegmentSplitOptions -> IList<StringSegment>
- separator ReadOnlySpanChar
- A ReadOnlySpan<char> that delimits the segments in this StringSegment. If empty, then no splitting will occur.
- 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
separator.