A upper case version of self

assert "Hello World!".to_upper     == "HELLO WORLD!"

Property definitions

core $ Text :: to_upper
	# A upper case version of `self`
	#
	# ~~~
	# assert "Hello World!".to_upper     == "HELLO WORLD!"
	# ~~~
	fun to_upper: SELFTYPE is abstract
lib/core/text/abstract_text.nit:1304,2--1309,35

core $ Buffer :: to_upper
	redef fun to_upper do
		var ret = clone
		ret.upper
		return ret
	end
lib/core/text/abstract_text.nit:1777,2--1781,4

core $ Concat :: to_upper
	redef fun to_upper do return new Concat(_left.to_upper, _right.to_upper)
lib/core/text/ropes.nit:209,2--73

core $ FlatString :: to_upper
	redef fun to_upper
	do
		var outstr = new FlatBuffer.with_capacity(self._byte_length + 1)

		var mylen = _length
		var pos = 0

		while pos < mylen do
			outstr.add(chars[pos].to_upper)
			pos += 1
		end

		return outstr.to_s
	end
lib/core/text/flat.nit:483,2--496,4