MCPcopy Index your code
hub / github.com/google/codesearch / RegexpQuery

Function RegexpQuery

index/regexp.go:333–338  ·  view source on GitHub ↗

RegexpQuery returns a Query for the given regexp.

(re *syntax.Regexp)

Source from the content-addressed store, hash-verified

331
332// RegexpQuery returns a Query for the given regexp.
333func RegexpQuery(re *syntax.Regexp) *Query {
334 info := analyze(re)
335 info.simplify(true)
336 info.addExact()
337 return info.match
338}
339
340// A regexpInfo summarizes the results of analyzing a regexp.
341type regexpInfo struct {

Callers 2

MainFunction · 0.92
TestQueryFunction · 0.85

Calls 3

analyzeFunction · 0.85
simplifyMethod · 0.80
addExactMethod · 0.80

Tested by 1

TestQueryFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…