1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 10:44:20 +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 508d864fcd
commit 2f3183796c
2 changed files with 69 additions and 92 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