}
+/*=*/
+
+/***en
+ @brief Insert a character into an M-text.
+
+ The mtext_ins_char () function inserts $N copy of character $C
+ into M-text $MT at position $POS. As a result, $MT is lengthen by
+ $N.
+
+ @return
+ If the operation was successful, mtext_ins () returns 0.
+ Otherwise, it returns -1 and assigns an error code to the external
+ variable #merror_code. */
+
+/***ja
+ @brief M-text ¤Ëʸ»ú¤òÁÞÆþ¤¹¤ë.
+
+ ´Ø¿ô mtext_ins_char () ¤Ï M-text $MT ¤Î $POS ¤Î°ÌÃÖ¤Ëʸ»ú $C ¤ò $N
+ ¸ÄÁÞÆþ¤¹¤ë¡£¤³¤Î·ë²Ì $MT1 ¤ÎŤµ¤Ï $N ¤À¤±Áý¤¨¤ë¡£
+
+ @return
+ ½èÍý¤¬À®¸ù¤¹¤ì¤Ð mtext_ins_char () ¤Ï 0 ¤òÊÖ¤¹¡£¤½¤¦¤Ç¤Ê¤±¤ì¤Ð -1
+ ¤òÊÖ¤·¡¢³°ÉôÊÑ¿ô #merror_code ¤Ë¥¨¥é¡¼¥³¡¼¥É¤òÀßÄꤹ¤ë¡£ */
+
+/***
+ @errors
+ @c MERROR_RANGE
+
+ @seealso
+ mtext_ins, mtext_del () */
+
int
mtext_ins_char (MText *mt, int pos, int c, int n)
{
return pos;
}
+/***en
+ @brief Locate an M-text in a specific range of another.
+
+ The mtext_search () function searches for the first occurrence of
+ M-text $MT2 in M-text $MT1 in the region $FROM and $TO while
+ ignoring difference of the text properties. If $FROM is less than
+ $TO, the forward search starts from $FROM, otherwise the backward
+ search starts from $TO.
+
+ @return
+ If $MT2 is found in $MT1, mtext_search () returns the position of the
+ first occurrence. Otherwise it returns -1. If $MT2 is empty, it
+ returns 0. */
+
+/***ja
+ @brief M-text Ãæ¤ÎÆÃÄê¤ÎÎΰè¤ÇÊ̤ΠM-text ¤òõ¤¹.
+
+ ´Ø¿ô mtext_text () ¤Ï¡¢M-text $MT1 Ãæ¤Ç°ÌÃÖ $POS °Ê¹ß¤Ë¸½¤ï¤ì¤ë
+ M-text $MT2 ¤ÎºÇ½é¤Î°ÌÃÖ¤òÄ´¤Ù¤ë¡£¥Æ¥¥¹¥È¥×¥í¥Ñ¥Æ¥£¤Î°ã¤¤¤Ï̵»ë¤µ
+ ¤ì¤ë¡£
+
+ @return
+ $MT1 Ãæ¤Ë $MT2 ¤¬¸«¤Ä¤«¤ì¤Ð¡¢mtext_text() ¤Ï¤½¤ÎºÇ½é¤Î½Ð¸½°ÌÃÖ¤òÊÖ
+ ¤¹¡£¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ï -1 ¤òÊÖ¤¹¡£¤â¤· $MT2 ¤¬¶õ¤Ê¤é¤Ð 0 ¤òÊÖ¤¹¡£
+
+ @latexonly \IPAlabel{mtext_text} @endlatexonly */
+
int
mtext_search (MText *mt1, int from, int to, MText *mt2)
{