@@ 1857-1863 (lines=7) @@ | ||
1854 | if (!$firstword) { |
|
1855 | if ($space_left > 20) { |
|
1856 | $len = $space_left; |
|
1857 | if ($is_utf8) { |
|
1858 | $len = $this->utf8CharBoundary($word, $len); |
|
1859 | } elseif ('=' == mb_substr($word, $len - 1, 1)) { |
|
1860 | $len--; |
|
1861 | } elseif ('=' == mb_substr($word, $len - 2, 1)) { |
|
1862 | $len -= 2; |
|
1863 | } |
|
1864 | $part = mb_substr($word, 0, $len); |
|
1865 | $word = mb_substr($word, $len); |
|
1866 | $buf .= ' ' . $part; |
|
@@ 1878-1884 (lines=7) @@ | ||
1875 | break; |
|
1876 | } |
|
1877 | $len = $length; |
|
1878 | if ($is_utf8) { |
|
1879 | $len = $this->utf8CharBoundary($word, $len); |
|
1880 | } elseif ('=' == mb_substr($word, $len - 1, 1)) { |
|
1881 | $len--; |
|
1882 | } elseif ('=' == mb_substr($word, $len - 2, 1)) { |
|
1883 | $len -= 2; |
|
1884 | } |
|
1885 | $part = mb_substr($word, 0, $len); |
|
1886 | $word = mb_substr($word, $len); |
|
1887 |