Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for EmptyOp (0.15 sec)

  1. src/regexp/syntax/prog.go

    // be true in any match. It returns ^EmptyOp(0) if no matches are possible.
    func (p *Prog) StartCond() EmptyOp {
    	var flag EmptyOp
    	pc := uint32(p.Start)
    	i := &p.Inst[pc]
    Loop:
    	for {
    		switch i.Op {
    		case InstEmptyWidth:
    			flag |= EmptyOp(i.Arg)
    		case InstFail:
    			return ^EmptyOp(0)
    		case InstCapture, InstNop:
    			// skip
    		default:
    			break Loop
    		}
    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/backtrack.go

    					b.cap[inst.Arg] = pos
    				}
    				pc = inst.Out
    				goto CheckAndLoop
    			}
    
    		case syntax.InstEmptyWidth:
    			flag := i.context(pos)
    			if !flag.match(syntax.EmptyOp(inst.Arg)) {
    				continue
    			}
    			pc = inst.Out
    			goto CheckAndLoop
    
    		case syntax.InstNop:
    			pc = inst.Out
    			goto CheckAndLoop
    
    		case syntax.InstMatch:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 17:25:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  3. test/nilptr3.go

    	_ = *structp // ERROR "generated nil check"
    	_ = *emptyp  // ERROR "generated nil check"
    	_ = *arrayp  // ERROR "removed nil check"
    }
    
    func f2() {
    	var (
    		intp       *int
    		arrayp     *[10]int
    		array0p    *[0]int
    		bigarrayp  *[1 << 20]int
    		structp    *Struct
    		bigstructp *BigStruct
    		emptyp     *Empty
    		empty1p    *Empty1
    	)
    
    	_ = *intp       // ERROR "generated nil check"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top