MediaWiki
1.28.0
|
Collation that orders text with numbers "naturally", so that 'Foo 1' < 'Foo 2' < 'Foo 12'. More...
Public Member Functions | |
getFirstLetter ($string) | |
getSortKey ($string) | |
Public Member Functions inherited from UppercaseCollation | |
__construct () | |
getFirstLetter ($string) | |
getSortKey ($string) | |
Public Member Functions inherited from Collation | |
getFirstLetter ($string) | |
Given a string, return the logical "first letter" to be used for grouping on category pages and so on. More... | |
getSortKey ($string) | |
Given a string, convert it to a (hopefully short) key that can be used for efficient sorting. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Collation | |
static | factory ($collationName) |
static | singleton () |
Collation that orders text with numbers "naturally", so that 'Foo 1' < 'Foo 2' < 'Foo 12'.
Note that this only works in terms of sequences of digits, and the behavior for decimal fractions or pretty-formatted numbers may be unexpected.
Definition at line 29 of file NumericUppercaseCollation.php.
NumericUppercaseCollation::getFirstLetter | ( | $string | ) |
Definition at line 51 of file NumericUppercaseCollation.php.
References wfMessage().
NumericUppercaseCollation::getSortKey | ( | $string | ) |
Definition at line 30 of file NumericUppercaseCollation.php.
References $matches.