type regexp/syntax.Regexp
57 uses
regexp/syntax (current package)
compile.go#L70: func Compile(re *Regexp) (*Prog, error) {
compile.go#L88: func (c *compiler) compile(re *Regexp) frag {
parse.go#L81: stack []*Regexp // stack of parsed expressions
parse.go#L82: free *Regexp
parse.go#L88: func (p *parser) newRegexp(op Op) *Regexp {
parse.go#L92: *re = Regexp{}
parse.go#L94: re = new(Regexp)
parse.go#L100: func (p *parser) reuse(re *Regexp) {
parse.go#L108: func (p *parser) push(re *Regexp) *Regexp {
parse.go#L209: func (p *parser) op(op Op) *Regexp {
parse.go#L266: func repeatIsValid(re *Regexp, n int) bool {
parse.go#L291: func (p *parser) concat() *Regexp {
parse.go#L311: func (p *parser) alternate() *Regexp {
parse.go#L337: func cleanAlt(re *Regexp) {
parse.go#L363: func (p *parser) collapse(subs []*Regexp, op Op) *Regexp {
parse.go#L399: func (p *parser) factor(sub []*Regexp) []*Regexp {
parse.go#L477: var first *Regexp
parse.go#L484: var ifirst *Regexp
parse.go#L586: func (p *parser) leadingString(re *Regexp) ([]rune, Flags) {
parse.go#L598: func (p *parser) removeLeadingString(re *Regexp, n int) *Regexp {
parse.go#L635: func (p *parser) leadingRegexp(re *Regexp) *Regexp {
parse.go#L652: func (p *parser) removeLeadingRegexp(re *Regexp, reuse bool) *Regexp {
parse.go#L675: func literalRegexp(s string, flags Flags) *Regexp {
parse.go#L676: re := &Regexp{Op: OpLiteral}
parse.go#L695: func Parse(s string, flags Flags) (*Regexp, error) {
parse.go#L1093: func isCharClass(re *Regexp) bool {
parse.go#L1101: func matchRune(re *Regexp, r rune) bool {
parse.go#L1138: func mergeCharClass(dst, src *Regexp) {
regexp.go#L17: type Regexp struct {
regexp.go#L20: Sub []*Regexp // subexpressions, if any
regexp.go#L21: Sub0 [1]*Regexp // storage for short Sub
regexp.go#L63: func (x *Regexp) Equal(y *Regexp) bool {
regexp.go#L116: func writeRegexp(b *strings.Builder, re *Regexp) {
regexp.go#L246: func (re *Regexp) String() string {
regexp.go#L293: func (re *Regexp) MaxCap() int {
regexp.go#L307: func (re *Regexp) CapNames() []string {
regexp.go#L313: func (re *Regexp) capNames(names []string) {
simplify.go#L14: func (re *Regexp) Simplify() *Regexp {
simplify.go#L26: nre = new(Regexp)
simplify.go#L45: return &Regexp{Op: OpEmptyMatch}
simplify.go#L64: nre := &Regexp{Op: OpConcat}
simplify.go#L85: var prefix *Regexp
simplify.go#L87: prefix = &Regexp{Op: OpConcat}
simplify.go#L98: nre2 := &Regexp{Op: OpConcat}
simplify.go#L113: return &Regexp{Op: OpNoMatch}
simplify.go#L134: func simplify1(op Op, flags Flags, sub, re *Regexp) *Regexp {
simplify.go#L148: re = &Regexp{Op: op, Flags: flags}
regexp
regexp.go#L270: func minInputLen(re *syntax.Regexp) int {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |