StringSegmentLastIndexOf(String, 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: 8.1.0
public int LastIndexOf(
string value,
int startIndex,
StringComparison comparison = StringComparison.Ordinal
)
Public Function LastIndexOf (
value As String,
startIndex As Integer,
Optional comparison As StringComparison = StringComparison.Ordinal
) As Integer
public:
int LastIndexOf(
String^ value,
int startIndex,
StringComparison comparison = StringComparison::Ordinal
)
member LastIndexOf :
value : string *
startIndex : int *
?comparison : StringComparison
(* Defaults:
let _comparison = defaultArg comparison StringComparison.Ordinal
*)
-> int
- value String
- The string 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 string 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.