Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for InstNop (0.16 sec)

  1. src/regexp/onepass.go

    	i := &p.Inst[p.Start]
    	if i.Op != syntax.InstEmptyWidth || (syntax.EmptyOp(i.Arg))&syntax.EmptyBeginText == 0 {
    		return "", i.Op == syntax.InstMatch, uint32(p.Start)
    	}
    	pc = i.Out
    	i = &p.Inst[pc]
    	for i.Op == syntax.InstNop {
    		pc = i.Out
    		i = &p.Inst[pc]
    	}
    	// Avoid allocation of buffer if prefix is empty.
    	if iop(i) != syntax.InstRune || len(i.Rune) != 1 {
    		return "", i.Op == syntax.InstMatch, uint32(p.Start)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top