--- parser3/src/main/pa_string.C 2003/03/24 09:39:55 1.172.2.21.2.18 +++ parser3/src/main/pa_string.C 2003/03/24 11:45:28 1.172.2.21.2.21 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_STRING_C="$Date: 2003/03/24 09:39:55 $"; +static const char* IDENT_STRING_C="$Date: 2003/03/24 11:45:28 $"; #include "pcre.h" @@ -303,7 +303,7 @@ Table* String::match(Charset& source_cha int ovector[oveclength]; // create table - Table* table=new Table(string_match_table_template); + Table& table=*new Table(string_match_table_template); int exec_option_bits=0; int prestart=0; @@ -366,7 +366,7 @@ Table* String::match(Charset& source_cha } } -String& String::change_case(Charset& source_charset, Change_case_kind kind) { +String& String::change_case(Charset& source_charset, Change_case_kind kind) const { String& result=*new String(); const unsigned char *tables=source_charset.pcre_tables; @@ -548,7 +548,7 @@ String::C String::serialize(size_t prolo return result; } -bool String::deserialize(size_t prolog_length, void *buf, size_t buf_length, const char* file) { +bool String::deserialize(size_t prolog_length, void *buf, size_t buf_length) { if(buf_length<=prolog_length) return false; buf_length-=prolog_length;