mchartable_lookup(3m17n)

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

✨ NAME ✨

mchartable_lookup β€” bestie this is the m17n Library's chartable lookup girlie, and she's here to fetch values for you πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

void* mchartable_lookup (MCharTable * table, int c)

🌸 DESCRIPTION 🌸

okay so. mchartable_lookup() is the one you call when you wanna know what value got assigned to a character in a chartable. You hand her a chartable table and a character c, and she gives you back the value that's been assigned to c in table. no cap, that's the whole job πŸ’…

But here's the tea 🍡 β€” if nobody ever set a value for c explicitly, she doesn't ghost you, she just returns the default value of table instead. Love that for her.

And if c isn't even a valid character? 😭 Then mchartable_lookup() returns NULL and assigns an error code to the external variable merror_code. So check that variable, bestie, she's not gonna text you first.


πŸ’€ ERRORS πŸ’€

  • MERROR_CHAR

πŸ¦‹ SEE ALSO πŸ¦‹

  • mchartable_set()

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, and it lives under mchartable_lookup(3m17n) in the m17n Library. mwah πŸ’‹ go set some chartables, you ate 🫢✨

πŸ“¦ where this page comes from