- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for InstMatch (0.26 sec)
-
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) -
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) -
src/regexp/exec.go
m.pool = append(m.pool, t) continue } i := t.inst add := false switch i.Op { default: panic("bad inst") case syntax.InstMatch: if len(t.cap) > 0 && (!longest || !m.matched || m.matchcap[1] < pos) { t.cap[1] = pos copy(m.matchcap, t.cap) } if !longest { // First-match mode: cut off all lower-priority threads.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 04 20:10:54 UTC 2022 - 12.3K bytes - Viewed (0) -
src/regexp/syntax/compile.go
// The regexp should have been simplified already (returned from re.Simplify). func Compile(re *Regexp) (*Prog, error) { var c compiler c.init() f := c.compile(re) f.out.patch(c.p, c.inst(InstMatch).i) c.p.Start = int(f.i) return c.p, nil } func (c *compiler) init() { c.p = new(Prog) c.p.NumCap = 2 // implicit ( and ) for whole match $0 c.inst(InstFail) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 13 14:52:20 UTC 2021 - 6.8K bytes - Viewed (0) -
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) -
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) -
api/go1.txt
pkg regexp/syntax, const InstAltMatch InstOp pkg regexp/syntax, const InstCapture InstOp pkg regexp/syntax, const InstEmptyWidth InstOp pkg regexp/syntax, const InstFail InstOp pkg regexp/syntax, const InstMatch InstOp pkg regexp/syntax, const InstNop InstOp pkg regexp/syntax, const InstRune InstOp pkg regexp/syntax, const InstRune1 InstOp pkg regexp/syntax, const InstRuneAny InstOp
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0) -
api/go1.1.txt
pkg regexp/syntax, const InstAltMatch = 1 pkg regexp/syntax, const InstCapture = 2 pkg regexp/syntax, const InstEmptyWidth = 3 pkg regexp/syntax, const InstFail = 5 pkg regexp/syntax, const InstMatch = 4 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 31 20:37:15 UTC 2022 - 2.6M bytes - Viewed (0)