Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for InstRuneAnyNotNL (0.7 sec)

  1. src/regexp/syntax/prog.go

    	InstEmptyWidth
    	InstMatch
    	InstFail
    	InstNop
    	InstRune
    	InstRune1
    	InstRuneAny
    	InstRuneAnyNotNL
    )
    
    var instOpNames = []string{
    	"InstAlt",
    	"InstAltMatch",
    	"InstCapture",
    	"InstEmptyWidth",
    	"InstMatch",
    	"InstFail",
    	"InstNop",
    	"InstRune",
    	"InstRune1",
    	"InstRuneAny",
    	"InstRuneAnyNotNL",
    }
    
    func (i InstOp) String() string {
    	if uint(i) >= uint(len(instOpNames)) {
    		return ""
    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

    	}
    	if i.Op == syntax.InstAltMatch {
    		return i.Out
    	}
    	return 0
    }
    
    func iop(i *syntax.Inst) syntax.InstOp {
    	op := i.Op
    	switch op {
    	case syntax.InstRune1, syntax.InstRuneAny, syntax.InstRuneAnyNotNL:
    		op = syntax.InstRune
    	}
    	return op
    }
    
    // Sparse Array implementation is used as a queueOnePass.
    type queueOnePass struct {
    	sparse          []uint32
    	dense           []uint32
    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

    			}
    
    		case syntax.InstAltMatch:
    			// One opcode consumes runes; the other leads to match.
    			switch re.prog.Inst[inst.Out].Op {
    			case syntax.InstRune, syntax.InstRune1, syntax.InstRuneAny, syntax.InstRuneAnyNotNL:
    				// inst.Arg is the match.
    				b.push(re, inst.Arg, pos, false)
    				pc = inst.Arg
    				pos = b.end
    				goto CheckAndLoop
    			}
    			// inst.Out is the match - non-greedy
    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

    		{"InstFail", Const, 0},
    		{"InstMatch", Const, 0},
    		{"InstNop", Const, 0},
    		{"InstOp", Type, 0},
    		{"InstRune", Const, 0},
    		{"InstRune1", Const, 0},
    		{"InstRuneAny", Const, 0},
    		{"InstRuneAnyNotNL", Const, 0},
    		{"IsWordChar", Func, 0},
    		{"Literal", Const, 0},
    		{"MatchNL", Const, 0},
    		{"NonGreedy", Const, 0},
    		{"OneLine", Const, 0},
    		{"Op", Type, 0},
    		{"OpAlternate", 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