Source for file modifier.wordwrap_i18n.php
Documentation is available at modifier.wordwrap_i18n.php
* smarty modifier:文字列のwordwrap処理
* {"あいうaえaおaかきaaaくけこ"|wordwrap_i18n:8}
* @param string $string wordwrapする文字列
* @param string $break 改行文字
* @param int $width wordwrap幅(半角$width文字でwordwrapする)
* @param int $indent インデント幅(半角$indent文字)
* 数値を指定するが、はじめの行はインデントされない
* @return string wordwrap処理された文字列
$client_enc =
$ctl->getClientEncoding();
// いわゆる半角を単位にしてwrapする位置を測るため、いったん
if ($n !==
false &&
$n <
$width) {
$r .=
$s .
((strlen($tmp) >
0)?
$i:
'');
Documentation generated on Fri, 11 Nov 2011 03:58:45 +0900 by phpDocumentor 1.4.3