s
at the end of selfvar b = new Buffer
b.append "hello"
b.append "world"
assert b == "helloworld"
redef fun append(s)
do
if s.is_empty then return
var sl = s.byte_length
var nln = _byte_length + sl
enlarge(nln)
if s isa FlatText then
s._items.copy_to(_items, sl, s.first_byte, _byte_length)
else
for i in s.substrings do append i
return
end
_byte_length = nln
_length += s.length
end
lib/core/text/flat.nit:1064,2--1078,4