Finds a text pattern backward.
Namespace: Sgry.AzukiAssembly: Azuki (in Azuki.dll) Version: 1.7.13.40248
Syntax
C# |
---|
public SearchResult FindPrev( string value, int begin, int end, bool matchCase ) |
Visual Basic |
---|
Public Function FindPrev ( value As String, begin As Integer, end As Integer, matchCase As Boolean ) As SearchResult |
Parameters
- value
- Type: System..::..String
The string to find.
- begin
- Type: System..::..Int32
The begin index of the search range.
- end
- Type: System..::..Int32
The end index of the search range.
- matchCase
- Type: System..::..Boolean
Whether the search should be case-sensitive or not.
Return Value
Type: SearchResultSearch result object if found, otherwise null if not found.
Remarks
This method finds the last occurrence of the pattern in the range of [begin, end). The text matching process continues for the index specified by begin parameter and does not stop at line ends nor null-characters.
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 a range of [end, end).
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | Parameter value is null. |
System..::..ArgumentOutOfRangeException | Parameter begin or end is out of valid range. |