Gets a view on the chars of the Text object

assert "hello".chars.to_a == ['h', 'e', 'l', 'l', 'o']

Property definitions

core $ Text :: chars
	# Gets a view on the chars of the Text object
	#
	# ~~~
	# assert "hello".chars.to_a == ['h', 'e', 'l', 'l', 'o']
	# ~~~
	fun chars: SequenceRead[Char] is abstract
lib/core/text/abstract_text.nit:35,2--40,42

core $ Buffer :: chars
	# In Buffers, the internal sequence of character is mutable
	# Thus, `chars` can be used to modify the buffer.
	redef fun chars: Sequence[Char] is abstract
lib/core/text/abstract_text.nit:1686,2--1688,44

core $ U16String :: chars
	redef fun chars do return new U16StringCharView(self)
lib/core/text/u16_string.nit:90,2--54

core $ Concat :: chars
	redef fun chars do return new RopeChars(self)
lib/core/text/ropes.nit:73,2--46

core $ FlatString :: chars
	redef fun chars do return new FlatStringCharView(self)
lib/core/text/flat.nit:416,2--55

core $ FlatBuffer :: chars
	redef fun chars do return new FlatBufferCharView(self)
lib/core/text/flat.nit:870,2--55