reports: Fix id of custom date selector
[ninja.git] / system / core / utf8 / strcasecmp.php
blobd06d3ebd34212fc13b1aa4108a044d91ef582269
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * utf8::strcasecmp
5 * @package Core
6 * @author Kohana Team
7 * @copyright (c) 2007 Kohana Team
8 * @copyright (c) 2005 Harry Fuecks
9 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
11 function _strcasecmp($str1, $str2)
13 if (utf8::is_ascii($str1) AND utf8::is_ascii($str2))
14 return strcasecmp($str1, $str2);
16 $str1 = utf8::strtolower($str1);
17 $str2 = utf8::strtolower($str2);
18 return strcmp($str1, $str2);