mchar_encode(3m17n)

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

✨ NAME ✨

mchar_encode β€” bestie, it's the encode-a-character-code one πŸ’…


🌸 SYNOPSIS 🌸

unsigned mchar_encode (MSymbol charset_name, int c)

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: you've got a character code, and you wanna know what it looks like inside a specific charset. That's literally the whole job.

The mchar_encode() function encodes character code c to get a code-point in the charset represented by the symbol charset_name.

That's it. That's the function. Encode c β†’ get the code-point in <charset_name>. Slay. πŸŽ€


πŸ’– RETURN VALUE πŸ’–

If encoding was successful, mchar_encode() returns the encoded code-point. Periodt. ✨

Otherwise β€” and this is the part where you go πŸ₯² β€” it returns MCHAR_INVALID_CODE. No code-point for you, bestie.


πŸ‘‘ SEE ALSO πŸ‘‘

  • mchar_decode() β€” the reverse vibe, iykyk 🌈

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>.


okay that's the whole page, you ate it, no cap 🫢

Version 1.8.4 β€” Mon Sep 25 2023 β€” m17n Library, mchar_encode(3m17n) ⭐ that's the source, the version and the date, mwah πŸ’‹

πŸ“¦ where this page comes from