--- In [email protected], "Sheri" <sheri...@...> wrote:
> > > I think if a user vector handle is provided, something should now > > > go into it even if there is no "offsets" option. Ditto if a > > > variable name is provided. > > > > Uh..so what goes into variable if present? First element in > > vector returned by pcre_exec? > No, a string from first element (offset) to the second element (offset) in > the subject. The second element will have the offset of end of the subject. > The user would need to prepend this string onto the beginning of the next > segment to continue searching for a match. That sounds like what's meant to go into vector. Do I respect "nocaptures" option if present and not return matched subject substring? I assume you want that substring to go into variable if named? Can I assume that pcre_exec will always return an empty vector if PCRE_ERROR_PARTIAL returned and pcre version < 8.0? If so means I don't have to do a version check, just a "how many elements in reteruend offsets vector" check.
