MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_regcomp

Function cbm_regcomp

src/foundation/compat_regex.c:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33int cbm_regcomp(cbm_regex_t *r, const char *pattern, int flags) {
34 regex_t *re = (regex_t *)r->opaque;
35 int rc = tre_regcomp(re, pattern, translate_flags_tre(flags));
36 return rc == 0 ? CBM_REG_OK : rc;
37}
38
39int cbm_regexec(const cbm_regex_t *r, const char *str, int nmatch, cbm_regmatch_t *matches,
40 int eflags) {

Callers 8

sqlite_regexpFunction · 0.85
sqlite_iregexpFunction · 0.85
eval_comparison_opFunction · 0.85
check_inline_propsFunction · 0.85
compile_path_filterFunction · 0.85
handle_search_codeFunction · 0.85
compile_patternsFunction · 0.85

Calls 2

translate_flags_treFunction · 0.85
translate_flagsFunction · 0.85

Tested by

no test coverage detected