mchar_define_property(3m17n)

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

πŸ’– mchar_define_property β€” the m17n Library's character-property glow-up πŸ’–

okay bestie, sit down, hydrate, because we're about to define a character property and honestly? it's giving main character energy. this is a page from the m17n Library manual (yes, that m17n, the multilingualization icon πŸ‘‘).


✨ NAME ✨

mchar_define_property β€” literally just the name, no little tagline, she said "my work speaks for itself" πŸ’…


🌸 SYNOPSIS 🌸

MSymbol mchar_define_property (const char * name, MSymbol type)

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this function's whole thing is: define a character property. that's it. that's the job. no cap.

mchar_define_property() goes digging through the m17n database looking for data whose tags are <Mchar_table, type, sym>. and where does sym come from, you ask? sym is a symbol whose name is name πŸŽ€ β€” so the name you pass in becomes the name of the symbol. cute, right?

and type?? bestie, type has RULES. it must be one of:

  • Mstring
  • Mtext
  • Msymbol
  • Minteger
  • Mplist

pick one of those five, that's the vibe check, no substitutions πŸ™ˆ


⭐ RETURN VALUE ⭐

  • if everything went iconic and the operation was successful, mchar_define_property() hands you back sym 🫢
  • if not? she returns Mnil. tragic. we've all been there 😭

πŸ’€ ERRORS πŸ’€

  • MERROR_DB

(yes that's the whole list. short king.)


πŸ”₯ SEE ALSO πŸ”₯

  • mchar_get_prop()
  • mchar_put_prop()

go read those too, 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 so that's the whole page, bestie. go forth and define those properties, slay responsibly πŸ’–

Version 1.8.4 β€” Mon Sep 25 2023 β€” mchar_define_property(3m17n) 🧚✨

πŸ“¦ where this page comes from