You are here

public function PhpTransliterationTest::providerTestPhpTransliterationRemoveDiacritics in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.php \Drupal\Tests\Component\Transliteration\PhpTransliterationTest::providerTestPhpTransliterationRemoveDiacritics()
  2. 9 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\Transliteration

Code

public function providerTestPhpTransliterationRemoveDiacritics() {

  // cSpell:disable
  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',
    ],
  ];

  // cSpell:enable
}