ndn-lite
Typedefs | Functions
Regex

Mini regex-module inspired by Rob Pike's regex code described in: http://www.cs.princeton.edu/courses/archive/spr09/cos333/beautiful.html. More...

Collaboration diagram for Regex:

Typedefs

typedef struct regex_tre_t
 Typedef'd pointer to get abstract datatype. More...
 

Functions

re_t re_compile (const char *pattern)
 Compile regex string pattern to a regex_t-array. More...
 
int re_matchp (re_t pattern, const char *text)
 Find matches of the compiled pattern inside text. More...
 
int re_match (const char *pattern, const char *text)
 Find matches of the txt pattern inside text (will compile automatically first). More...
 

Detailed Description

Mini regex-module inspired by Rob Pike's regex code described in: http://www.cs.princeton.edu/courses/archive/spr09/cos333/beautiful.html.

Typedef Documentation

◆ re_t

typedef struct regex_t* re_t

Typedef'd pointer to get abstract datatype.

Function Documentation

◆ re_compile()

re_t re_compile ( const char *  pattern)

Compile regex string pattern to a regex_t-array.

◆ re_match()

int re_match ( const char *  pattern,
const char *  text 
)

Find matches of the txt pattern inside text (will compile automatically first).

◆ re_matchp()

int re_matchp ( re_t  pattern,
const char *  text 
)

Find matches of the compiled pattern inside text.