String.h 383 B

123456789101112131415161718192021
  1. #ifndef STRING_H
  2. #define STRING_H
  3. #include "common/utils/Types.h"
  4. class String {
  5. public:
  6. String();
  7. String(const char* str);
  8. bool operator==(const String& other) const;
  9. bool operator!=(const String& other) const;
  10. operator const char*() const;
  11. private:
  12. static constexpr uint BUFFER_LENGTH = 256;
  13. uint length;
  14. char data[BUFFER_LENGTH];
  15. };
  16. #endif