Golang Manual By AstaXie-20120522sub := c.compile(re.Sub[0]) 139 ket := c.cap(uint32(re.Cap<<1 | 1)) 140 return c.cat(c.cat(bra, sub), ket) 141 case OpStar: 142 return c.star(c.compile(re.Sub[0]), re.Flags&NonGreedy compile(re.Sub[0]), re.Flags&NonGreedy != 0) 145 case OpQuest: 146 return c.quest(c.compile(re.Sub[0]), re.Flags&NonGreedy != 0) 147 case OpConcat: 148 if len(re.Sub) == 0 { 149 return c.nop() 150 } 151 var f frag 152 for i, sub := range re.Sub { 153 if i == 0 { 154 f = c.compile(sub) 155 } else { 1560 码力 | 6205 页 | 12.83 MB | 1 年前3
共 1 条
- 1













