MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / min_expand

Function min_expand

lib/lua/src/lstrlib.c:521–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

matchFunction · 0.85

Calls 2

matchFunction · 0.85
singlematchFunction · 0.85

Tested by

no test coverage detected