MCPcopy Index your code
hub / github.com/yuin/gopher-lua / IsPosCapture

Method IsPosCapture

pm/pm.go:74–74  ·  view source on GitHub ↗
(idx int)

Source from the content-addressed store, hash-verified

72func (st *MatchData) CaptureLength() int { return len(st.captures) }
73
74func (st *MatchData) IsPosCapture(idx int) bool { return (st.captures[idx] & 1) == 1 }
75
76func (st *MatchData) Capture(idx int) int { return int(st.captures[idx] >> 1) }
77

Callers 6

strFindFunction · 0.80
capturedStringFunction · 0.80
strGsubTableFunction · 0.80
strGsubFuncFunction · 0.80
strGmatchIterFunction · 0.80
strMatchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected