StringSegmentIndexOf(ReadOnlySpanChar) Method
Gets the zero-based index of the first occurrence of the specified
value in this
StringSegment
using ordinal comparison.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
public int IndexOf(
ReadOnlySpan<char> value
)
Public Function IndexOf (
value As ReadOnlySpan(Of Char)
) As Integer
public:
int IndexOf(
ReadOnlySpan<wchar_t> value
)
member IndexOf :
value : ReadOnlySpan<char> -> int
- value ReadOnlySpanChar
- The ReadOnlySpan<char> to seek.
Int32The zero-based index position of
value if that
ReadOnlySpan<char> is found, or -1 if it is not.
If value is
ReadOnlySpan<char>.Empty, the return value is 0.