(s, pos int)
| 51 | func newMatchState() *MatchData { return &MatchData{[]uint32{}} } |
| 52 | |
| 53 | func (st *MatchData) addPosCapture(s, pos int) { |
| 54 | for s+1 >= len(st.captures) { |
| 55 | st.captures = append(st.captures, 0) |
| 56 | } |
| 57 | st.captures[s] = (uint32(pos) << 1) | 1 |
| 58 | st.captures[s+1] = (uint32(pos) << 1) | 1 |
| 59 | } |
| 60 | |
| 61 | func (st *MatchData) setCapture(s, pos int) uint32 { |
| 62 | for s >= len(st.captures) { |