Diff for /parser3/src/include/pa_string.h between versions 1.1 and 1.4

version 1.1, 2001/01/26 15:43:11 version 1.4, 2001/01/27 10:02:59
Line 20 Line 20
   
 #include <stddef.h>  #include <stddef.h>
   
   #include "pa_types.h"
   
 class Pool;  class Pool;
   
 class String {  class String {
Line 47  private: Line 49  private:
                                 size_t size;  // length of the fragment                                  size_t size;  // length of the fragment
                         } item;                          } item;
                         Chunk *link;  // link to the next chunk in chain                          Chunk *link;  // link to the next chunk in chain
                 } first[CR_PREALLOCATED_COUNT];                  } rows[CR_PREALLOCATED_COUNT];
                 // next rows are here                  // next rows are here
                 Chunk *preallocated_link;                  Chunk *preallocated_link;
         }          }
Line 64  private: Line 66  private:
         void *operator new(size_t size, Pool *apool);          void *operator new(size_t size, Pool *apool);
   
         void construct(Pool *apool);          void construct(Pool *apool);
           String() { /* never */}
         String(Pool *apool) {           String(Pool *apool) { 
                 construct(apool);                   construct(apool); 
         }          }
Line 76  private: Line 79  private:
                 return append_here == link_row;                  return append_here == link_row;
         }          }
         void expand();          void expand();
           int used_rows();
   
 public:  public:
   
           String(String& src);
         size_t size();          size_t size();
         char *c_str();          char *c_str();
         String& operator += (char *src);          String& operator += (char *src);
           bool operator == (String& src);
           String& operator = (String& src);
   
           uint hash_code();
 };  };
   
 #endif  #endif

Removed from v.1.1  
changed lines
  Added in v.1.4


E-mail: