|
|
| version 1.189, 2009/09/08 09:12:47 | version 1.191, 2009/11/06 05:02:53 |
|---|---|
| Line 434 static void _match(Request& r, MethodPar | Line 434 static void _match(Request& r, MethodPar |
| replacement_code | replacement_code |
| }; | }; |
| Temp_value_element* temp_match_var=0; | if(is_junction){ |
| Temp_value_element temp( *replacement_code->get_junction()->method_frame, match_var_name, vtable); | |
| if(is_junction) | src.match(vregex, replace_action, &info, matches_count); |
| temp_match_var=new Temp_value_element( | } else { |
| *replacement_code->get_junction()->method_frame, | src.match(vregex, replace_action, &info, matches_count); |
| match_var_name, vtable); | } |
| src.match(vregex, | |
| replace_action, &info, | |
| matches_count); | |
| if(temp_match_var) | |
| delete temp_match_var; | |
| r.write_assign_lang(result); | r.write_assign_lang(result); |
| } | } |
| Line 622 static void _save(Request& r, MethodPara | Line 615 static void _save(Request& r, MethodPara |
| size_t file_name_index=0; | size_t file_name_index=0; |
| if(params.count()>1) | if(params.count()>1) |
| if(HashStringValue* options=params.as_no_junction(1, "second parameter should be string or hash").get_hash()){ | if(HashStringValue* options=params.as_no_junction(1, "second parameter should be string or hash").get_hash()){ |
| size_t valid_options=0; | int valid_options=0; |
| if(Value* vcharset_name=options->get(PA_CHARSET_NAME)){ | if(Value* vcharset_name=options->get(PA_CHARSET_NAME)){ |
| asked_charset=&::charsets.get(vcharset_name->as_string().change_case(r.charsets.source(), String::CC_UPPER)); | asked_charset=&::charsets.get(vcharset_name->as_string().change_case(r.charsets.source(), String::CC_UPPER)); |
| valid_options++; | valid_options++; |