|
|
| version 1.111, 2002/04/24 13:17:13 | version 1.113, 2002/08/01 11:26:44 |
|---|---|
| Line 3 | Line 3 |
| Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| $Id$ | |
| */ | */ |
| static const char* IDENT_STRING_C="$Id$"; | |
| #include "classes.h" | #include "classes.h" |
| #include "pa_request.h" | #include "pa_request.h" |
| #include "pa_vdouble.h" | #include "pa_vdouble.h" |
| Line 427 static void _save(Request& r, const Stri | Line 427 static void _save(Request& r, const Stri |
| buf, strlen(buf), true, do_append); | buf, strlen(buf), true, do_append); |
| } | } |
| static void _optimize(Request& r, const String& method_name, MethodParams * /*params*/) { | static void _normalize(Request& r, const String& method_name, MethodParams * /*params*/) { |
| r.write_assign_lang(r.self->get_string()->join_chains(r.pool(), 0/*cstr*/)); | r.write_assign_lang(r.self->get_string()->join_chains(r.pool(), 0/*cstr*/)); |
| } | } |
| Line 481 MString::MString(Pool& apool) : Methoded | Line 481 MString::MString(Pool& apool) : Methoded |
| // ^string.save[file] | // ^string.save[file] |
| add_native_method("save", Method::CT_DYNAMIC, _save, 1, 2); | add_native_method("save", Method::CT_DYNAMIC, _save, 1, 2); |
| // ^string.optimize[] | // ^string.normalize[] |
| add_native_method("optimize", Method::CT_DYNAMIC, _optimize, 0, 0); | add_native_method("normalize", Method::CT_DYNAMIC, _normalize, 0, 0); |
| } | } |
| // global variable | // global variable |