--- parser3/src/main/pa_string.C 2001/01/29 22:34:58 1.16 +++ parser3/src/main/pa_string.C 2001/02/12 13:26:55 1.18 @@ -1,5 +1,5 @@ /* - $Id: pa_string.C,v 1.16 2001/01/29 22:34:58 paf Exp $ + $Id: pa_string.C,v 1.18 2001/02/12 13:26:55 paf Exp $ */ #include @@ -8,12 +8,10 @@ #include "pa_string.h" #include "pa_hash.h" -void *String::operator new(size_t size, Pool& apool) { - return apool.malloc(size); -} +// String String::String(Pool& apool) : - pool(apool) { + Pooled(apool) { head.count=curr_chunk_rows=CR_PREALLOCATED_COUNT; append_here=head.rows; head.preallocated_link=0; @@ -33,7 +31,7 @@ void String::expand() { } String::String(const String& src) : - pool(src.pool) { + Pooled(src.pool) { head.count=CR_PREALLOCATED_COUNT; int src_used_rows=src.used_rows(); @@ -208,3 +206,15 @@ bool String::operator == (const String& } return a_break==b_break; } + +String& String::append(const String_iterator& begin, const String_iterator& end) { + return z; +} + +// Char_set + +Char_set::Char_set() { + memset(bools, 0, sizeof(bools)); +} + +// String_iterator