MCPcopy Create free account
hub / github.com/F-Stack/f-stack / min_expand

Function min_expand

freebsd/contrib/openzfs/module/lua/lstrlib.c:372–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370
371
372static const char *min_expand (MatchState *ms, const char *s,
373 const char *p, const char *ep) {
374 for (;;) {
375 const char *res = match(ms, s, ep+1);
376 if (res != NULL)
377 return res;
378 else if (singlematch(ms, s, p, ep))
379 s++; /* try with one more repetition */
380 else return NULL;
381 }
382}
383
384
385static const char *start_capture (MatchState *ms, const char *s,

Callers 1

matchFunction · 0.70

Calls 2

matchFunction · 0.70
singlematchFunction · 0.70

Tested by

no test coverage detected