X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fcollation%2FIcuCollation.php;h=0aa14065aa38154ae933f78011ad63b03b62d295;hb=bdc24ab7a3235a18af53d67e21b00fbfa36e72d8;hp=fee4cd08e59b01ae6664579d0625280f9ac55aa7;hpb=c83fce712218f0fa5bd8287a23969df66cc2f486;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/collation/IcuCollation.php b/includes/collation/IcuCollation.php index fee4cd08e5..0aa14065aa 100644 --- a/includes/collation/IcuCollation.php +++ b/includes/collation/IcuCollation.php @@ -18,6 +18,9 @@ * @file */ +/** + * @since 1.16.3 + */ class IcuCollation extends Collation { const FIRST_LETTER_VERSION = 2; @@ -159,6 +162,9 @@ class IcuCollation extends Collation { 'uz' => [ "Ch", "G'", "Ng", "O'", "Sh" ], ]; + /** + * @since 1.16.3 + */ const RECORD_LENGTH = 14; public function __construct( $locale ) { @@ -226,6 +232,9 @@ class IcuCollation extends Collation { return $this->getLetterByIndex( $min ); } + /** + * @since 1.16.3 + */ public function getFirstLetterData() { if ( $this->firstLetterData !== null ) { return $this->firstLetterData; @@ -377,6 +386,9 @@ class IcuCollation extends Collation { return $data; } + /** + * @since 1.16.3 + */ public function getLetterByIndex( $index ) { if ( $this->firstLetterData === null ) { $this->getFirstLetterData(); @@ -384,6 +396,9 @@ class IcuCollation extends Collation { return $this->firstLetterData['chars'][$index]; } + /** + * @since 1.16.3 + */ public function getSortKeyByLetterIndex( $index ) { if ( $this->firstLetterData === null ) { $this->getFirstLetterData(); @@ -391,6 +406,9 @@ class IcuCollation extends Collation { return $this->firstLetterData['keys'][$index]; } + /** + * @since 1.16.3 + */ public function getFirstLetterCount() { if ( $this->firstLetterData === null ) { $this->getFirstLetterData(); @@ -398,7 +416,10 @@ class IcuCollation extends Collation { return count( $this->firstLetterData['chars'] ); } - static function isCjk( $codepoint ) { + /** + * @since 1.16.3 + */ + public static function isCjk( $codepoint ) { foreach ( self::$cjkBlocks as $block ) { if ( $codepoint >= $block[0] && $codepoint <= $block[1] ) { return true;