StringSegmentIndexOf(String, StringComparison) Method
Gets the zero-based index of the first occurrence of the specified
value in this
StringSegment
using the specified
comparison.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
public int IndexOf(
string value,
StringComparison comparison
)
Public Function IndexOf (
value As String,
comparison As StringComparison
) As Integer
public:
int IndexOf(
String^ value,
StringComparison comparison
)
member IndexOf :
value : string *
comparison : StringComparison -> int
- value String
- The string to seek.
- comparison StringComparison
- A StringComparison value that specified the rules for the search.
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 0.