TextSpan: Added Append() method for convenience.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user