Finds matched bracket from specified index.
Namespace: Sgry.AzukiAssembly: Azuki (in Azuki.dll) Version: 1.7.13.40248
Syntax
C# |
---|
public int FindMatchedBracket( int index, int maxSearchLength ) |
Visual Basic |
---|
Public Function FindMatchedBracket ( index As Integer, maxSearchLength As Integer ) As Integer |
Parameters
- index
- Type: System..::..Int32
The index to start searching matched bracket.
- maxSearchLength
- Type: System..::..Int32
Maximum number of characters to search matched bracket for.
Return Value
Type: Int32Index of the matched bracket if found. Otherwise -1.
Remarks
This method searches the matched bracket from specified index. If the character at specified index was not a sort of bracket, or if specified index points to a character which has no meaning on grammar (such as comment block, string literal, etc.), this method returns -1.