public function __construct($locale = null, $caseSensitive = false)
{
$this->cache = array();
$this->locale = isset($locale) ? $locale : \Punic\Data::getDefaultLocale();
$this->caseSensitive = (bool) $caseSensitive;
$this->collator = null;
if (class_exists('\\Collator')) {
try {
$this->collator = new Collator($this->locale);
} catch (PHPException $x) {
}
}
$this->iconv = function_exists('iconv');
}