Home | History | Annotate | Download | only in syntax

Lines Matching defs:Regexp

8 // In this package, re is always a *Regexp and r is always a rune.
17 // A Regexp is a node in a regular expression syntax tree.
18 type Regexp struct {
21 Sub []*Regexp // subexpressions, if any
22 Sub0 [1]*Regexp // storage for short Sub
62 func (x *Regexp) Equal(y *Regexp) bool {
115 func writeRegexp(b *bytes.Buffer, re *Regexp) {
245 func (re *Regexp) String() string {
291 // MaxCap walks the regexp to find the maximum capture index.
292 func (re *Regexp) MaxCap() int {
305 // CapNames walks the regexp to find the names of capturing groups.
306 func (re *Regexp) CapNames() []string {
312 func (re *Regexp) capNames(names []string) {