MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / NewRegexp

Function NewRegexp

internal/re/regexp.go:49–56  ·  view source on GitHub ↗
(rawRegexp *regexp.Regexp)

Source from the content-addressed store, hash-verified

47}
48
49func NewRegexp(rawRegexp *regexp.Regexp) *Regexp {
50 var reg = &Regexp{
51 exp: rawRegexp.String(),
52 rawRegexp: rawRegexp,
53 }
54 reg.init()
55 return reg
56}
57
58func (this *Regexp) init() {
59 this.id = atomic.AddUint64(&lastId, 1)

Callers 1

CompileFunction · 0.85

Calls 2

StringMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected