Lines Matching refs:regexp
5 package regexp
15 "regexp/syntax"
22 // TestRE2 tests this package's regexp API against test cases
47 // the strings. In the block that follows a regexp, each line
49 // the regexp on the corresponding string.
54 // each regexp run produces two match results, one for a
55 // ``full match'' that restricts the regexp to matching the entire
90 re *Regexp
91 refull *Regexp
121 // Is a regexp.
127 if err.Error() == "error parsing regexp: invalid escape sequence: `\\C`" {
201 var run = []func(*Regexp, *Regexp, string) ([]int, string){
208 func runFull(re, refull *Regexp, text string) ([]int, string) {
213 func runPartial(re, refull *Regexp, text string) ([]int, string) {
218 func runFullLongest(re, refull *Regexp, text string) ([]int, string) {
223 func runPartialLongest(re, refull *Regexp, text string) ([]int, string) {
228 var match = []func(*Regexp, *Regexp, string) (bool, string){
235 func matchFull(re, refull *Regexp, text string) (bool, string) {
240 func matchPartial(re, refull *Regexp, text string) (bool, string) {
245 func matchFullLongest(re, refull *Regexp, text string) (bool, string) {
250 func matchPartialLongest(re, refull *Regexp, text string) (bool, string) {
264 func tryCompile(s string) (re *Regexp, err error) {
328 // TestFowler runs this package's regexp API against the
518 // extended regexp (what we support)