MCPcopy Index your code
hub / github.com/MapServer/MapServer / ms_regcomp

Function ms_regcomp

mapregex.c:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54#include <regex.h>
55
56MS_API_EXPORT(int) ms_regcomp(ms_regex_t *regex, const char *expr, int cflags)
57{
58 /* Must free in regfree() */
59 regex_t* sys_regex = (regex_t*) msSmallMalloc(sizeof(regex_t));
60 regex->sys_regex = (void*) sys_regex;
61 return regcomp(sys_regex, expr, cflags);
62}
63
64MS_API_EXPORT(size_t) ms_regerror(int errcode, const ms_regex_t *regex, char *errbuf, size_t errbuf_size)
65{

Callers 9

yyparseFunction · 0.70
msEvalRegexFunction · 0.70
msTimeMatchPatternFunction · 0.70
msParseTimeFunction · 0.70
msTimeGetResolutionFunction · 0.70
generateLegendTemplateFunction · 0.70
msReturnPageFunction · 0.70
msEvalExpressionFunction · 0.70
msGetClass_StringFunction · 0.70

Calls 1

msSmallMallocFunction · 0.85

Tested by

no test coverage detected