function PhpTransliterationTest::providerTestPhpTransliterationRemoveDiacritics
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.php \Drupal\Tests\Component\Transliteration\PhpTransliterationTest::providerTestPhpTransliterationRemoveDiacritics()
- 10 core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.php \Drupal\Tests\Component\Transliteration\PhpTransliterationTest::providerTestPhpTransliterationRemoveDiacritics()
- 11.x core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.php \Drupal\Tests\Component\Transliteration\PhpTransliterationTest::providerTestPhpTransliterationRemoveDiacritics()
Provides data for self::testRemoveDiacritics().
Return value
array An array of arrays, each containing the parameters for self::testRemoveDiacritics().
File
-
core/
tests/ Drupal/ Tests/ Component/ Transliteration/ PhpTransliterationTest.php, line 42
Class
- PhpTransliterationTest
- Tests Transliteration component functionality.
Namespace
Drupal\Tests\Component\TransliterationCode
public function providerTestPhpTransliterationRemoveDiacritics() {
return [
// Test all characters in the Unicode range 0x00bf to 0x017f.
[
'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ',
'AAAAAAÆCEEEEIIII',
],
[
'ÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß',
'ÐNOOOOO×OUUUUYÞß',
],
[
'àáâãäåæçèéêëìíîï',
'aaaaaaæceeeeiiii',
],
[
'ðñòóôõö÷øùúûüýþÿ',
'ðnooooo÷ouuuuyþy',
],
[
'ĀāĂ㥹ĆćĈĉĊċČčĎď',
'AaAaAaCcCcCcCcDd',
],
[
'ĐđĒēĔĕĖėĘęĚěĜĝĞğ',
'DdEeEeEeEeEeGgGg',
],
[
'ĠġĢģĤĥĦħĨĩĪīĬĭĮį',
'GgGgHhHhIiIiIiIi',
],
[
'İıIJijĴĵĶķĸĹĺĻļĽľĿ',
'IiIJijJjKkĸLlLlLlL',
],
[
'ŀŁłŃńŅņŇňʼnŊŋŌōŎŏ',
'lLlNnNnNnʼnŊŋOoOo',
],
[
'ŐőŒœŔŕŖŗŘřŚśŜŝŞş',
'OoŒœRrRrRrSsSsSs',
],
[
'ŠšŢţŤťŦŧŨũŪūŬŭŮů',
'SsTtTtTtUuUuUuUu',
],
[
'ŰűŲųŴŵŶŷŸŹźŻżŽž',
'UuUuWwYyYZzZzZz',
],
// Test all characters in the Unicode range 0x01CD to 0x024F.
[
'ǍǎǏ',
'AaI',
],
[
'ǐǑǒǓǔǕǖǗǘǙǚǛǜǝǞǟ',
'iOoUuUuUuUuUuǝAa',
],
[
'ǠǡǢǣǤǥǦǧǨǩǪǫǬǭǮǯ',
'AaÆæGgGgKkOoOoƷʒ',
],
[
'ǰDZDzdzǴǵǶǷǸǹǺǻǼǽǾǿ',
'jDZDzdzGgǶǷNnAaÆæOo',
],
[
'ȀȁȂȃȄȅȆȇȈȉȊȋȌȍȎȏ',
'AaAaEeEeIiIiOoOo',
],
[
'ȐȑȒȓȔȕȖȗȘșȚțȜȝȞȟ',
'RrRrUuUuSsTtȜȝHh',
],
[
'ȠȡȢȣȤȥȦȧȨȩȪȫȬȭȮȯ',
'ȠȡȢȣZzAaEeOoOoOo',
],
[
'ȰȱȲȳȴȵȶȷȸȹȺȻȼȽȾȿ',
'OoYylntjȸȹACcLTs',
],
[
'ɀɁɂɃɄɅɆɇɈɉɊɋɌɍɎɏ',
'zɁɂBUɅEeJjQqRrYy',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.