From 26fdb82da5c5fa7b34a45325a674aa0ab57219a2 Mon Sep 17 00:00:00 2001 From: nisikimi Date: Tue, 27 Apr 2004 04:42:02 +0000 Subject: [PATCH] *** empty log message *** --- src/mtext.c | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/mtext.c b/src/mtext.c index 92704a3..e377e9d 100644 --- a/src/mtext.c +++ b/src/mtext.c @@ -70,7 +70,7 @@ ¥àÃæ¤Î³Æ´Ø¿ô¤ò´ÊÁDz½¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£ ¤µ¤é¤Ëm17n ¥é¥¤¥Ö¥é¥ê¤Ï¡¢ C-string ¤òÁàºî¤¹¤ë¤¿¤á¤ËÄ󶡤µ¤ì¤ë¼ï¡¹ - ¤Î´Ø¿ô¤ÈƱÅù¤â¤Î¤ò M-text ¤òÁàºî¤¹¤ë¤¿¤á¤Ë¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¡£ */ + ¤Î´Ø¿ô¤ÈƱÅù¤Î¤â¤Î¤ò M-text ¤òÁàºî¤¹¤ë¤¿¤á¤Ë¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¡£ */ /*=*/ @@ -1611,7 +1611,7 @@ mtext_duplicate (MText *mt, int from, int to) an error code to the external variable #merror_code. */ /***ja - @brief M-text ¤Î»ØÄêÈϰϤÎʸ»ú¤ò¥³¥Ô¡¼¤¹¤ë. + @brief M-text ¤Ë»ØÄêÈϰϤÎʸ»ú¤ò¥³¥Ô¡¼¤¹¤ë. ´Ø¿ô mtext_copy () ¤Ï¡¢ M-text $MT2 ¤Î $FROM ¡Ê´Þ¤à¡Ë¤«¤é $TO ¡Ê´Þ ¤Þ¤Ê¤¤¡Ë¤Þ¤Ç¤ÎÈϰϤΥƥ­¥¹¥È¤ò M-text $MT1 ¤Î°ÌÃÖ $POS ¤«¤é¾å½ñ¤­ @@ -1782,7 +1782,7 @@ mtext_ins (MText *mt1, int pos, MText *mt2) /***en @brief Insert a character into an M-text. - The mtext_ins_char () function inserts $N copy of character $C + The mtext_ins_char () function inserts $N copies of character $C into M-text $MT at position $POS. As a result, $MT is lengthen by $N. @@ -1852,8 +1852,8 @@ mtext_ins_char (MText *mt, int pos, int c, int n) @brief Search a character in an M-text. The mtext_character () function searches M-text $MT for character - $C. If $FROM is less than $TO, search begins at position $FROM - and goes forward but does not exceed ($TO - 1). Otherwise, search + $C. If $FROM is less than $TO, the search begins at position $FROM + and goes forward but does not exceed ($TO - 1). Otherwise, the search begins at position ($FROM - 1) and goes backward but does not exceed $TO. An invalid position specification is regarded as both $FROM and $TO being 0. @@ -1910,11 +1910,11 @@ mtext_character (MText *mt, int from, int to, int c) @brief Return the position of the first occurrence of a character in an M-text. The mtext_chr () function searches M-text $MT for character $C. - Search starts from the beginning of $MT and goes toward the end. + The search starts from the beginning of $MT and goes toward the end. @return If $C is found, mtext_chr () returns its position; otherwise it - returns. */ + returns -1. */ /***ja @brief M-text Ãæ¤Ç»ØÄꤵ¤ì¤¿Ê¸»ú¤¬ºÇ½é¤Ë¸½¤ì¤ë°ÌÃÖ¤òÊÖ¤¹. @@ -1947,7 +1947,7 @@ mtext_chr (MText *mt, int c) @brief Return the position of the last occurrence of a character in an M-text. The mtext_rchr () function searches M-text $MT for character $C. - Search starts from the end of $MT and goes backwardly toward the + The search starts from the end of $MT and goes backwardly toward the beginning. @return @@ -2334,12 +2334,6 @@ mtext_text (MText *mt1, int pos, MText *mt2) /***ja @brief M-text Ãæ¤ÎÆÃÄê¤ÎÎΰè¤ÇÊ̤ΠM-text ¤òõ¤¹. - ´Ø¿ô mtext_search () ¤Ï¡¢ 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. - ´Ø¿ô mtext_text () ¤Ï¡¢M-text $MT1 Ãæ¤Î $FROM ¤«¤é $TO ¤Þ¤Ç¤Î´Ö¤Î Îΰè¤ÇM-text $MT2 ¤¬ºÇ½é¤Ë¸½¤ï¤ì¤ë°ÌÃÖ¤òÄ´¤Ù¤ë¡£¥Æ¥­¥¹¥È¥×¥í¥Ñ¥Æ¥£ ¤Î°ã¤¤¤Ï̵»ë¤µ¤ì¤ë¡£¤â¤· $FROM ¤¬ $TO ¤è¤ê¾®¤µ¤±¤ì¤Ðõº÷¤Ï°ÌÃÖ @@ -2492,7 +2486,7 @@ mtext_ncasecmp (MText *mt1, MText *mt2, int n) @brief Æó¤Ä¤Î M-text ¤Î»ØÄꤷ¤¿Îΰè¤ò¡¢Âçʸ»ú¡¿¾®Ê¸»ú¤Î¶èÊ̤ò̵»ë¤·¤ÆÈæ³Ó¤¹¤ë. ´Ø¿ô mtext_compare () ¤ÏÆó¤Ä¤Î M-text $MT1 ¤È $MT2 ¤ò¡¢Âçʸ»ú¡¿¾® - ʸ»ú¤Î¶èÊ̤ò̵»ë¤·¤Ä¤Äʸ»úñ°Ì¤ÇÈæ³Ó¤¹¤ë¡£Èæ³ÓÂоݤȤʤë¤Î¤Ï $MT1 + ʸ»ú¤Î¶èÊ̤ò̵»ë¤·¤Æʸ»úñ°Ì¤ÇÈæ³Ó¤¹¤ë¡£Èæ³ÓÂоݤȤʤë¤Î¤Ï $MT1 ¤Ç¤Ï $FROM1 ¤«¤é $TO1 ¤Þ¤Ç¡¢$MT2 ¤Ç¤Ï $FROM2 ¤«¤é $TO2 ¤Þ¤Ç¤Ç¤¢¤ë¡£ $FROM1 ¤È $FROM2 ¤Ï´Þ¤Þ¤ì¡¢$TO1 ¤È $TO2 ¤Ï´Þ¤Þ¤ì¤Ê¤¤¡£$FROM1 ¤È $TO1 ¡Ê¤¢¤ë¤¤¤Ï $FROM2 ¤È $TO2 ¡Ë¤¬Åù¤·¤¤¾ì¹ç¤ÏŤµ¥¼¥í¤Î M-text -- 1.7.10.4