--- parser3/src/main/pa_uue.C 2003/01/29 12:02:24 1.4.2.2 +++ parser3/src/main/pa_uue.C 2003/03/27 14:51:29 1.4.2.5.2.4 @@ -1,18 +1,17 @@ /** @file Parser: uuencoding impl. - Copyright(c) 2000,2001, 2003 ArtLebedev Group(http://www.artlebedev.com) + Copyright(c) 2000,2001-2003 ArtLebedev Group(http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) @todo setrlimit */ -static const char* IDENT_UUE_C="$Date: 2003/01/29 12:02:24 $"; +static const char* IDENT_UUE_C="$Date: 2003/03/27 14:51:29 $"; #include "pa_config_includes.h" #include "pa_uue.h" -#include "pa_value_includes.h" static unsigned char uue_table[64] = { '`', '!', '"', '#', '$', '%', '&', '\'', @@ -24,10 +23,10 @@ static unsigned char uue_table[64] = { 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\',']', '^', '_' }; -void pa_uuencode(Pool& pool, String& result, ConstStringPtr file_name, const VFile& vfile) { +void pa_uuencode(String& result, const String& file_name, const VFile& vfile) { //header result << "content-transfer-encoding: x-uuencode\n" << "\n"; - result << "begin 644 " << *file_name << "\n"; + result << "begin 644 " << file_name << "\n"; //body const unsigned char *in=(const unsigned char *)vfile.value_ptr(); @@ -40,7 +39,7 @@ void pa_uuencode(Pool& pool, String& res if((itemp+count)>(in+in_length)) count=in_length-(itemp-in); - char *buf=new(pool) char[MAX_STRING]; + char *buf=new(PointerFreeGC) char[MAX_STRING]; char *optr=buf; /* @@ -82,6 +81,6 @@ void pa_uuencode(Pool& pool, String& res } //footer - result.APPEND_AS_IS((const char *)uue_table, 1/* one char */, 0, 0) << "\n" + result.append_help_length((const char* )uue_table, 1/* one char */, String::L_AS_IS) << "\n" "end\n"; }