MCPcopy Create free account
hub / github.com/boostorg/build / regex_compile

Function regex_compile

v2/engine/subst.c:21–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21regexp * regex_compile( OBJECT * pattern )
22{
23 int found;
24 regex_entry * e ;
25
26 if ( !regex_hash )
27 regex_hash = hashinit( sizeof( regex_entry ), "regex" );
28
29 e = (regex_entry *)hash_insert( regex_hash, pattern, &found );
30 if ( !found )
31 {
32 e->pattern = object_copy( pattern );
33 e->regex = regcomp( (char *)pattern );
34 }
35
36 return e->regex;
37}
38
39
40LIST * builtin_subst( FRAME * frame, int flags )

Callers 8

builtin_substFunction · 0.85
macro_headersFunction · 0.85
builtin_matchFunction · 0.85
headersFunction · 0.85
headers1Function · 0.85
regex_splitFunction · 0.85
regex_replaceFunction · 0.85
regex_transformFunction · 0.85

Calls 4

hashinitFunction · 0.85
hash_insertFunction · 0.85
object_copyFunction · 0.85
regcompFunction · 0.85

Tested by

no test coverage detected