StringSegmentIndexOf(StringSegment) Method

Gets the zero-based index of the first occurrence of the specified value in this StringSegment using ordinal comparison.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public int IndexOf(
	StringSegment value
)

Parameters

value  StringSegment
The StringSegment to seek.

Return Value

Int32
The 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 0.

See Also