*/
public function getCharPositions($string, $startOffset, &$currentMap, &$ignoredChars)
{
- $strlen = strlen($string);
+ $strlen = \strlen($string);
$ignoredChars = '';
for ($i = 0; $i < $strlen; ++$i) {
if ($string[$i] > "\x07F") {
public function validateByteSequence($bytes, $size)
{
$byte = reset($bytes);
- if (1 == count($bytes) && $byte >= 0x00 && $byte <= 0x7F) {
+ if (1 == \count($bytes) && $byte >= 0x00 && $byte <= 0x7F) {
return 0;
}