- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Parsers\MediaWikiNumberUnlocalizer::__construct |
( |
Language |
$language | ) |
|
◆ getNumberRegex()
Wikibase\Repo\Parsers\MediaWikiNumberUnlocalizer::getNumberRegex |
( |
|
$delimiter = '/' | ) |
|
- See also
- NumberUnlocalizer::getNumberRegex
Constructs a regular expression based on Language::digitTransformTable() and Language::separatorTransformTable().
Note that the resulting regex will accept scientific notation.
- Parameters
-
string | $delimiter | The regex delimiter, used for escaping. |
- Returns
- string regular expression
◆ unlocalizeNumber()
Wikibase\Repo\Parsers\MediaWikiNumberUnlocalizer::unlocalizeNumber |
( |
|
$number | ) |
|
- See also
- NumberUnlocalizer::unlocalizeNumber
- Parameters
-
string | $number | string to process |
- Returns
- string unlocalized number, in a form suitable for floatval resp. intval.
◆ $language
Wikibase\Repo\Parsers\MediaWikiNumberUnlocalizer::$language |
|
private |
◆ $unlocalizerMap
Wikibase\Repo\Parsers\MediaWikiNumberUnlocalizer::$unlocalizerMap |
|
staticprotected |
Initial value:= [
"\xe2\x88\x92" => '-',
"\xe2\x93\x96" => '-',
"\xe2\x93\x95" => '+',
]
The documentation for this class was generated from the following file: