regexp/syntax.Regexp.Cap (field)
10 uses
regexp/syntax (current package)
compile.go#L128: bra := c.cap(uint32(re.Cap << 1))
compile.go#L130: ket := c.cap(uint32(re.Cap<<1 | 1))
parse.go#L945: p.op(opLeftParen).Cap = p.numCap
parse.go#L1186: re.Cap = p.numCap
parse.go#L1429: if re2.Cap == 0 {
regexp.go#L25: Cap int // capturing index, for OpCapture
regexp.go#L108: if x.Cap != y.Cap || x.Name != y.Name || !x.Sub[0].Equal(y.Sub[0]) {
regexp.go#L296: m = re.Cap
regexp.go#L315: names[re.Cap] = re.Name
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |