mtext_cspn(3m17n)

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

✨ NAME ✨

mtext_cspn β€” bestie it literally has no one-line summary in the source, it's giving mysterious πŸ’… so we're just gonna say: it's the M-text complement-span girlie.


🌸 SYNOPSIS 🌸

int mtext_cspn (MText * mt, MText * reject)

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: you've got an M-text and you want to find out how far you can walk through it before you bump into a character you're actively avoiding. That's literally the whole vibe. Search an M-text for the complement of a set of characters.

So mtext_cspn() returns the length of the initial segment of M-text mt1 that consists entirely of characters not in M-text mt2.

🫢 tiny heads-up bestie: the synopsis calls the arguments mt and reject, and the description calls them mt1 and mt2. Same girls, different names, no cap β€” we're keeping both exactly as they were written. 😭

In other words: it counts, from the very start of the text, how many characters in a row are NOT in your reject set. The second one of them shows up? Boom, the count stops right there. Periodt. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

  • mtext_spn() β€” the other half of the duo, go say hi πŸ‘‘

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 bestie, slay πŸ’…βœ¨

Version 1.8.4 Β· Mon Sep 25 2023 Β· m17n Library β€” mwah, love u, go count some characters πŸŒˆπŸŽ€πŸ“

πŸ“¦ where this page comes from