MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / regex_frame_repeat_last

Function regex_frame_repeat_last

src/foundation/compat_regex.c:69–73  ·  view source on GitHub ↗

An interval applies to the last element: n copies of it replace the one. */

Source from the content-addressed store, hash-verified

67
68/* An interval applies to the last element: n copies of it replace the one. */
69static void regex_frame_repeat_last(regex_frame_t *f, uint64_t copies) {
70 uint64_t grown = regex_sat_mul(f->last, copies);
71 f->total = regex_sat_add(f->total - f->last, grown);
72 f->last = grown;
73}
74
75/* Units a closed group contributes to its parent: its content plus the K^2/8
76 * alternation share, never less than one atom. */

Callers 1

Calls 2

regex_sat_mulFunction · 0.85
regex_sat_addFunction · 0.85

Tested by

no test coverage detected