Allow normalized search (without diacritics) it should also fix the case problem with non latin languages (cyrillic).
The last part is not tested. disclaimer : Slow ! re #49, #48
这个提交存在于:
父节点
23fcc4d641
当前提交
78d42b48e2
共有 5 个文件被更改,包括 148 次插入 和 7 次删除
|
|
@ -125,4 +125,8 @@ class BaseTest extends PHPUnit_Framework_TestCase
|
|||
|
||||
$this->assertTrue (Base::checkDatabaseAvailability ());
|
||||
}
|
||||
|
||||
public function testNormalizeUtf8String () {
|
||||
$this->assertEquals ("AAAAAEACEEEEIIIIOEOOOOOEUUUUEYaaaaaeaceeeeiiiioedoooooeuuuueyyuny", normalizeUtf8String ("ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏŒÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïœðòóôõöùúûüýÿñ"));
|
||||
}
|
||||
}
|
||||
正在加载…
添加表格
添加链接
在新工单中引用