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

re.c File Reference

#include "dprint.h"
#include "mem/mem.h"
#include "re.h"
#include <string.h>

Go to the source code of this file.

Defines

#define MAX_REPLACE_WITH   100

Functions

void subst_expr_free (struct subst_expr *se)
void replace_lst_free (struct replace_lst *l)
subst_exprsubst_parser (str *subst)
int replace_len (const char *match, int nmatch, regmatch_t *pmatch, struct subst_expr *se, struct sip_msg *msg)
int replace_build (const char *match, int nmatch, regmatch_t *pmatch, struct subst_expr *se, struct sip_msg *msg, str *rpl)
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)


Define Documentation

#define MAX_REPLACE_WITH   100
 

Referenced by subst_parser().


Function Documentation

int replace_build const char *  match,
int  nmatch,
regmatch_t *  pmatch,
struct subst_expr se,
struct sip_msg msg,
str rpl
[static]
 

Definition at line 323 of file re.c.

References replace_with::c, sip_msg::first_line, L_CRIT, L_ERR, _str::len, LOG, subst_expr::n_escapes, sip_msg::new_uri, replace_with::nmatch, replace_with::offset, pkg_malloc, subst_expr::replace, REPLACE_CHAR, replace_len(), REPLACE_NMATCH, REPLACE_URI, subst_expr::replacement, msg_start::request, _str::s, replace_with::size, size, str, msg_start::type, msg_start::u, replace_with::u, and msg_start::uri.

Referenced by subst_run().

int replace_len const char *  match,
int  nmatch,
regmatch_t *  pmatch,
struct subst_expr se,
struct sip_msg msg
[static]
 

Definition at line 277 of file re.c.

References sip_msg::first_line, L_CRIT, _str::len, len, LOG, subst_expr::n_escapes, sip_msg::new_uri, replace_with::nmatch, subst_expr::replace, REPLACE_CHAR, REPLACE_NMATCH, REPLACE_URI, subst_expr::replacement, msg_start::request, _str::s, replace_with::size, str, msg_start::type, msg_start::u, replace_with::u, and msg_start::uri.

Referenced by replace_build().

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, len, _str::len, LOG, replace_lst::next, replace_lst::offset, pkg_free, pkg_malloc, replace_lst_free(), replace_lst::rpl, _str::s, replace_lst::size, 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