Home | History | Annotate | Download | only in regexp

Lines Matching refs:pat

19 	pat     string
25 return fmt.Sprintf("pat: %#q text: %#q", t.pat, t.text)
150 re := MustCompile(test.pat)
151 if re.String() != test.pat {
152 t.Errorf("String() = `%s`; should be `%s`", re.String(), test.pat)
173 result := MustCompile(test.pat).FindString(test.text)
211 testFindIndex(&test, MustCompile(test.pat).FindIndex([]byte(test.text)), t)
217 testFindIndex(&test, MustCompile(test.pat).FindStringIndex(test.text), t)
223 testFindIndex(&test, MustCompile(test.pat).FindReaderIndex(strings.NewReader(test.text)), t)
231 result := MustCompile(test.pat).FindAll([]byte(test.text), -1)
256 result := MustCompile(test.pat).FindAllString(test.text, -1)
302 testFindAllIndex(&test, MustCompile(test.pat).FindAllIndex([]byte(test.text), -1), t)
308 testFindAllIndex(&test, MustCompile(test.pat).FindAllStringIndex(test.text, -1), t)
336 result := MustCompile(test.pat).FindSubmatch([]byte(test.text))
372 result := MustCompile(test.pat).FindStringSubmatch(test.text)
413 testFindSubmatchIndex(&test, MustCompile(test.pat).FindSubmatchIndex([]byte(test.text)), t)
419 testFindSubmatchIndex(&test, MustCompile(test.pat).FindStringSubmatchIndex(test.text), t)
425 testFindSubmatchIndex(&test, MustCompile(test.pat).FindReaderSubmatchIndex(strings.NewReader(test.text)), t)
433 result := MustCompile(test.pat).FindAllSubmatch([]byte(test.text), -1)
453 result := MustCompile(test.pat).FindAllStringSubmatch(test.text, -1)
490 testFindAllSubmatchIndex(&test, MustCompile(test.pat).FindAllSubmatchIndex([]byte(test.text), -1), t)
496 testFindAllSubmatchIndex(&test, MustCompile(test.pat).FindAllStringSubmatchIndex(test.text, -1), t)