Lines Matching +refs:se +refs:in
45 struct subst_expr *se = NULL; in tr_txt_eval_re() local
59 se = (struct subst_expr*)tp->v.data; in tr_txt_eval_re()
60 if (se==NULL) in tr_txt_eval_re()
69 se=subst_parser(&v.rs); in tr_txt_eval_re()
70 if (se==0) { in tr_txt_eval_re()
87 result=subst_str(tr_txt_buf, msg, se, &nmatches); in tr_txt_eval_re()
122 subst_expr_free(se); in tr_txt_eval_re()
127 if (tp->type == TR_PARAM_SPEC && se!=NULL) { in tr_txt_eval_re()
128 subst_expr_free(se); in tr_txt_eval_re()
133 char* tr_txt_parse_re(str *in, trans_t *t) in tr_txt_parse_re() argument
138 struct subst_expr *se = NULL; in tr_txt_parse_re() local
144 if(in==NULL || t==NULL) in tr_txt_parse_re()
147 p = in->s; in tr_txt_parse_re()
148 name.s = in->s; in tr_txt_parse_re()
153 while(is_in_str(p, in) && *p!=TR_PARAM_MARKER && *p!=TR_RBRACKET) p++; in tr_txt_parse_re()
172 tok.s = p; tok.len = in->s + in->len - p; in tr_txt_parse_re()
177 in->len, in->s); in tr_txt_parse_re()
195 while(is_in_str(p, in)) in tr_txt_parse_re()
207 if(!is_in_str(p, in)) in tr_txt_parse_re()
220 se=subst_parser(&tok); in tr_txt_parse_re()
222 if (se==0) in tr_txt_parse_re()
225 tp->v.data = (void*)se; in tr_txt_parse_re()
235 LM_ERR("unknown transformation: %.*s/%.*s/%d!\n", in->len, in->s, in tr_txt_parse_re()
238 LM_ERR("invalid transformation [%.*s] <%d>\n", in->len, in->s, in tr_txt_parse_re()
239 (int)(p-in->s)); in tr_txt_parse_re()
242 if(se!=NULL) in tr_txt_parse_re()
243 subst_expr_free(se); in tr_txt_parse_re()