--- parser3/src/include/pa_string.h 2003/01/23 15:38:05 1.144.2.2 +++ parser3/src/include/pa_string.h 2003/01/24 08:19:09 1.144.2.4 @@ -8,7 +8,7 @@ #ifndef PA_STRING_H #define PA_STRING_H -static const char* IDENT_STRING_H="$Date: 2003/01/23 15:38:05 $"; +static const char* IDENT_STRING_H="$Date: 2003/01/24 08:19:09 $"; #include "pa_pool.h" #include "pa_types.h" @@ -43,6 +43,11 @@ static const char* IDENT_STRING_H="$Date /// handy: appends const char* piece to String @see String::real_append #define APPEND_CONST(src) APPEND_AS_IS(src, 0, 0, 0) +class String; + +typedef object_ptr StringPtr; +typedef object_ptr ConstStringPtr; + class Table; class SQL_Connection; class Dictionary; @@ -182,7 +187,7 @@ public: } /// extracts [start, finish) piece of string - String& mid(size_t start, size_t finish) const; + StringPtr mid(size_t start, size_t finish) const; /// @return position of substr in string, -1 means "not found" [String version] int pos(const String& substr,