(z *nstate)
| 264 | } |
| 265 | |
| 266 | func (m *matcher) cache(z *nstate) *dstate { |
| 267 | enc := z.enc() |
| 268 | d := m.dstate[enc] |
| 269 | if d != nil { |
| 270 | return d |
| 271 | } |
| 272 | |
| 273 | d = &dstate{enc: enc} |
| 274 | m.dstate[enc] = d |
| 275 | d.matchNL = m.computeNext(d, '\n') == &dmatch |
| 276 | d.matchEOT = m.computeNext(d, endText) == &dmatch |
| 277 | return d |
| 278 | } |
| 279 | |
| 280 | func (m *matcher) match(b []byte, beginText, endText bool) (end int) { |
| 281 | // fmt.Printf("%v\n", m.prog) |
no test coverage detected