--- parser3/src/include/pa_string.h 2001/02/14 15:19:02 1.21 +++ parser3/src/include/pa_string.h 2001/02/21 12:43:41 1.24 @@ -1,5 +1,5 @@ /* - $Id: pa_string.h,v 1.21 2001/02/14 15:19:02 paf Exp $ + $Id: pa_string.h,v 1.24 2001/02/21 12:43:41 paf Exp $ */ /* @@ -28,17 +28,18 @@ #include "pa_types.h" #ifndef NO_STRING_ORIGIN -# define STRING_APPEND_PARAMS const char *src, char *file, uint line -# define APPEND(src, file, line) real_append(src, file, line) +# define STRING_APPEND_PARAMS const char *src, size_t size, char *file, uint line +# define APPEND(src, size, file, line) real_append(src, size, file, line) #else -# define STRING_APPEND_PARAMS const char *src -# define APPEND(src, file, line) real_append(src) +# define STRING_APPEND_PARAMS const char *src, size_t size +# define APPEND(src, size, file, line) real_append(src, size) #endif +#define APPEND_CONST(src) APPEND(src, 0, 0, 0) -class String_iterator; +//class String_iterator; class String : public Pooled { - friend String_iterator; +// friend String_iterator; public: enum { CR_PREALLOCATED_COUNT=5, @@ -55,7 +56,8 @@ public: char *cstr() const; String& real_append(STRING_APPEND_PARAMS); bool operator == (const String& src) const; - String& append(const String_iterator& begin, const String_iterator& end); + bool operator == (char* src) const; +// String& append(const String_iterator& begin, const String_iterator& end); uint hash_code() const; @@ -110,7 +112,7 @@ private: //disabled }; - +/* class Char_types { public: Char_types(); @@ -156,5 +158,6 @@ protected: // advances position by one char void skip(); }; +*/ #endif