| @@ 1701-1711 (lines=11) @@ | ||
| 1698 | ), |
|
| 1699 | $trimChars |
|
| 1700 | ); |
|
| 1701 | } else { |
|
| 1702 | $extract = $ellipsis . trim( |
|
| 1703 | UTF8::substr( |
|
| 1704 | $text, |
|
| 1705 | $pos_start, |
|
| 1706 | $pos_end, |
|
| 1707 | $this->encoding |
|
| 1708 | ), |
|
| 1709 | $trimChars |
|
| 1710 | ) . $ellipsis; |
|
| 1711 | } |
|
| 1712 | ||
| 1713 | } else { |
|
| 1714 | ||
| @@ 1727-1734 (lines=8) @@ | ||
| 1724 | UTF8::strpos($text, '.', $l, $this->encoding) |
|
| 1725 | ); |
|
| 1726 | ||
| 1727 | if ($pos_end) { |
|
| 1728 | $extract = rtrim( |
|
| 1729 | UTF8::substr($text, 0, $pos_end, $this->encoding), |
|
| 1730 | $trimChars |
|
| 1731 | ) . $ellipsis; |
|
| 1732 | } else { |
|
| 1733 | $extract = $text; |
|
| 1734 | } |
|
| 1735 | } |
|
| 1736 | ||
| 1737 | return static::create($extract, $this->encoding); |
|