Transforms c to its representation in the format of self

Property definitions

core $ Codec :: encode_char
	# Transforms `c` to its representation in the format of `self`
	fun encode_char(c: Char): CString is abstract
lib/core/codecs/codec_base.nit:32,2--33,46

core $ UTF8Codec :: encode_char
	redef fun encode_char(c) do
		var ns = new CString(c.u8char_len)
		add_char_to(c, ns)
		return ns
	end
lib/core/codecs/utf8.nit:32,2--36,4

core $ ISO88591Codec :: encode_char
	redef fun encode_char(c) do
		var ns = new CString(c.u8char_len)
		add_char_to(c, ns)
		return ns
	end
lib/core/codecs/iso8859_1.nit:30,2--34,4