- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for EmptyOp (0.21 sec)
-
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) -
src/regexp/backtrack.go
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/regexp/syntax/compile.go
} return c.loop(f1, nongreedy) } func (c *compiler) plus(f1 frag, nongreedy bool) frag { return frag{f1.i, c.loop(f1, nongreedy).out, f1.nullable} } func (c *compiler) empty(op EmptyOp) frag { f := c.inst(InstEmptyWidth) c.p.Inst[f.i].Arg = uint32(op) f.out = makePatchList(f.i << 1) return f } func (c *compiler) rune(r []rune, flags Flags) frag { f := c.inst(InstRune)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 13 14:52:20 UTC 2021 - 6.8K bytes - Viewed (0) -
test/nilcheck.go
structp *Struct bigstructp *BigStruct emptyp *Empty empty1p *Empty1 ) func f1() { _ = *intp // ERROR "nil check" _ = *arrayp // ERROR "nil check" _ = *array0p // ERROR "nil check" _ = *array0p // ERROR "nil check" _ = *intp // ERROR "nil check" _ = *arrayp // ERROR "nil check" _ = *structp // ERROR "nil check" _ = *emptyp // ERROR "nil check" _ = *arrayp // ERROR "nil check" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 30 18:41:59 UTC 2022 - 3.7K bytes - Viewed (0) -
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)