Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Tools
Tools.Hilfe
Tools.Hilfe.Expression

Method Tools.Hilfe.Expression()->find_matching()


Method find_matching

int(-1..) find_matching(string token, int(0..)|void pos)

Description

Returns the position of the matching parenthesis of the given kind, starting from the given position. The position should be the position after the opening parenthesis, or later. Assuming balanced code. Returns -1 on failure.