Overview

Packages

  • Support

Classes

  • Horde_Support_Array
  • Horde_Support_Backtrace
  • Horde_Support_CombineStream
  • Horde_Support_ConsistentHash
  • Horde_Support_Guid
  • Horde_Support_Inflector
  • Horde_Support_Memory
  • Horde_Support_Numerizer
  • Horde_Support_Numerizer_Locale_Base
  • Horde_Support_Numerizer_Locale_De
  • Horde_Support_Numerizer_Locale_Pt
  • Horde_Support_Randomid
  • Horde_Support_Stack
  • Horde_Support_StringStream
  • Horde_Support_Stub
  • Horde_Support_Timer
  • Horde_Support_Uuid
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Support_Numerizer_Locale_Base

Direct known subclasses

Horde_Support_Numerizer_Locale_De, Horde_Support_Numerizer_Locale_Pt
Package: Support
Category: Horde
License: BSD
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Support/Numerizer/Locale/Base.php
Methods summary
public
# numerize( mixed $string )
Properties summary
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, )
API documentation generated by ApiGen