MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / min_expand

Function min_expand

Source/Misc/lua/src/lua.c:13993–14003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13991
13992
13993static const char *min_expand (MatchState *ms, const char *s,
13994const char *p, const char *ep) {
13995for (;;) {
13996const char *res = match(ms, s, ep+1);
13997if (res != NULL)
13998return res;
13999else if (s<ms->src_end && singlematch(uchar(*s), p, ep))
14000s++; /* try with one more repetition */
14001else return NULL;
14002}
14003}
14004
14005
14006static 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