Finds a text pattern backward.

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

Syntax

C#
public SearchResult FindPrev(
	string value,
	int startIndex
)
Visual Basic
Public Function FindPrev ( 
	value As String,
	startIndex As Integer
) As SearchResult

Parameters

value
Type: System..::..String
The string to find.
startIndex
Type: System..::..Int32
The search starting position.

Return Value

Type: SearchResult
Search result object if found, otherwise null if not found.

Remarks

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

This method searches the text pattern case-sensitively. If the matching should be case-insensitively, use other overload method.

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 out of valid range.

See Also