Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/polyfill-iconv/Iconv.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 7a779792577d |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/vendor/symfony/polyfill-iconv/Iconv.php Thu Apr 26 11:26:54 2018 +0100 +++ b/vendor/symfony/polyfill-iconv/Iconv.php Tue Jul 10 15:07:59 2018 +0100 @@ -248,9 +248,9 @@ } $str = explode(':', $str, 2); - if (2 === count($str)) { + if (2 === \count($str)) { if (isset($headers[$str[0]])) { - if (!is_array($headers[$str[0]])) { + if (!\is_array($headers[$str[0]])) { $headers[$str[0]] = array($headers[$str[0]]); } $headers[$str[0]][] = ltrim($str[1]); @@ -285,7 +285,7 @@ } $i = 1; - $len = count($str); + $len = \count($str); while ($i < $len) { $c = strtolower($str[$i]); @@ -355,7 +355,7 @@ public static function iconv_mime_encode($fieldName, $fieldValue, $pref = null) { - if (!is_array($pref)) { + if (!\is_array($pref)) { $pref = array(); } @@ -385,8 +385,8 @@ $lineBreak = (int) $pref['line-length']; $lineStart = "=?{$pref['output-charset']}?{$scheme}?"; - $lineLength = strlen($fieldName) + 2 + strlen($lineStart) + 2; - $lineOffset = strlen($lineStart) + 3; + $lineLength = \strlen($fieldName) + 2 + \strlen($lineStart) + 2; + $lineOffset = \strlen($lineStart) + 3; $lineData = ''; $fieldValue = array(); @@ -416,7 +416,7 @@ } $lineData .= $c; - $Q && $lineLength += strlen($c); + $Q && $lineLength += \strlen($c); } if ('' !== $lineData) { @@ -452,7 +452,7 @@ return false; } - return strlen(utf8_decode($s)); + return \strlen(utf8_decode($s)); } public static function strlen2($s, $encoding = null) @@ -468,7 +468,7 @@ $i = 0; $j = 0; - $len = strlen($s); + $len = \strlen($s); while ($i < $len) { $u = $s[$i] & "\xF0"; @@ -600,7 +600,7 @@ $u = $str; $i = $j = 0; - $len = strlen($str); + $len = \strlen($str); while ($i < $len) { if ($str[$i] < "\x80") { @@ -636,7 +636,7 @@ private static function mapToUtf8(&$result, array $map, $str, $ignore) { - $len = strlen($str); + $len = \strlen($str); for ($i = 0; $i < $len; ++$i) { if (isset($str[$i + 1], $map[$str[$i].$str[$i + 1]])) { $result .= $map[$str[$i].$str[++$i]]; @@ -662,7 +662,7 @@ } $i = 0; - $len = strlen($str); + $len = \strlen($str); while ($i < $len) { if ($str[$i] < "\x80") { @@ -698,7 +698,7 @@ } $str = $uchr.substr($str, $i); - $len = strlen($str); + $len = \strlen($str); $i = 0; } elseif (!$ignore) { return false; @@ -710,7 +710,7 @@ private static function qpByteCallback(array $m) { - return '='.strtoupper(dechex(ord($m[0]))); + return '='.strtoupper(dechex(\ord($m[0]))); } private static function pregOffset($offset)