regexp/syntax.Prog.NumCap (field)

14 uses

	regexp/syntax (current package)
		compile.go#L82: 	c.p.NumCap = 2 // implicit ( and ) for whole match $0
		compile.go#L183: 	if c.p.NumCap < int(arg)+1 {
		compile.go#L184: 		c.p.NumCap = int(arg) + 1
		prog.go#L21: 	NumCap int // number of InstCapture insts in re

	regexp
		onepass.go#L225: 		NumCap: prog.NumCap,
		regexp.go#L186: 	matchcap := prog.NumCap
		regexp.go#L619: 	if nmatch > re.prog.NumCap {
		regexp.go#L620: 		nmatch = re.prog.NumCap
		regexp.go#L784: 		matches := re.doExecute(nil, b, s, pos, re.prog.NumCap, nil)
		regexp.go#L891: 	a := re.doExecute(nil, b, "", 0, re.prog.NumCap, dstCap[:0])
		regexp.go#L1036: 	return re.pad(re.doExecute(nil, b, "", 0, re.prog.NumCap, nil))
		regexp.go#L1046: 	a := re.doExecute(nil, nil, s, 0, re.prog.NumCap, dstCap[:0])
		regexp.go#L1065: 	return re.pad(re.doExecute(nil, nil, s, 0, re.prog.NumCap, nil))
		regexp.go#L1074: 	return re.pad(re.doExecute(r, nil, "", 0, re.prog.NumCap, nil))