Merge "Give TestCase::checkHasDiff3 a better name"
[lhc/web/wiklou.git] / maintenance / language / generateUtf8Case.php
index dbb70c1..676297e 100644 (file)
@@ -4,7 +4,7 @@
  * supplementary files.
  *
  * Copyright © 2004, 2008 Brion Vibber <brion@pobox.com>
- * http://www.mediawiki.org/
+ * https://www.mediawiki.org/
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -37,8 +37,8 @@ class GenerateUtf8Case extends Maintenance {
 
        public function __construct() {
                parent::__construct();
-               $this->mDescription = 'Generate Utf8Case.ser from the Unicode Character Database ' .
-                       'and supplementary files';
+               $this->addDescription( 'Generate Utf8Case.ser from the Unicode Character Database ' .
+                       'and supplementary files' );
                $this->addOption( 'unicode-data-file', 'The local location of the data file ' .
                        'from http://unicode.org/Public/UNIDATA/UnicodeData.txt', false, true );
        }
@@ -108,12 +108,12 @@ class GenerateUtf8Case extends Maintenance {
                                $data[$name] = $numberedData[$number];
                        }
 
-                       $source = hexSequenceToUtf8( $data['Code'] );
+                       $source = UtfNormal\Utils::hexSequenceToUtf8( $data['Code'] );
                        if ( $data['Simple_Uppercase_Mapping'] ) {
-                               $upper[$source] = hexSequenceToUtf8( $data['Simple_Uppercase_Mapping'] );
+                               $upper[$source] = UtfNormal\Utils::hexSequenceToUtf8( $data['Simple_Uppercase_Mapping'] );
                        }
                        if ( $data['Simple_Lowercase_Mapping'] ) {
-                               $lower[$source] = hexSequenceToUtf8( $data['Simple_Lowercase_Mapping'] );
+                               $lower[$source] = UtfNormal\Utils::hexSequenceToUtf8( $data['Simple_Lowercase_Mapping'] );
                        }
                }