mtext_text(3m17n)
β¨ mtext_text β¨
okay bestie, welcome to the m17n Library corner of the manual β this is mtext_text(3m17n), and it's genuinely one of the most useful little functions here, no cap. let's get into it π
πΈ NAME πΈ
mtext_text β find one M-text inside another one, fr fr
π¦ SYNOPSIS π¦
int mtext_text (MText * mt1, int pos, MText * mt2)
like. three things in, one int out. iconic behaviour honestly π
π DESCRIPTION π
so the whole vibe of this function is: locate an M-text in another. that's it, that's the job. π
mtext_text() finds the first occurrence of the M-text mt2 inside the M-text mt1, and it only starts looking after the position pos. and here's the cute part β it does all of this while ignoring difference of the text properties. so the properties aren't part of the vibe check, only the actual text is. periodt. β¨
π«Ά RETURN VALUE π«Ά
- if
mt2is found inmt1,mtext_text()returns the position of it first occurrence π - otherwise it returns
-1π (she said no) - and if
mt2is empty, it returns0π
π 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>.
ok that's the whole page bestie, you ate that π go find your substrings, you got this π
and for the lil sign-off moment: this was Version 1.8.4, dated Mon Sep 25 2023, straight from mtext_text(3m17n). mwah ππ§
π¦ 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