NetSurf
Data Structures | Macros | Typedefs | Functions
regex.h File Reference
#include "utils/config.h"
Include dependency graph for regex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  regex_t
 
struct  regmatch_t
 

Macros

#define REG_NOMATCH   1
 
#define REG_EXTENDED   1
 
#define REG_ICASE   (1 << 1)
 
#define REG_NEWLINE   (1 << 2)
 
#define REG_NOSUB   (1 << 3)
 

Typedefs

typedef ssize_t regoff_t
 

Functions

int regcomp (regex_t *restrict preg, const char *restrictregex, int cflags)
 
size_t regerror (int errorcode, const regex_t *restrict preg, char *restrict errbuf, size_t errbuf_size)
 
int regexec (const regex_t *restrict preg, const char *restrict string, size_t nmatch, regmatch_t pmatch[restrict], int eflags)
 
void regfree (regex_t *preg)
 

Macro Definition Documentation

◆ REG_EXTENDED

#define REG_EXTENDED   1

Definition at line 31 of file regex.h.

◆ REG_ICASE

#define REG_ICASE   (1 << 1)

Definition at line 32 of file regex.h.

◆ REG_NEWLINE

#define REG_NEWLINE   (1 << 2)

Definition at line 33 of file regex.h.

◆ REG_NOMATCH

#define REG_NOMATCH   1

Definition at line 29 of file regex.h.

◆ REG_NOSUB

#define REG_NOSUB   (1 << 3)

Definition at line 34 of file regex.h.

Typedef Documentation

◆ regoff_t

typedef ssize_t regoff_t

Definition at line 36 of file regex.h.

Function Documentation

◆ regcomp()

int regcomp ( regex_t *restrict  preg,
const char *  restrictregex,
int  cflags 
)

Definition at line 542 of file utils.c.

Referenced by regcomp_wrapper().

Here is the caller graph for this function:

◆ regerror()

size_t regerror ( int  errorcode,
const regex_t *restrict  preg,
char *restrict  errbuf,
size_t  errbuf_size 
)

Definition at line 548 of file utils.c.

Referenced by regcomp_wrapper().

Here is the caller graph for this function:

◆ regexec()

int regexec ( const regex_t *restrict  preg,
const char *restrict  string,
size_t  nmatch,
regmatch_t  pmatch[restrict],
int  eflags 
)

Definition at line 560 of file utils.c.

References REG_NOMATCH.

Referenced by snregexec().

Here is the caller graph for this function:

◆ regfree()

void regfree ( regex_t preg)

Definition at line 569 of file utils.c.

Referenced by save_complete_finalise().

Here is the caller graph for this function: