Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for InstRuneAnyNotNL (0.31 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/exec.go

    			}
    			m.matched = true
    
    		case syntax.InstRune:
    			add = i.MatchRune(c)
    		case syntax.InstRune1:
    			add = c == i.Rune[0]
    		case syntax.InstRuneAny:
    			add = true
    		case syntax.InstRuneAnyNotNL:
    			add = c != '\n'
    		}
    		if add {
    			t = m.add(nextq, i.Out, nextPos, t.cap, nextCond, t)
    		}
    		if t != nil {
    			m.pool = append(m.pool, t)
    		}
    	}
    	runq.dense = runq.dense[:0]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 04 20:10:54 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  4. 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)
  5. src/regexp/syntax/compile.go

    		i.Op = InstRune1
    	case len(r) == 2 && r[0] == 0 && r[1] == unicode.MaxRune:
    		i.Op = InstRuneAny
    	case len(r) == 4 && r[0] == 0 && r[1] == '\n'-1 && r[2] == '\n'+1 && r[3] == unicode.MaxRune:
    		i.Op = InstRuneAnyNotNL
    	}
    
    	return f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 13 14:52:20 UTC 2021
    - 6.8K bytes
    - Viewed (0)
  6. 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)
  7. api/go1.txt

    pkg regexp/syntax, const InstNop InstOp
    pkg regexp/syntax, const InstRune InstOp
    pkg regexp/syntax, const InstRune1 InstOp
    pkg regexp/syntax, const InstRuneAny InstOp
    pkg regexp/syntax, const InstRuneAnyNotNL InstOp
    pkg regexp/syntax, const Literal Flags
    pkg regexp/syntax, const MatchNL Flags
    pkg regexp/syntax, const NonGreedy Flags
    pkg regexp/syntax, const OneLine Flags
    pkg regexp/syntax, const OpAlternate Op
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  8. api/go1.1.txt

    pkg regexp/syntax, const InstNop = 6
    pkg regexp/syntax, const InstRune = 7
    pkg regexp/syntax, const InstRune1 = 8
    pkg regexp/syntax, const InstRuneAny = 9
    pkg regexp/syntax, const InstRuneAnyNotNL = 10
    pkg regexp/syntax, const Literal = 2
    pkg regexp/syntax, const MatchNL = 12
    pkg regexp/syntax, const NonGreedy = 32
    pkg regexp/syntax, const OneLine = 16
    pkg regexp/syntax, const OpAlternate = 19
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top