mconv_encode(3m17n)
π mconv_encode β the m17n Library's little byte-maker π
okay bestie, welcome to mconv_encode(3m17n), straight out of the m17n Library. this is the one that takes your pretty M-text and turns it into actual bytes. no cap.
β¨ SYNOPSIS β¨
int mconv_encode (MConverter * converter, MText * mt)
π¦ DESCRIPTION π¦
so here's the vibe: mconv_encode() encodes an M-text into a byte sequence. you hand it your M-text mt, and it writes the resulting byte sequence into wherever converter is currently pointing β either a buffer area or a stream, depending on what's bound to that MConverter * converter right now. it's giving "translation era". π
πΈ RETURN VALUE πΈ
if everything went slay, mconv_encode() returns the number of written bytes. iconic. β¨
if it did not go slay, it returns -1 and drops an error code into the external variable merror_code. π
π ERRORS π
MERROR_IOMERROR_CODING
π SEE ALSO π
mconv_rebind_buffer()mconv_rebind_stream()mconv_decode()mconv_encode_range()
π COPYRIGHT π
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.
and that's the whole page, bestie π«Ά this was Version 1.8.4, dated Mon Sep 25 2023 β mconv_encode(3m17n), periodt π β¨
π¦ where this page comes from
- debian trixie: m17n-docs 1.8.4-1
- ubuntu noble: m17n-docs 1.8.4-1
- ubuntu questing: m17n-docs 1.8.4-1
- ubuntu resolute: m17n-docs 1.8.4-1build1
- ubuntu stonking: m17n-docs 1.8.4-1build1
- Copyright (C) 2001 Information-technology Promotion Agency (IPA)
- Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms