MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / min_expand

Function min_expand

third-party/lua-5.5.0/src/lstrlib.c:523–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521
522
523static const char *min_expand (MatchState *ms, const char *s,
524 const char *p, const char *ep) {
525 for (;;) {
526 const char *res = match(ms, s, ep+1);
527 if (res != NULL)
528 return res;
529 else if (singlematch(ms, s, p, ep))
530 s++; /* try with one more repetition */
531 else return NULL;
532 }
533}
534
535
536static 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