Horde_Support_Numerizer_Locale_Pt
extends Horde_Support_Numerizer_Locale_Base
in package
Tags
Table of Contents
- $BIG_PREFIXES : mixed
- $DIRECT_NUMS : mixed
- $TEN_PREFIXES : mixed
- numerize() : mixed
- _andition() : mixed
- _directReplacements() : mixed
- easy/direct replacements
- _fractionalAddition() : mixed
- _hideAHalf() : mixed
- take the 'a' out so it doesn't turn into a 1, save the half for the end
- _replaceBigPrefixes() : mixed
- hundreds, thousands, millions, etc.
- _replaceTenPrefixes() : mixed
- ten, twenty, etc.
- _splitHyphenatedWords() : mixed
- will mutilate hyphenated-words but shouldn't matter for date extraction
- _splitHyphenateWords() : mixed
- will mutilate hyphenated-words but shouldn't matter for date extraction
Properties
$BIG_PREFIXES
public
mixed
$BIG_PREFIXES
= array('cem' => '100', 'mil' => '1000', 'milhao *' => '1000000', 'milhar de *' => '1000000000', 'biliao *' => '1000000000000')
$DIRECT_NUMS
public
mixed
$DIRECT_NUMS
= array('treze' => '13', 'catorze' => '14', 'quatorze' => '14', 'quinze' => '15', 'dezasseis' => '16', 'dezassete' => '17', 'dezoito' => '18', 'dezanove' => '19', 'um(\W|$)' => '1$1', 'uma(\W|$)' => '1$1', 'dois' => '2', 'duas' => '2', 'tres' => '3', 'quatro' => '4', 'cinco' => '5', 'seis' => '6', 'sete' => '7', 'oito' => '8', 'nove' => '9', 'dez' => '10', 'onze' => '11', 'doze' => '12')
$TEN_PREFIXES
public
mixed
$TEN_PREFIXES
= array('vinte' => '20', 'trinta' => '30', 'quarenta' => '40', 'cinquenta' => '50', 'sessenta' => '60', 'setenta' => '70', 'oitenta' => '80', 'noventa' => '90')
Methods
numerize()
public
numerize(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —_andition()
protected
_andition(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —_directReplacements()
easy/direct replacements
protected
_directReplacements(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —_fractionalAddition()
protected
_fractionalAddition(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —_hideAHalf()
take the 'a' out so it doesn't turn into a 1, save the half for the end
protected
_hideAHalf(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —_replaceBigPrefixes()
hundreds, thousands, millions, etc.
protected
_replaceBigPrefixes(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —_replaceTenPrefixes()
ten, twenty, etc.
protected
_replaceTenPrefixes(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —_splitHyphenatedWords()
will mutilate hyphenated-words but shouldn't matter for date extraction
protected
_splitHyphenatedWords(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —_splitHyphenateWords()
will mutilate hyphenated-words but shouldn't matter for date extraction
protected
_splitHyphenateWords(mixed $string) : mixed
Parameters
- $string : mixed