* @file
*/
+/**
+ * @since 1.16.3
+ */
class IcuCollation extends Collation {
const FIRST_LETTER_VERSION = 2;
'uz' => [ "Ch", "G'", "Ng", "O'", "Sh" ],
];
+ /**
+ * @since 1.16.3
+ */
const RECORD_LENGTH = 14;
public function __construct( $locale ) {
return $this->getLetterByIndex( $min );
}
+ /**
+ * @since 1.16.3
+ */
public function getFirstLetterData() {
if ( $this->firstLetterData !== null ) {
return $this->firstLetterData;
return $data;
}
+ /**
+ * @since 1.16.3
+ */
public function getLetterByIndex( $index ) {
if ( $this->firstLetterData === null ) {
$this->getFirstLetterData();
return $this->firstLetterData['chars'][$index];
}
+ /**
+ * @since 1.16.3
+ */
public function getSortKeyByLetterIndex( $index ) {
if ( $this->firstLetterData === null ) {
$this->getFirstLetterData();
return $this->firstLetterData['keys'][$index];
}
+ /**
+ * @since 1.16.3
+ */
public function getFirstLetterCount() {
if ( $this->firstLetterData === null ) {
$this->getFirstLetterData();
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;