MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ApplyCaptures

Function ApplyCaptures

extern/re2/re2/onepass.cc:201–206  ·  view source on GitHub ↗

Apply the capture bits in cond, saving p to the appropriate locations in cap[].

Source from the content-addressed store, hash-verified

199// Apply the capture bits in cond, saving p to the appropriate
200// locations in cap[].
201static void ApplyCaptures(uint32_t cond, const char* p,
202 const char** cap, int ncap) {
203 for (int i = 2; i < ncap; i++)
204 if (cond & (1 << kCapShift << i))
205 cap[i] = p;
206}
207
208// Computes the OneState* for the given nodeindex.
209static inline OneState* IndexToNode(uint8_t* nodes, int statesize,

Callers 1

SearchOnePassMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected