Skip to content

Commit

Permalink
Update unicode data
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Sep 9, 2024
1 parent c5ce28b commit c906ffb
Show file tree
Hide file tree
Showing 21 changed files with 6,913 additions and 6,057 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:

env:
COMPOSER_ROOT_VERSION: 1.x-dev
SYMFONY_PHPUNIT_VERSION: 8.5

strategy:
matrix:
Expand Down Expand Up @@ -41,10 +40,12 @@ jobs:
tools: "composer:v2"

- name: Install dependencies
run: composer --prefer-source --no-progress --ansi install
run: |
composer --prefer-source --no-progress --ansi install
./phpunit install
- name: Run tests
run: |
ok=0
./vendor/bin/simple-phpunit || ok=1
./phpunit || ok=1
[[ "${{ matrix.mode }}" = experimental ]] || (exit $ok)
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
.phpunit.result.cache
composer.lock
phpunit.xml
.phpunit
vendor/
/tests/unicode
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ cache:
init:
- SET PATH=c:\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET COMPOSER_ROOT_VERSION=1.x-dev
- SET PHP=1
- SET SYMFONY_PHPUNIT_VERSION=8.5

install:
- cinst wget
Expand Down Expand Up @@ -41,8 +41,8 @@ install:
- appveyor DownloadFile https://github.com/composer/composer/releases/download/2.7.9/composer.phar
- cd c:\projects\polyfill
- mkdir %APPDATA%\Composer && copy /Y .github\composer-config.json %APPDATA%\Composer\config.json
- SET COMPOSER_ROOT_VERSION=1.x-dev
- composer update --prefer-source --no-progress --ansi
- php -d allow_url_fopen=0 ./phpunit install

test_script:
- php -d allow_url_fopen=0 ./vendor/symfony/phpunit-bridge/bin/simple-phpunit
- php -d allow_url_fopen=0 ./phpunit
13 changes: 13 additions & 0 deletions phpunit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env php
<?php

if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\nPlease run `composer update` before running this command.\n";
exit(1);
}
if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
putenv('SYMFONY_PHPUNIT_VERSION=8.5');
}

putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
require __DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';
76 changes: 36 additions & 40 deletions src/Intl/Idn/Resources/unidata/DisallowedRanges.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ public static function inRange($codePoint)
return true;
}

if ($codePoint >= 2155 && $codePoint <= 2207) {
return true;
}

if ($codePoint >= 3676 && $codePoint <= 3712) {
return true;
}
Expand All @@ -47,15 +43,11 @@ public static function inRange($codePoint)
return true;
}

if ($codePoint >= 6849 && $codePoint <= 6911) {
return true;
}

