Home | History | Annotate | Download | only in regexp

Lines Matching refs:matchcap

46 	matchcap       []int        // capture information for the match
84 m.matchcap = make([]int, ncap)
92 m.matchcap = m.matchcap[:ncap]
104 t.cap = make([]int, len(m.matchcap), cap(m.matchcap))
112 // If so, m.matchcap holds the submatch information.
119 for i := range m.matchcap {
120 m.matchcap[i] = -1
157 if len(m.matchcap) > 0 {
158 m.matchcap[0] = pos
160 m.add(runq, uint32(m.p.Start), pos, m.matchcap, flag, nil)
167 if len(m.matchcap) == 0 && m.matched {
206 if longest && m.matched && len(t.cap) > 0 && m.matchcap[0] < t.cap[0] {
217 if len(t.cap) > 0 && (!longest || !m.matched || m.matchcap[1] < pos) {
219 copy(m.matchcap, t.cap)
311 // If so, m.matchcap holds the submatch information.
318 for i := range m.matchcap {
319 m.matchcap[i] = -1
357 if len(m.matchcap) > 0 {
358 m.matchcap[0] = 0
359 m.matchcap[1] = pos
390 if int(inst.Arg) < len(m.matchcap) {
391 m.matchcap[inst.Arg] = pos
450 dstCap = append(dstCap, m.matchcap...)