protected DiffEngine::_line_hash($line)
Returns the whole line if it's small enough, or the MD5 hash otherwise.
protected function _line_hash($line) { if (Unicode::strlen($line) > $this::MAX_XREF_LENGTH) { return md5($line); } else { return $line; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Diff!Engine!DiffEngine.php/function/DiffEngine::_line_hash/8.1.x