| @@ 1916-1926 (lines=11) @@ | ||
| 1913 | ), |
|
| 1914 | $trimChars |
|
| 1915 | ); |
|
| 1916 | } else { |
|
| 1917 | $extract = $replacerForSkippedText . \trim( |
|
| 1918 | UTF8::substr( |
|
| 1919 | $text, |
|
| 1920 | $pos_start, |
|
| 1921 | $pos_end, |
|
| 1922 | $this->encoding |
|
| 1923 | ), |
|
| 1924 | $trimChars |
|
| 1925 | ) . $replacerForSkippedText; |
|
| 1926 | } |
|
| 1927 | ||
| 1928 | } else { |
|
| 1929 | ||
| @@ 1942-1949 (lines=8) @@ | ||
| 1939 | UTF8::strpos($text, '.', $l, $this->encoding) |
|
| 1940 | ); |
|
| 1941 | ||
| 1942 | if ($pos_end) { |
|
| 1943 | $extract = \rtrim( |
|
| 1944 | UTF8::substr($text, 0, $pos_end, $this->encoding), |
|
| 1945 | $trimChars |
|
| 1946 | ) . $replacerForSkippedText; |
|
| 1947 | } else { |
|
| 1948 | $extract = $text; |
|
| 1949 | } |
|
| 1950 | } |
|
| 1951 | ||
| 1952 | return static::create($extract, $this->encoding); |
|