mtext_spn(3m17n)
πΈ mtext_spn β the m17n Library's little "how far can we go" counter πΈ
okay bestie, welcome to mtext_spn(3m17n), brought to you by The m17n Library. it's short, it's sweet, it's giving "one job and it does it flawlessly" π
β¨ SYNOPSIS β¨
int mtext_spn (MText * mt, MText * accept)
π DESCRIPTION π
so the whole mission here is: search an M-text for a set of characters. that's it. that's the gig π
mtext_spn() returns the length of the initial segment of M-text mt1 that consists entirely of characters in M-text mt2.
like. it walks along the start of your text and counts how many characters in a row are all members of that accept-set, and the second it hits a character that isn't in the set, it stops and hands you the count. no cap. π₯
heads up, the synopsis names the two argsmtandaccept, while the description calls themmt1andmt2β same two M-texts, just different nicknames. iykyk π
π SEE ALSO π
mtext_cspn()
π 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 β Version 1.8.4, dated Mon Sep 25 2023, and yeah it's literally still mtext_spn(3m17n). go count some characters, you absolute icon π¦π
π¦ 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