Pike v8.0 release 1738

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.