StringSegmentLastIndexOf(StringSegment, Int32, StringComparison) Method
Gets the zero-based index of the last occurrence of the specified
value in this
StringSegment
using the specified
startIndex and
comparison.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public int LastIndexOf(
StringSegment value,
int startIndex,
StringComparison comparison = StringComparison.Ordinal
)
Public Function LastIndexOf (
value As StringSegment,
startIndex As Integer,
Optional comparison As StringComparison = StringComparison.Ordinal
) As Integer
public:
int LastIndexOf(
StringSegment value,
int startIndex,
StringComparison comparison = StringComparison::Ordinal
)
member LastIndexOf :
value : StringSegment *
startIndex : int *
?comparison : StringComparison
(* Defaults:
let _comparison = defaultArg comparison StringComparison.Ordinal
*)
-> int
- value StringSegment
- The StringSegment to seek.
- startIndex Int32
- The search starting position.
- 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
StringSegment is found, or -1 if it is not.
If value is
Empty, the return value is the smaller of
startIndex and the last index position of this
StringSegment.