From: handa Date: Wed, 27 Sep 2006 06:09:48 +0000 (+0000) Subject: (mtext_line_break): Add comment. X-Git-Tag: REL-1-3-4~40 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=353d1af4fa92c6d1a2d0a8f3b76f8c2066f327b7;p=m17n%2Fm17n-lib.git (mtext_line_break): Add comment. --- diff --git a/src/mtext-lbrk.c b/src/mtext-lbrk.c index 82b81c0..2d4fd37 100644 --- a/src/mtext-lbrk.c +++ b/src/mtext-lbrk.c @@ -163,6 +163,21 @@ static MCharTable *lbc_table; /*** @{ */ /*=*/ +/***en + @brief Find a linebreak postion of an M-text. + + The mtext_line_break () function checks if position $POS is a + proper linebreak position of an M-text $MT according to the + algorithm of The Unicode Standard 4.0 UAX#14. It so, it returns + $POS. Otherwise, it returns a proper linebreak position before + $POS. + + If $OPTION is nonzero, it controls the algorithm by logical-or of + the members of #MTextLineBreakOption. + + If $AFTER is not NULL, a proper linebreak position after $POS is + stored there. */ + int mtext_line_break (MText *mt, int pos, int option, int *after) {