MCPcopy Create free account
hub / github.com/google/codesearch / init

Method init

regexp/utf.go:147–161  ·  view source on GitHub ↗
(p *syntax.Prog, begin, out uint32)

Source from the content-addressed store, hash-verified

145}
146
147func (b *runeBuilder) init(p *syntax.Prog, begin, out uint32) {
148 // We will rewrite p.Inst[begin] to hold the accumulated
149 // machine. For now, there is no match.
150 p.Inst[begin].Op = instFail
151
152 b.begin = begin
153 b.out = out
154 if b.cache == nil {
155 b.cache = make(map[cacheKey]uint32)
156 }
157 for k := range b.cache {
158 delete(b.cache, k)
159 }
160 b.p = p
161}
162
163func (b *runeBuilder) uncachedSuffix(lo, hi byte, fold bool, next uint32) uint32 {
164 if next == 0 {

Callers 1

toByteProgFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected