1 | <?php |
||
13 | class BasicNumberUnlocalizer implements NumberUnlocalizer { |
||
14 | |||
15 | /** |
||
16 | * @see NumberUnlocalizer::unlocalizeNumber |
||
17 | * |
||
18 | * @param string $number string to process |
||
19 | * |
||
20 | * @return string unlocalized number, in a form suitable for floatval resp. intval. |
||
21 | */ |
||
22 | 19 | public function unlocalizeNumber( $number ) { |
|
25 | |||
26 | /** |
||
27 | * @see NumberUnlocalizer::getNumberRegex |
||
28 | * |
||
29 | * This implementation returns an expression that will match a number |
||
30 | * in english notation, including scientific notation. |
||
31 | * |
||
32 | * @param string $delimiter The regex delimiter, used for escaping. |
||
33 | * |
||
34 | * @return string regular expression |
||
35 | */ |
||
36 | 33 | public function getNumberRegex( $delimiter = '/' ) { |
|
39 | |||
40 | /** |
||
41 | * @see NumberUnlocalizer::getUnitRegex |
||
42 | * |
||
43 | * @param string $delimiter Unused. |
||
44 | * |
||
45 | * @return string An empty string. |
||
46 | */ |
||
47 | 10 | public function getUnitRegex( $delimiter = '/' ) { |
|
51 | |||
52 | } |
||
53 |