- /**
- * @throws MWException
- * @return array
- */
- static function getCaseMaps() {
- static $wikiUpperChars, $wikiLowerChars;
- if ( isset( $wikiUpperChars ) ) {
- return [ $wikiUpperChars, $wikiLowerChars ];
- }
-
- $arr = wfGetPrecompiledData( 'Utf8Case.ser' );
- if ( $arr === false ) {
- throw new MWException(
- "Utf8Case.ser is missing, please run \"make\" in the serialized directory\n" );
- }
- $wikiUpperChars = $arr['wikiUpperChars'];
- $wikiLowerChars = $arr['wikiLowerChars'];
- return [ $wikiUpperChars, $wikiLowerChars ];
- }
-