NAME ^

Capture_PIR - PIR-based Capture class

DESCRIPTION ^

This file implements a Capture class of objects. Ideally we'd like to use the Capture class that is written in C, but unfortunately Parrot currently has a limitation in handling subclasses of the built-in Capture. So, this is a temporary PIR-based version until the Capture PMC is working properly.

get_string_keyed_int(int key)

Returns the portion of the target string matched by key, in string context. If the Match object contains an array of matches, a space seperated list of matches is returned.

get_pmc_keyed_int(int key)

Returns the subpattern capture associated with key. This returns either a single Match object or an array of match objects depending on the rule.


parrot