function toLower()
 {
     $str = $this->string;
     if (count(Characters::getAllMap()) > 0) {
         foreach (Characters::getAllMap() as $hexName => $letter) {
             $str = str_replace($letter[Characters::TYPE_BIG], $letter[Characters::TYPE_SMALL], $str);
         }
     }
     return new StringObject(strtolower($str));
 }
Exemple #2
0
 function onLoading()
 {
     $lang = new Language(ResourceManager::getResource(MainConfig::LANGUAGE_INDEX_NAME));
     $lang->loadFile(self::TAG);
     $ch = new Characters("Turkish");
     $ch->addMap("Ğ", "ğ", "g");
     $ch->addMap("Ç", "ç", "c");
     $ch->addMap("İ", "i", "i");
     $ch->addMap("I", "ı", "i");
     $ch->addMap("Ö", "ö", "o");
     $ch->addMap("Ş", "ş", "s");
     $ch->addMap("Ü", "ü", "u");
     return $lang;
 }