Class Horde_Support_Numerizer_Locale_Base
Package: Support
Category: Horde
License: BSD
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Support/Numerizer/Locale/Base.php
Category: Horde
License: BSD
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Support/Numerizer/Locale/Base.php
public
|
public
array
|
$DIRECT_NUMS
|
#
array(
'eleven' => '11',
'twelve' => '12',
'thirteen' => '13',
'fourteen' => '14',
'fifteen' => '15',
'sixteen' => '16',
'seventeen' => '17',
'eighteen' => '18',
'nineteen' => '19',
'ninteen' => '19', // Common mis-spelling
'zero' => '0',
'one' => '1',
'two' => '2',
'three' => '3',
'four(\W|$)' => '4$1', // The weird regex is so that it matches four but not fourty
'five' => '5',
'six(\W|$)' => '6$1',
'seven(\W|$)' => '7$1',
'eight(\W|$)' => '8$1',
'nine(\W|$)' => '9$1',
'ten' => '10',
'\ba[\b^$]' => '1', // doesn't make sense for an 'a' at the end to be a 1
)
|
public
array
|
$TEN_PREFIXES
|
#
array(
'twenty' => 20,
'thirty' => 30,
'forty' => 40,
'fourty' => 40, // Common mis-spelling
'fifty' => 50,
'sixty' => 60,
'seventy' => 70,
'eighty' => 80,
'ninety' => 90,
'ninty' => 90, // Common mis-spelling
)
|
public
array
|
$BIG_PREFIXES
|
#
array(
'hundred' => 100,
'thousand' => 1000,
'million' => 1000000,
'billion' => 1000000000,
'trillion' => 1000000000000,
)
|