Documentation

Pt extends Base
in package

Tags
license

http://www.horde.org/licenses/bsd BSD

category

Horde

Table of Contents

$BIG_PREFIXES  : mixed
$DIRECT_NUMS  : mixed
$TEN_PREFIXES  : mixed
$args  : mixed
Arguments from the constructor
__construct()  : mixed
Constructor
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 = ['cem' => '100', 'mil' => '1000', 'milhao *' => '1000000', 'milhar de *' => '1000000000', 'biliao *' => '1000000000000']

$DIRECT_NUMS

public mixed $DIRECT_NUMS = ['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 = ['vinte' => '20', 'trinta' => '30', 'quarenta' => '40', 'cinquenta' => '50', 'sessenta' => '60', 'setenta' => '70', 'oitenta' => '80', 'noventa' => '90']

$args

Arguments from the constructor

protected mixed $args

Methods

__construct()

Constructor

public __construct(mixed $args) : mixed

These args are provided by existing code but went nowhere Assuming there was some intention, let's store the args

Parameters
$args : mixed
Return values
mixed

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
Return values
mixed

Search results