Nilorea Library
C utilities for networking, threading, graphics
n_pcre.h File Reference

PCRE helpers for regex matching. More...

#include <pcre.h>
+ Include dependency graph for n_pcre.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  N_PCRE
 N_PCRE structure. More...


int npcre_clean_match (N_PCRE *pcre)
 clean the match list of the last capture, if any More...
int npcre_delete (N_PCRE **pcre)
 Free a N_PCRE pointer. More...
int npcre_match (char *str, N_PCRE *pcre)
 Return TRUE if str matches regexp, and make captures up to max_cap. More...
N_PCREnpcre_new (char *str, int max_cap, int flags)
 From pcre doc, the flag bits are: PCRE_ANCHORED Force pattern anchoring PCRE_AUTO_CALLOUT Compile automatic callouts PCRE_BSR_ANYCRLF \R matches only CR, LF, or CRLF PCRE_BSR_UNICODE \R matches all Unicode line endings PCRE_CASELESS Do caseless matching PCRE_DOLLAR_ENDONLY $ not to match newline at end PCRE_DOTALL . More...

Detailed Description

PCRE helpers for regex matching.

Castagnier Mickael

Definition in file n_pcre.h.