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

Function min_expand

app/redis-6.2.6/deps/lua/src/lstrlib.c:316–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314
315
316static const char *min_expand (MatchState *ms, const char *s,
317 const char *p, const char *ep) {
318 for (;;) {
319 const char *res = match(ms, s, ep+1);
320 if (res != NULL)
321 return res;
322 else if (s<ms->src_end && singlematch(uchar(*s), p, ep))
323 s++; /* try with one more repetition */
324 else return NULL;
325 }
326}
327
328
329static 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