Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

re.h File Reference

#include "str.h"
#include "parser/msg_parser.h"
#include <sys/types.h>
#include <regex.h>

Go to the source code of this file.

Data Structures

struct  replace_with
struct  subst_expr
struct  replace_lst

Enumerations

enum  replace_special { REPLACE_NMATCH, REPLACE_CHAR, REPLACE_URI }

Functions

void subst_expr_free (struct subst_expr *se)
void replace_lst_free (struct replace_lst *l)
subst_exprsubst_parser (str *subst)
replace_lstsubst_run (struct subst_expr *se, const char *input, struct sip_msg *msg, int *count)
strsubst_str (const char *input, struct sip_msg *msg, struct subst_expr *se, int *count)


Enumeration Type Documentation

enum replace_special
 

Enumeration values:
REPLACE_NMATCH 
REPLACE_CHAR 
REPLACE_URI 

Definition at line 44 of file re.h.


Function Documentation

void replace_lst_free struct replace_lst l  ) 
 

Definition at line 55 of file re.c.

References replace_lst::next, pkg_free, replace_lst::rpl, and _str::s.

Referenced by subst_f(), subst_run(), and subst_str().

void subst_expr_free struct subst_expr se  ) 
 

Definition at line 45 of file re.c.

References pkg_free, subst_expr::re, subst_expr::replacement, and _str::s.

Referenced by subst_parser().

struct subst_expr* subst_parser str subst  ) 
 

Definition at line 70 of file re.c.

References replace_with::c, DBG, L_ERR, L_WARN, _str::len, LOG, MAX_REPLACE_WITH, replace_with::nmatch, replace_with::offset, pkg_free, pkg_malloc, subst_expr::replacement, _str::s, replace_with::size, str, subst_expr_free(), and replace_with::u.

Referenced by fix_param(), and fixup_substre().

struct replace_lst* subst_run struct subst_expr se,
const char *  input,
struct sip_msg msg,
int count
 

Definition at line 399 of file re.c.

References DBG, L_ERR, LOG, subst_expr::max_pmatch, replace_lst::offset, pkg_free, pkg_malloc, subst_expr::re, subst_expr::replace_all, replace_build(), replace_lst_free(), and replace_lst::size.

Referenced by subst_f(), and subst_str().

str* subst_str const char *  input,
struct sip_msg msg,
struct subst_expr se,
int count
 

Definition at line 474 of file re.c.

References DBG, L_ERR, _str::len, len, LOG, replace_lst::next, replace_lst::offset, pkg_free, pkg_malloc, replace_lst_free(), replace_lst::rpl, _str::s, size, replace_lst::size, str, and subst_run().

Referenced by subst_attr(), subst_uri_f(), and subst_user_f().


Generated on Thu Jul 29 04:16:06 2010 for SIPExpressRouter by  doxygen 1.3.9.1