Add BString::IsEmpty() method.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41242 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström
2011-04-12 18:10:02 +00:00
parent cfbbba0820
commit b2d9843906
+8
View File
@@ -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
{