Lines Matching refs:value
38 …function twig_truncate_filter(Twig_Environment $env, $value, $length = 30, $preserve = false, $sep… argument
40 if (mb_strlen($value, $env->getCharset()) > $length) {
43 if (false === ($breakpoint = mb_strpos($value, ' ', $length, $env->getCharset()))) {
44 return $value;
50 return rtrim(mb_substr($value, 0, $length, $env->getCharset())).$separator;
53 return $value;
56 …function twig_wordwrap_filter(Twig_Environment $env, $value, $length = 80, $separator = "\n", $pre… argument
63 $pieces = mb_split($separator, $value);
78 …function twig_truncate_filter(Twig_Environment $env, $value, $length = 30, $preserve = false, $sep… argument
80 if (strlen($value) > $length) {
82 if (false !== ($breakpoint = strpos($value, ' ', $length))) {
87 return rtrim(substr($value, 0, $length)).$separator;
90 return $value;
93 …function twig_wordwrap_filter(Twig_Environment $env, $value, $length = 80, $separator = "\n", $pre… argument
95 return wordwrap($value, $length, $separator, !$preserve);