MCPcopy Create free account
hub / github.com/git/git / regexec_buf

Function regexec_buf

git-compat-util.h:995–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993#endif
994
995static inline int regexec_buf(const regex_t *preg, const char *buf, size_t size,
996 size_t nmatch, regmatch_t pmatch[], int eflags)
997{
998 assert(nmatch > 0 && pmatch);
999 pmatch[0].rm_so = 0;
1000 pmatch[0].rm_eo = size;
1001 return regexec(preg, buf, nmatch, pmatch, eflags | REG_STARTEND);
1002}
1003
1004#ifdef USE_ENHANCED_BASIC_REGULAR_EXPRESSIONS
1005int git_regcomp(regex_t *preg, const char *pattern, int cflags);

Callers 6

patmatchFunction · 0.85
ff_regexpFunction · 0.85
diffgrep_consumeFunction · 0.85
containsFunction · 0.85
find_word_boundariesFunction · 0.85
record_matches_regexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected