MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / min_expand

Function min_expand

extlibs/lua/src/lstrlib.c:518–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516
517
518static const char *min_expand (MatchState *ms, const char *s,
519 const char *p, const char *ep) {
520 for (;;) {
521 const char *res = match(ms, s, ep+1);
522 if (res != NULL)
523 return res;
524 else if (singlematch(ms, s, p, ep))
525 s++; /* try with one more repetition */
526 else return NULL;
527 }
528}
529
530
531static const char *start_capture (MatchState *ms, const char *s,

Callers 1

matchFunction · 0.85

Calls 2

singlematchFunction · 0.85
matchFunction · 0.70

Tested by

no test coverage detected