Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Component/Render/FormattableMarkup.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\Component\Render; | 3 namespace Drupal\Component\Render; |
4 | 4 |
5 use Drupal\Component\Utility\Html; | 5 use Drupal\Component\Utility\Html; |
6 use Drupal\Component\Utility\Unicode; | |
7 use Drupal\Component\Utility\UrlHelper; | 6 use Drupal\Component\Utility\UrlHelper; |
8 | 7 |
9 /** | 8 /** |
10 * Formats a string for HTML display by replacing variable placeholders. | 9 * Formats a string for HTML display by replacing variable placeholders. |
11 * | 10 * |
105 * | 104 * |
106 * @return int | 105 * @return int |
107 * The length of the string. | 106 * The length of the string. |
108 */ | 107 */ |
109 public function count() { | 108 public function count() { |
110 return Unicode::strlen($this->string); | 109 return mb_strlen($this->string); |
111 } | 110 } |
112 | 111 |
113 /** | 112 /** |
114 * Returns a representation of the object for use in JSON serialization. | 113 * Returns a representation of the object for use in JSON serialization. |
115 * | 114 * |