1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/15043] Rewrite get_context()

PHPBB3-15043
This commit is contained in:
Rubén Calvo
2018-09-26 13:02:36 +02:00
committed by Ruben Calvo
parent c790e81fb6
commit dd4c982792
2 changed files with 69 additions and 90 deletions

View File

@@ -72,6 +72,22 @@ function utf8_strpos($str, $needle, $offset = null)
}
}
/**
* UTF-8 aware alternative to stripos
* @ignore
*/
function utf8_stripos($str, $needle, $offset = null)
{
if (is_null($offset))
{
return mb_stripos($str, $needle);
}
else
{
return mb_stripos($str, $needle, $offset);
}
}
/**
* UTF-8 aware alternative to strtolower
* @ignore