Returns a sequence with the UTF-8 bytes of self

assert 'a'.bytes == [0x61]
assert 'ま'.bytes == [0xE3, 0x81, 0xBE]

Property definitions

core :: abstract_text $ Char :: bytes
	# Returns a sequence with the UTF-8 bytes of `self`
	#
	# ~~~
	# assert 'a'.bytes == [0x61]
	# assert 'ま'.bytes == [0xE3, 0x81, 0xBE]
	# ~~~
	fun bytes: SequenceRead[Int] do return to_s.bytes
lib/core/text/abstract_text.nit:2154,2--2160,50