core :: Codec :: encode_char
c
to its representation in the format of self
# 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
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
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