mtext_spn(3m17n)

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

🌸 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 args mt and accept, while the description calls them mt1 and mt2 β€” same two M-texts, just different nicknames. iykyk πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

  • mtext_cspn()

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