Lines Matching defs:Regexp

80 type Regexp struct {  struct
81 expr string // as passed to Compile
82 prog *syntax.Prog // compiled program
83 onepass *onePassProg // onepass program or nil
84 numSubexp int
85 maxBitStateLen int
86 subexpNames []string
87 prefix string // required prefix in unanchored matches
88 prefixBytes []byte // prefix, as a []byte
89 prefixRune rune // first rune in prefix
90 prefixEnd uint32 // pc for last rune in prefix
91 mpool int // pool for machines
92 matchcap int // size of recorded match lengths
93 prefixComplete bool // prefix is the entire regexp
94 cond syntax.EmptyOp // empty-width conditions required at start of match
95 minInputLen int // minimum length of the input in bytes
99 longest bool // whether regexp prefers leftmost-longest match
103 func (re *Regexp) String() string {
115 func (re *Regexp) Copy() *Regexp {
163 func (re *Regexp) Longest() {
232 func (re *Regexp) get() *machine {
260 func (re *Regexp) put(m *machine) {
268 func minInputLen(re *syntax.Regexp) int {
337 func (re *Regexp) NumSubexp() int {
346 func (re *Regexp) SubexpNames() []string {
357 func (re *Regexp) SubexpIndex(name string) int {
375 hasPrefix(re *Regexp) bool
376 index(re *Regexp, pos int) int
514 func (re *Regexp) LiteralPrefix() (prefix string, complete bool) {
520 func (re *Regexp) MatchReader(r io.RuneReader) bool {
526 func (re *Regexp) MatchString(s string) bool {
532 func (re *Regexp) Match(b []byte) bool {
572 func (re *Regexp) ReplaceAllString(src, repl string) string {
586 func (re *Regexp) ReplaceAllLiteralString(src, repl string) string {
596 func (re *Regexp) ReplaceAllStringFunc(src string, repl func(string) string) string {
603 …xp) replaceAll(bsrc []byte, src string, nmatch int, repl func(dst []byte, m []int) []byte) []byte {
671 func (re *Regexp) ReplaceAll(src, repl []byte) []byte {
689 func (re *Regexp) ReplaceAllLiteral(src, repl []byte) []byte {
699 func (re *Regexp) ReplaceAllFunc(src []byte, repl func([]byte) []byte) []byte {
754 func (re *Regexp) pad(a []int) []int {
769 func (re *Regexp) allMatches(s string, b []byte, n int, deliver func([]int)) {
818 func (re *Regexp) Find(b []byte) []byte {
831 func (re *Regexp) FindIndex(b []byte) (loc []int) {
844 func (re *Regexp) FindString(s string) string {
857 func (re *Regexp) FindStringIndex(s string) (loc []int) {
870 func (re *Regexp) FindReaderIndex(r io.RuneReader) (loc []int) {
883 func (re *Regexp) FindSubmatch(b []byte) [][]byte {
915 func (re *Regexp) Expand(dst []byte, template []byte, src []byte, match []int) []byte {
922 func (re *Regexp) ExpandString(dst []byte, template string, src string, match []int) []byte {
926 func (re *Regexp) expand(dst []byte, template string, bsrc []byte, src string, match []int) []byte {
1029 func (re *Regexp) FindSubmatchIndex(b []byte) []int {
1038 func (re *Regexp) FindStringSubmatch(s string) []string {
1058 func (re *Regexp) FindStringSubmatchIndex(s string) []int {
1067 func (re *Regexp) FindReaderSubmatchIndex(r io.RuneReader) []int {
1077 func (re *Regexp) FindAll(b []byte, n int) [][]byte {
1095 func (re *Regexp) FindAllIndex(b []byte, n int) [][]int {
1113 func (re *Regexp) FindAllString(s string, n int) []string {
1131 func (re *Regexp) FindAllStringIndex(s string, n int) [][]int {
1149 func (re *Regexp) FindAllSubmatch(b []byte, n int) [][][]byte {
1173 func (re *Regexp) FindAllSubmatchIndex(b []byte, n int) [][]int {
1191 func (re *Regexp) FindAllStringSubmatch(s string, n int) [][]string {
1216 func (re *Regexp) FindAllStringSubmatchIndex(s string, n int) [][]int {
1246 func (re *Regexp) Split(s string, n int) []string {
1286 func (re *Regexp) MarshalText() ([]byte, error) {
1292 func (re *Regexp) UnmarshalText(text []byte) error {