mconv_encode(3m17n)

πŸ“¦
version 1.8.4 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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_IO
  • MERROR_CODING

πŸ‘‘ SEE ALSO πŸ‘‘

  • mconv_rebind_buffer()
  • mconv_rebind_stream()
  • mconv_decode()
  • mconv_encode_range()

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