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:
@@ -28,6 +28,7 @@ public:
|
|||||||
int32 CountChars() const;
|
int32 CountChars() const;
|
||||||
int32 CountBytes(int32 fromCharOffset,
|
int32 CountBytes(int32 fromCharOffset,
|
||||||
int32 charCount) const;
|
int32 charCount) const;
|
||||||
|
bool IsEmpty() const;
|
||||||
|
|
||||||
// Assignment
|
// Assignment
|
||||||
BString& operator=(const BString& string);
|
BString& operator=(const BString& string);
|
||||||
@@ -397,6 +398,13 @@ BString::Length() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
inline bool
|
||||||
|
BString::IsEmpty() const
|
||||||
|
{
|
||||||
|
return !Length();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
inline const char*
|
inline const char*
|
||||||
BString::String() const
|
BString::String() const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user