Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for InstMatch (0.35 sec)

  1. src/regexp/syntax/prog.go

    type InstOp uint8
    
    const (
    	InstAlt InstOp = iota
    	InstAltMatch
    	InstCapture
    	InstEmptyWidth
    	InstMatch
    	InstFail
    	InstNop
    	InstRune
    	InstRune1
    	InstRuneAny
    	InstRuneAnyNotNL
    )
    
    var instOpNames = []string{
    	"InstAlt",
    	"InstAltMatch",
    	"InstCapture",
    	"InstEmptyWidth",
    	"InstMatch",
    	"InstFail",
    	"InstNop",
    	"InstRune",
    	"InstRune1",
    	"InstRuneAny",
    	"InstRuneAnyNotNL",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. src/regexp/onepass.go

    		return nil
    	}
    	// every instruction leading to InstMatch must be EmptyEndText
    	for _, inst := range prog.Inst {
    		opOut := prog.Inst[inst.Out].Op
    		switch inst.Op {
    		default:
    			if opOut == syntax.InstMatch {
    				return nil
    			}
    		case syntax.InstAlt, syntax.InstAltMatch:
    			if opOut == syntax.InstMatch || prog.Inst[inst.Arg].Op == syntax.InstMatch {
    				return nil
    			}
    		case syntax.InstEmptyWidth:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. src/regexp/backtrack.go

    			if !flag.match(syntax.EmptyOp(inst.Arg)) {
    				continue
    			}
    			pc = inst.Out
    			goto CheckAndLoop
    
    		case syntax.InstNop:
    			pc = inst.Out
    			goto CheckAndLoop
    
    		case syntax.InstMatch:
    			// We found a match. If the caller doesn't care
    			// where the match is, no point going further.
    			if len(b.cap) == 0 {
    				return true
    			}
    
    			// Record best match so far.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 17:25:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Inst.Out", Field, 0},
    		{"Inst.Rune", Field, 0},
    		{"InstAlt", Const, 0},
    		{"InstAltMatch", Const, 0},
    		{"InstCapture", Const, 0},
    		{"InstEmptyWidth", Const, 0},
    		{"InstFail", Const, 0},
    		{"InstMatch", Const, 0},
    		{"InstNop", Const, 0},
    		{"InstOp", Type, 0},
    		{"InstRune", Const, 0},
    		{"InstRune1", Const, 0},
    		{"InstRuneAny", Const, 0},
    		{"InstRuneAnyNotNL", Const, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top