fixed and improved

This commit is contained in:
2023-12-05 16:12:34 +03:00
parent 5e229fcb68
commit 1e45d4d4d7

View File

@@ -29,7 +29,7 @@ public:
const char* getCharArray() const { return body.c_str(); }
const string& getBody() const { return body; }
size_t getLength() const { return body.size(); }
bool isEmpty() const { return body.size() != 0; }
bool isEmpty() const { return body.size() == 0; }
bool contains(const String& s) const { return body.find(s.getBody()) != string::npos; }
bool operator==(const String& s) const { return body == s.getBody(); }