#ifndef __MYEZString_H #define __MYEZString_H #include class EZString { public: EZString(); EZString(const char* input); EZString(const EZString& input); ~EZString(); void Clear(void); void Append(const char c); void UnAppend(void); void PrefixName(char *name); inline unsigned GetLength(void) const {return length;} EZString& operator = (const EZString& input); friend int operator==(const EZString& left, const EZString& right); friend int operator > (const EZString& left, const EZString& right); friend int operator < (const EZString& left, const EZString& right); char* str; // Extra bit of memory when reallocating so it is faster to append single characters const int appendBuffer; private: unsigned allocatedMemory; unsigned length; }; #endif