|
|
| version 1.1, 2001/01/26 15:43:11 | version 1.2, 2001/01/26 18:34:02 |
|---|---|
| Line 47 private: | Line 47 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 64 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 77 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); | |
| unsigned int hash_code(); | |
| }; | }; |
| #endif | #endif |