StringSegmentLastIndexOf(ReadOnlySpanChar, StringComparison) Method
Gets the zero-based index of the last occurrence of the specified
value in this
StringSegment
using the specified
comparison.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public int LastIndexOf(
ReadOnlySpan<char> value,
StringComparison comparison = StringComparison.Ordinal
)
Public Function LastIndexOf (
value As ReadOnlySpan(Of Char),
Optional comparison As StringComparison = StringComparison.Ordinal
) As Integer
public:
int LastIndexOf(
ReadOnlySpan<wchar_t> value,
StringComparison comparison = StringComparison::Ordinal
)
member LastIndexOf :
value : ReadOnlySpan<char> *
?comparison : StringComparison
(* Defaults:
let _comparison = defaultArg comparison StringComparison.Ordinal
*)
-> int
- value ReadOnlySpanChar
- The ReadOnlySpan<char> to seek.
- comparison StringComparison (Optional)
- A StringComparison value that specified the rules for the search. This parameter is optional.
Default value: Ordinal.
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 the last index position of this
StringSegment.