diff --git a/headers/os/support/String.h b/headers/os/support/String.h index 05bfaad05a..f376afb1a7 100644 --- a/headers/os/support/String.h +++ b/headers/os/support/String.h @@ -28,6 +28,7 @@ public: int32 CountChars() const; int32 CountBytes(int32 fromCharOffset, int32 charCount) const; + bool IsEmpty() const; // Assignment BString& operator=(const BString& string); @@ -397,6 +398,13 @@ BString::Length() const } +inline bool +BString::IsEmpty() const +{ + return !Length(); +} + + inline const char* BString::String() const {