String.h 387 B

1234567891011121314151617181920212223
  1. #ifndef STRING_H
  2. #define STRING_H
  3. #include "Types.h"
  4. class String {
  5. public:
  6. String();
  7. operator const char*() const;
  8. String& append(char c);
  9. String& append(const char* str);
  10. void clear();
  11. bool operator==(const char* str) const;
  12. uint getLength() const;
  13. private:
  14. static const uint LENGTH = 4096;
  15. uint length;
  16. char data[LENGTH];
  17. };
  18. #endif