9 namespace Fossology\Lib\Util;
21 $maxNumberOfCharsToCompare =
min(strlen($a), strlen($b));
22 while ($headLength < $maxNumberOfCharsToCompare &&
23 $a[$headLength] === $b[$headLength]) {
26 return substr($a,0,$headLength);
39 return preg_replace(
'/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]/u', $replace,
52 return strncmp($haystack, $needle, strlen($needle)) === 0;
64 return substr_compare($haystack, $needle, -strlen($needle)) === 0;
static stringEndsWith($haystack, $needle)
static replaceUnicodeControlChar($input, $replace="")
static stringStartsWith($haystack, $needle)
static getCommonHead($a, $b)
FUNCTION int min(int user_perm, int permExternal)
Get the minimum permission level required.