| @@ 1920-1930 (lines=11) @@ | ||
| 1917 | ), |
|
| 1918 | $trimChars |
|
| 1919 | ); |
|
| 1920 | } else { |
|
| 1921 | $extract = $replacerForSkippedText . trim( |
|
| 1922 | UTF8::substr( |
|
| 1923 | $text, |
|
| 1924 | $pos_start, |
|
| 1925 | $pos_end, |
|
| 1926 | $this->encoding |
|
| 1927 | ), |
|
| 1928 | $trimChars |
|
| 1929 | ) . $replacerForSkippedText; |
|
| 1930 | } |
|
| 1931 | ||
| 1932 | } else { |
|
| 1933 | ||
| @@ 1946-1953 (lines=8) @@ | ||
| 1943 | UTF8::strpos($text, '.', $l, $this->encoding) |
|
| 1944 | ); |
|
| 1945 | ||
| 1946 | if ($pos_end) { |
|
| 1947 | $extract = rtrim( |
|
| 1948 | UTF8::substr($text, 0, $pos_end, $this->encoding), |
|
| 1949 | $trimChars |
|
| 1950 | ) . $replacerForSkippedText; |
|
| 1951 | } else { |
|
| 1952 | $extract = $text; |
|
| 1953 | } |
|
| 1954 | } |
|
| 1955 | ||
| 1956 | return static::create($extract, $this->encoding); |
|