Home | History | Annotate | Download | only in regexp

Lines Matching defs:Compile

81 	// read-only after Compile
90 expr string // as passed to Compile
104 // String returns the source text used to compile the regular expression.
121 // Compile parses a regular expression and returns, if successful,
131 func Compile(expr string) (*Regexp, error) {
132 return compile(expr, syntax.Perl, false)
135 // CompilePOSIX is like Compile but restricts the regular expression
155 return compile(expr, syntax.POSIX, true)
166 func compile(expr string, mode syntax.Flags, longest bool) (*Regexp, error) {
175 prog, err := syntax.Compile(re)
231 // MustCompile is like Compile but panics if the expression cannot be parsed.
235 regexp, error := Compile(str)
237 panic(`regexp: Compile(` + quote(str) + `): ` + error.Error())
425 // read by the RuneReader. More complicated queries need to use Compile and
428 re, err := Compile(pattern)
437 // to use Compile and the full Regexp interface.
439 re, err := Compile(pattern)
448 // to use Compile and the full Regexp interface.
450 re, err := Compile(pattern)