@@ 1665-1675 (lines=11) @@ | ||
1662 | ), |
|
1663 | $trimChars |
|
1664 | ); |
|
1665 | } else { |
|
1666 | $extract = $ellipsis . trim( |
|
1667 | UTF8::substr( |
|
1668 | $text, |
|
1669 | $pos_start, |
|
1670 | $pos_end, |
|
1671 | $this->encoding |
|
1672 | ), |
|
1673 | $trimChars |
|
1674 | ) . $ellipsis; |
|
1675 | } |
|
1676 | ||
1677 | } else { |
|
1678 | ||
@@ 1691-1698 (lines=8) @@ | ||
1688 | UTF8::strpos($text, '.', $l, $this->encoding) |
|
1689 | ); |
|
1690 | ||
1691 | if ($pos_end) { |
|
1692 | $extract = rtrim( |
|
1693 | UTF8::substr($text, 0, $pos_end, $this->encoding), |
|
1694 | $trimChars |
|
1695 | ) . $ellipsis; |
|
1696 | } else { |
|
1697 | $extract = $text; |
|
1698 | } |
|
1699 | } |
|
1700 | ||
1701 | return static::create($extract, $this->encoding); |