1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef __BIGSTRING_H
- #define __BIGSTRING_H
- #include <bfc/string/bfcstring.h>
- #include <bfc/ptrlist.h>
- class BigString {
- public:
- BigString();
- virtual ~BigString();
- operator const char *() { return getValue(); }
- const char *getValue() ;
- char *getNonConstVal() { return (char *)getValue(); }
- void setValue(const char *val);
-
- BigString& operator =( BigString &s) {
- if (this != &s)
- setValue(s);
- return *this;
- }
- void operator =(const char *newval) { setValue(newval); }
- void operator +=(const char *addval) {
- cat(addval);
- }
- int isempty();
- void reset();
- void catn(const char *s, int n);
- void cat(const char *s);
- char lastChar();
- char firstChar();
- int getLineCount();
- private:
- PtrList<String> strings;
- char *mem;
- int m_linecount;
- };
- #endif
|