mtext_cspn(3m17n)
β¨ 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 argumentsmtandreject, 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 π
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
- 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