MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / min_expand

Function min_expand

src/Chain/libraries/glua/lstrlib.cpp:387–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385
386
387static const char *min_expand(MatchState *ms, const char *s,
388 const char *p, const char *ep) {
389 for (;;) {
390 const char *res = match(ms, s, ep + 1);
391 if (res != nullptr)
392 return res;
393 else if (singlematch(ms, s, p, ep))
394 s++; /* try with one more repetition */
395 else return nullptr;
396 }
397}
398
399
400static const char *start_capture(MatchState *ms, const char *s,

Callers 1

matchFunction · 0.85

Calls 2

singlematchFunction · 0.85
matchFunction · 0.70

Tested by

no test coverage detected