StringSegmentIndexOf(String, Int32, Int32, StringComparison) Method
Gets the zero-based index of the first occurrence of the specified
value in this
StringSegment
using the specified
startIndex,
count and
comparison.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public int IndexOf(
string value,
int startIndex,
int count,
StringComparison comparison = StringComparison.Ordinal
)
Public Function IndexOf (
value As String,
startIndex As Integer,
count As Integer,
Optional comparison As StringComparison = StringComparison.Ordinal
) As Integer
public:
int IndexOf(
String^ value,
int startIndex,
int count,
StringComparison comparison = StringComparison::Ordinal
)
member IndexOf :
value : string *
startIndex : int *
count : int *
?comparison : StringComparison
(* Defaults:
let _comparison = defaultArg comparison StringComparison.Ordinal
*)
-> int
- value String
- The string to seek.
- startIndex Int32
- The search starting position.
- count Int32
- The number of character positions to examine.
- 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
startIndex.