[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 351 lines (8 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
Plural_Forms:: (4 methods):
__construct()
parse()
get()
execute()
Class: Plural_Forms - X-Ref
A gettext Plural-Forms parser.__construct( $str ) X-Ref |
Constructor. param: string $str Plural function (just the bit after `plural=` from Plural-Forms) |
parse( $str ) X-Ref |
Parse a Plural-Forms string into tokens. Uses the shunting-yard algorithm to convert the string to Reverse Polish Notation tokens. param: string $str String to parse. |
get( $num ) X-Ref |
Get the plural form for a number. Caches the value for repeated calls. return: int Plural form value. param: int $num Number to get plural form for. |
execute( $n ) X-Ref |
Execute the plural form function. return: int Plural form value. param: int $n Variable "n" to substitute. |
Generated : Sat Dec 21 08:20:01 2024 | Cross-referenced by PHPXref |