Exemple #1
0
function utf8tolower($input_string)
{
    $ustring = new Unicode_String();
    $ustring->fromUTF8($input_string);
    return $ustring->toLower()->toUTF8();
}
Exemple #2
0
 /**
  * This method does a comparison like that in $cmp(), except that it is case-insensitive.
  * @see strcmp()
  * @param Unicode_String $that
  * @return integer
  */
 function caseCmp($that)
 {
     $s1 = $this->toLower();
     $s2 = $that->toLower();
     return strcmp($s1->toUTF8(), $s2->toUTF8());
 }