DOKK / manpages / debian 10 / m17n-docs / mtext_text.3m17n.en
mtext_text(3m17n) The m17n Library mtext_text(3m17n)

mtext_text - Locate an M-text in another.

int mtext_text (MText * mt1, int pos, MText * mt2)

Locate an M-text in another. The mtext_text() function finds the first occurrence of M-text mt2 in M-text mt1 after the position pos while ignoring difference of the text properties.

If mt2 is found in mt1, mtext_text() returns the position of it first occurrence. Otherwise it returns -1. If mt2 is empty, it returns 0.

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>.

12 Jan 2011 Version 1.6.2