mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
TextSpan: Added Append() method for convenience.
This commit is contained in:
parent
8346431fdd
commit
318bc4b58c
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user