|
|
| version 1.87, 2001/10/31 14:01:44 | version 1.91, 2001/12/13 13:01:44 |
|---|---|
| Line 2 | Line 2 |
| Parser: @b string parser class. | Parser: @b string parser class. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) | Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru) |
| $Id$ | $Id$ |
| */ | */ |
| Line 84 static void _double(Request& r, const St | Line 84 static void _double(Request& r, const St |
| Temp_lang temp_lang(r, String::UL_PASS_APPENDED); | Temp_lang temp_lang(r, String::UL_PASS_APPENDED); |
| char *buf=format(pool, r.self->as_double(), | char *buf=format(pool, r.self->as_double(), |
| r.process(fmt).as_string().cstr(String::UL_UNSPECIFIED)); | r.process(fmt).as_string().cstr(String::UL_UNSPECIFIED, r.connection)); |
| String result(pool); | String result(pool); |
| result.APPEND_CLEAN(buf, 0, | result.APPEND_CLEAN(buf, 0, |
| Line 258 static void _match(Request& r, const Str | Line 258 static void _match(Request& r, const Str |
| else | else |
| result=new(pool) VBool(pool, matched); | result=new(pool) VBool(pool, matched); |
| } else { // replace | } else { // replace |
| Value& replacement_code=params->as_junction(2, "replacement code must be code"); | Value& replacement_code=params->as_junction(2, "replacement param must be code"); |
| String& dest=*new(pool) String(pool); | String& dest=*new(pool) String(pool); |
| Replace_action_info replace_action_info={ | Replace_action_info replace_action_info={ |
| Line 444 static void _save(Request& r, const Stri | Line 444 static void _save(Request& r, const Stri |
| } | } |
| // write | // write |
| const char *buf=src.cstr(String::UL_UNSPECIFIED); | |
| file_write(pool, r.absolute(file_name), | file_write(pool, r.absolute(file_name), |
| src.cstr(), src.size(), true, do_append); | buf, strlen(buf), true, do_append); |
| } | } |
| // constructor | // constructor |