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

Function min_expand

third-party/lua-5.2.4/src/lstrlib.c:361–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359
360
361static const char *min_expand (MatchState *ms, const char *s,
362 const char *p, const char *ep) {
363 for (;;) {
364 const char *res = match(ms, s, ep+1);
365 if (res != NULL)
366 return res;
367 else if (singlematch(ms, s, p, ep))
368 s++; /* try with one more repetition */
369 else return NULL;
370 }
371}
372
373
374static 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