if ($codePoint >= 11859 && $codePoint <= 11903) {
if ($codePoint >= 6863 && $codePoint <= 6911) {
return true;
}

if ($codePoint >= 42955 && $codePoint <= 42996) {
if ($codePoint >= 11870 && $codePoint <= 11903) {
return true;
}

Expand Down Expand Up @@ -91,11 +83,11 @@ public static function inRange($codePoint)
return true;
}

if ($codePoint >= 66928 && $codePoint <= 67071) {
if ($codePoint >= 67005 && $codePoint <= 67071) {
return true;
}

if ($codePoint >= 67432 && $codePoint <= 67583) {
if ($codePoint >= 67515 && $codePoint <= 67583) {
return true;
}

Expand Down Expand Up @@ -123,15 +115,15 @@ public static function inRange($codePoint)
return true;
}

if ($codePoint >= 69298 && $codePoint <= 69375) {
if ($codePoint >= 69298 && $codePoint <= 69372) {
return true;
}

if ($codePoint >= 69466 && $codePoint <= 69551) {
if ($codePoint >= 69514 && $codePoint <= 69551) {
return true;
}

if ($codePoint >= 70207 && $codePoint <= 70271) {
if ($codePoint >= 70210 && $codePoint <= 70271) {
return true;
}

Expand All @@ -151,7 +143,7 @@ public static function inRange($codePoint)
return true;
}

if ($codePoint >= 71488 && $codePoint <= 71679) {
if ($codePoint >= 71495 && $codePoint <= 71679) {
return true;
}

Expand All @@ -163,7 +155,7 @@ public static function inRange($codePoint)
return true;
}

if ($codePoint >= 72441 && $codePoint <= 72703) {
if ($codePoint >= 72458 && $codePoint <= 72703) {
return true;
}

Expand All @@ -175,30 +167,26 @@ public static function inRange($codePoint)
return true;
}

if ($codePoint >= 73465 && $codePoint <= 73647) {
if ($codePoint >= 73562 && $codePoint <= 73647) {
return true;
}

if ($codePoint >= 74650 && $codePoint <= 74751) {
return true;
}

if ($codePoint >= 75076 && $codePoint <= 77823) {
if ($codePoint >= 75076 && $codePoint <= 77711) {
return true;
}

if ($codePoint >= 78905 && $codePoint <= 82943) {
if ($codePoint >= 78934 && $codePoint <= 82943) {
return true;
}

if ($codePoint >= 83527 && $codePoint <= 92159) {
return true;
}

if ($codePoint >= 92784 && $codePoint <= 92879) {
return true;
}

if ($codePoint >= 93072 && $codePoint <= 93759) {
return true;
}
Expand All @@ -215,43 +203,55 @@ public static function inRange($codePoint)
return true;
}

if ($codePoint >= 101641 && $codePoint <= 110591) {
if ($codePoint >= 101641 && $codePoint <= 110575) {
return true;
}

if ($codePoint >= 110879 && $codePoint <= 110927) {
if ($codePoint >= 111356 && $codePoint <= 113663) {
return true;
}

if ($codePoint >= 111356 && $codePoint <= 113663) {
if ($codePoint >= 113828 && $codePoint <= 118527) {
return true;
}

if ($codePoint >= 113828 && $codePoint <= 118783) {
if ($codePoint >= 118724 && $codePoint <= 118783) {
return true;
}

if ($codePoint >= 119366 && $codePoint <= 119519) {
if ($codePoint >= 119366 && $codePoint <= 119487) {
return true;
}

if ($codePoint >= 119673 && $codePoint <= 119807) {
return true;
}

if ($codePoint >= 121520 && $codePoint <= 122879) {
if ($codePoint >= 121520 && $codePoint <= 122623) {
return true;
}

if ($codePoint >= 122923 && $codePoint <= 123135) {
if ($codePoint >= 122667 && $codePoint <= 122879) {
return true;
}

if ($codePoint >= 123216 && $codePoint <= 123583) {
if ($codePoint >= 122990 && $codePoint <= 123022) {
return true;
}

if ($codePoint >= 123648 && $codePoint <= 124927) {
if ($codePoint >= 123024 && $codePoint <= 123135) {
return true;
}

if ($codePoint >= 123216 && $codePoint <= 123535) {
return true;
}

if ($codePoint >= 123648 && $codePoint <= 124111) {
return true;
}

if ($codePoint >= 124154 && $codePoint <= 124895) {
return true;
}

Expand Down Expand Up @@ -291,10 +291,6 @@ public static function inRange($codePoint)
return true;
}

if ($codePoint >= 129751 && $codePoint <= 129791) {
return true;
}

if ($codePoint >= 129995 && $codePoint <= 130031) {
return true;
}
Expand All @@ -303,19 +299,19 @@ public static function inRange($codePoint)
return true;
}

if ($codePoint >= 173790 && $codePoint <= 173823) {
if ($codePoint >= 173792 && $codePoint <= 173823) {
return true;
}

if ($codePoint >= 191457 && $codePoint <= 194559) {
if ($codePoint >= 192094 && $codePoint <= 194559) {
return true;
}

if ($codePoint >= 195102 && $codePoint <= 196605) {
return true;
}

if ($codePoint >= 201547 && $codePoint <= 262141) {
if ($codePoint >= 205744 && $codePoint <= 262141) {
return true;
}

Expand Down
Loading

0 comments on commit c906ffb

Please sign in to comment.