type regexp/syntax.EmptyOp
23 uses
regexp/syntax (current package)
compile.go#L265: func (c *compiler) empty(op EmptyOp) frag {
prog.go#L63: type EmptyOp uint8
prog.go#L66: EmptyBeginLine EmptyOp = 1 << iota
prog.go#L80: func EmptyOpContext(r1, r2 rune) EmptyOp {
prog.go#L81: var op EmptyOp = EmptyNoWordBoundary
prog.go#L169: func (p *Prog) StartCond() EmptyOp {
prog.go#L170: var flag EmptyOp
prog.go#L177: flag |= EmptyOp(i.Arg)
prog.go#L179: return ^EmptyOp(0)
prog.go#L267: switch EmptyOp(i.Arg) {
regexp
backtrack.go#L261: if !flag.match(syntax.EmptyOp(inst.Arg)) {
backtrack.go#L309: if startCond == ^syntax.EmptyOp(0) { // impossible
exec.go#L128: func (f lazyFlag) match(op syntax.EmptyOp) bool {
exec.go#L177: if startCond == ^syntax.EmptyOp(0) { // impossible
exec.go#L344: if cond.match(syntax.EmptyOp(i.Arg)) {
exec.go#L399: if startCond == ^syntax.EmptyOp(0) { // impossible
exec.go#L432: if pos == 0 && flag.match(syntax.EmptyOp(inst.Arg)) &&
exec.go#L480: if !flag.match(syntax.EmptyOp(inst.Arg)) {
onepass.go#L43: if i.Op != syntax.InstEmptyWidth || (syntax.EmptyOp(i.Arg))&syntax.EmptyBeginText == 0 {
onepass.go#L64: syntax.EmptyOp(i.Arg)&syntax.EmptyEndText != 0 &&
onepass.go#L472: syntax.EmptyOp(prog.Inst[prog.Start].Arg)&syntax.EmptyBeginText != syntax.EmptyBeginText {
onepass.go#L489: if syntax.EmptyOp(inst.Arg)&syntax.EmptyEndText == syntax.EmptyEndText {
regexp.go#L100: cond syntax.EmptyOp // empty-width conditions required at start of match
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |