--- parser3/src/classes/string.C 2001/04/15 13:12:18 1.38 +++ parser3/src/classes/string.C 2001/04/26 14:55:13 1.40 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: string.C,v 1.38 2001/04/15 13:12:18 paf Exp $ + $Id: string.C,v 1.40 2001/04/26 14:55:13 paf Exp $ */ #include "pa_request.h" @@ -136,6 +136,7 @@ static void search_action(Table& table, table+=row; } +/// used by string: _match / replace_action struct Replace_action_info { Request *request; const String *origin; const String *src; String *dest; @@ -192,7 +193,8 @@ static void _match(Request& r, const Str Temp_lang temp_lang(r, String::UL_PASS_APPENDED); Table *table; if(params->size()<3) { // search - if(src.match(&method_name, + if(src.match(r.pcre_tables, + &method_name, regexp.as_string(), options, &table, search_action, 0)) { @@ -214,7 +216,8 @@ static void _match(Request& r, const Str &replacement_code, &src }; - src.match(&method_name, + src.match(r.pcre_tables, + &method_name, r.process(regexp).as_string(), options, &table, replace_action, &replace_action_info);