mchar_encode(3m17n)
β¨ 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 π
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
- 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