// people like to use that as a fake no header symbol.
$category = substr( $data['gc'], 0, 1 );
if ( strpos( 'LNPS', $category ) === false
- && $data['cp'] !== '0020' ) {
+ && $data['cp'] !== '0020'
+ ) {
return;
}
$cp = hexdec( $data['cp'] );
// Calculate implicit weight per UTS #10 v6.0.0, sec 7.1.3
if ( $data['UIdeo'] === 'Y' ) {
if ( $data['block'] == 'CJK Unified Ideographs'
- || $data['block'] == 'CJK Compatibility Ideographs' )
- {
+ || $data['block'] == 'CJK Compatibility Ideographs'
+ ) {
$base = 0xFB40;
} else {
$base = 0xFB80;
}
$this->weights[$cp] = $primary;
if ( $tertiary === '.0008'
- || $tertiary === '.000E' )
- {
+ || $tertiary === '.000E'
+ ) {
$goodTertiaryChars[$cp] = true;
}
}
$char = codepointToUtf8( $cp );
$headerChars[] = $char;
if ( $primaryCollator->compare( $char, $prevChar ) <= 0 ) {
- $numOutOfOrder ++;
+ $numOutOfOrder++;
/*
printf( "Out of order: U+%05X > U+%05X\n",
utf8ToCodepoint( $prevChar ),
$xml = $this->open();
$this->callback = $callback;
- while ( $xml->name !== 'repertoire' && $xml->next() );
+ while ( $xml->name !== 'repertoire' && $xml->next() ) ;
while ( $xml->read() ) {
if ( $xml->nodeType == XMLReader::ELEMENT ) {
if ( !$this->xml ) {
throw new MWException( __METHOD__ . ": unable to open {$this->fileName}" );
}
- while ( $this->xml->name !== 'ucd' && $this->xml->read() );
+ while ( $this->xml->name !== 'ucd' && $this->xml->read() ) ;
$this->xml->read();
+
return $this->xml;
}
while ( $this->xml->moveToNextAttribute() ) {
$attrs[$this->xml->name] = $this->xml->value;
}
+
return $attrs;
}
}
$xml = $this->open();
- while ( $xml->name !== 'blocks' && $xml->read() );
+ while ( $xml->name !== 'blocks' && $xml->read() ) ;
while ( $xml->read() ) {
if ( $xml->nodeType == XMLReader::ELEMENT ) {
}
}
$xml->close();
+
return $this->blocks;
}
-
}
$maintClass = 'GenerateCollationData';