X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FComponent%2FDiff%2FEngine%2FHWLDFWordAccumulator.php;fp=web%2Fcore%2Flib%2FDrupal%2FComponent%2FDiff%2FEngine%2FHWLDFWordAccumulator.php;h=98d430cfcc5c5acff4b6a2c3a8d815129dba8bd1;hp=eb7d9434c963b133f0a7627a91f37a50e51ca206;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php b/web/core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php index eb7d9434c..98d430cfc 100644 --- a/web/core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php +++ b/web/core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php @@ -2,8 +2,6 @@ namespace Drupal\Component\Diff\Engine; -use Drupal\Component\Utility\Unicode; - /** * Additions by Axel Boldt follow, partly taken from diff.php, phpwiki-1.3.3 */ @@ -64,7 +62,7 @@ class HWLDFWordAccumulator { } if ($word[0] == "\n") { $this->_flushLine($tag); - $word = Unicode::substr($word, 1); + $word = mb_substr($word, 1); } assert(!strstr($word, "\n")); $this->group .= $word;