TextSpan: Added Append() method for convenience.

This commit is contained in:
Stephan Aßmus 2014-01-22 22:55:11 +01:00
parent 8346431fdd
commit 318bc4b58c
2 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,13 @@ TextSpan::SetStyle(const CharacterStyle& style)
}
bool
TextSpan::Append(const BString& text)
{
return Insert(fCharCount, text);
}
bool
TextSpan::Insert(int32 offset, const BString& text)
{

View File

@ -33,6 +33,7 @@ public:
inline int32 CountChars() const
{ return fCharCount; }
bool Append(const BString& text);
bool Insert(int32 offset, const BString& text);
bool Remove(int32 start, int32 count);