diff --git a/app/classes/string.php b/app/classes/string.php index fef37a7..39984fd 100644 --- a/app/classes/string.php +++ b/app/classes/string.php @@ -25,10 +25,6 @@ public static function uncamelize($str) { return preg_replace('/(?<=[a-z])([A-Z])/e', "'-' . strtolower('\\1')", $str); } - public static function startsWith($haystack, $needle) { - return strncmp($haystack, $needle, strlen($needle)) === 0; - } - static function isFalse($val) { return (!$val || $val == 'false' || $val == 'no'); } @@ -50,18 +46,6 @@ static function getFirstLine($text) { return trim($pos ? substr($text, 0, $pos) : $text, "\r"); } - /** - * Generate string of random characters - * @param int $len - * @return string - */ - static function random__($len) { - static $z = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; - $slen = strlen($z) - 1; - for($s = ""; $len > 0; $len--) $s .= substr($z, rand(0, $slen), 1); - return $s; - } - /** * Implode using printf formatting * @param string $glue Glue for implode