minput_lookup(3m17n)
β¨ minput_lookup β¨
okay bestie, you're in the m17n Library man pages, section 3m17n, and this one is literally called minput_lookup π (yes, the NAME section is giving absolutely nothing else β it's just the name, and honestly? iconic minimalism π).
πΈ SYNOPSIS πΈ
int minput_lookup (MInputContext * ic, MSymbol key, void * arg, MText * mt)
like... four arguments, one int coming back. we love a tidy signature π«Ά
π DESCRIPTION π
so the whole point of this function is looking up a text that got produced in the input context. minput_lookup() goes and looks up a text inside the input context ic.
here's the tea though β β key must be identical to the one that was used in the previous call of minput_filter(). not similar. not "close enough". identical. no cap. so don't be out here freestyling your keys π
if a text was actually produced by the input method, it gets concatenated to the M-text mt. so it's an append situation, not an overwrite situation, periodt β¨
and just so you know the lore: this function calls MInputDriver::lookup π
π RETURN VALUE π
- If
keywas correctly handled by the input method, this function returns0. slay β - Otherwise, it returns
-1π β and yes, that's true even though some text might be produced inmt. like, it can still hand you text and return-1. both things at once. it's giving chaotic but okay π
lowkey important: a-1doesn't meanmtis empty. check both. 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>.
and that's the whole page, bestie π this was Version 1.8.4, dated Mon Sep 25 2023, from the minput_lookup(3m17n) page β go forth and look up those texts, you absolute main character π¦β¨π
π¦ 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