Finds a text pattern.

Namespace: Sgry.Azuki
Assembly: Azuki (in Azuki.dll) Version: 1.7.5.21597

Syntax

C#
public SearchResult FindNext(
	string value,
	int startIndex,
	bool matchCase
)
Visual Basic
Public Function FindNext ( _
	value As String, _
	startIndex As Integer, _
	matchCase As Boolean _
) As SearchResult

Parameters

value
Type: System..::..String
The String to find.
startIndex
Type: System..::..Int32
The search starting position.
matchCase
Type: System..::..Boolean
Whether the search should be case-sensitive or not.

Return Value

Search result object if found, otherwise null if not found.

Remarks

This method finds the first occurrence of the pattern for the range of [startIndex, EOD) where EOD means the end-of-document. The text matching process continues for the document end and does not stop at line ends nor null-characters. If the search range should end before EOD, use other overload method.

If matchCase is true, the text pattern will be matched case-sensitively otherwise case will be ignored.

If parameter value is an empty string, search result will be the range of [startIndex, startIndex).

Exceptions

ExceptionCondition
System..::..ArgumentNullException Parameter value is null.
System..::..ArgumentOutOfRangeException Parameter startIndex is greater than character count in this document.

See Also