Adds the content of text s at the end of self

var b = new Buffer
b.append "hello"
b.append "world"
assert b == "helloworld"

Property definitions

core $ Buffer :: append
	# Adds the content of text `s` at the end of self
	#
	# ~~~
	# var b = new Buffer
	# b.append "hello"
	# b.append "world"
	# assert b == "helloworld"
	# ~~~
	fun append(s: Text) is abstract
lib/core/text/abstract_text.nit:1579,2--1587,32

core $ FlatBuffer :: append
	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