recompute ovecSlice #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "jettero/pcre:recompute-ovecSlice"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The first two entries are always PCRE2_UNSET, then there's 2*(capture_top-1). At least that's how I read https://www.pcre.org/current/doc/html/pcre2callout.html
@ -594,2 +594,2 @@
ovecSlice := unsafe.Slice((*lib.Tsize_t)(unsafe.Pointer(ccb.Foffset_vector)), (ccb.Fcapture_top*2)-1)
ovecSlice := unsafe.Slice((*lib.Tsize_t)(unsafe.Pointer(ccb.Foffset_vector)), 2+(ccb.Fcapture_top-1)*2)
The
2+
isn't needed because that's what theovecSlice = ovecSlice[2:]
line is for. Otherwise, this looks good, thanks.Checkout
From your project repository, check out a new branch and test the changes.