diff options
author | Mario <mario@mariovavti.com> | 2020-11-27 08:04:00 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-27 08:04:00 +0000 |
commit | f4bb7bcbff3770387c2fecfa91ce4a60b916a474 (patch) | |
tree | ea007e664d435f1f3d63c87bfe1600484d2bd46c /vendor/commerceguys/intl/src/NumberFormat | |
parent | 07e5b8295ea9d342f66d8119d88bd58124b548e6 (diff) | |
download | volse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.tar.gz volse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.tar.bz2 volse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.zip |
update composer libs
Diffstat (limited to 'vendor/commerceguys/intl/src/NumberFormat')
-rw-r--r-- | vendor/commerceguys/intl/src/NumberFormat/NumberFormat.php | 46 | ||||
-rw-r--r-- | vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepository.php | 2 |
2 files changed, 47 insertions, 1 deletions
diff --git a/vendor/commerceguys/intl/src/NumberFormat/NumberFormat.php b/vendor/commerceguys/intl/src/NumberFormat/NumberFormat.php index 156470eee..8c41a5aa8 100644 --- a/vendor/commerceguys/intl/src/NumberFormat/NumberFormat.php +++ b/vendor/commerceguys/intl/src/NumberFormat/NumberFormat.php @@ -68,6 +68,13 @@ final class NumberFormat protected $decimalSeparator = '.'; /** + * The decimal separator for currency amounts. + * + * @var string + */ + protected $decimalCurrencySeparator = '.'; + + /** * The grouping separator. * * @var string @@ -75,6 +82,13 @@ final class NumberFormat protected $groupingSeparator = ','; /** + * The grouping separator for currency amounts. + * + * @var string + */ + protected $groupingCurrencySeparator = ','; + + /** * The plus sign. * * @var string @@ -130,9 +144,19 @@ final class NumberFormat if (isset($definition['decimal_separator'])) { $this->decimalSeparator = $definition['decimal_separator']; } + if (isset($definition['decimal_currency_separator'])) { + $this->decimalCurrencySeparator = $definition['decimal_currency_separator']; + } else { + $this->decimalCurrencySeparator = $this->decimalSeparator; + } if (isset($definition['grouping_separator'])) { $this->groupingSeparator = $definition['grouping_separator']; } + if (isset($definition['grouping_currency_separator'])) { + $this->groupingCurrencySeparator = $definition['grouping_currency_separator']; + } else { + $this->groupingCurrencySeparator = $this->groupingSeparator; + } if (isset($definition['plus_sign'])) { $this->plusSign = $definition['plus_sign']; } @@ -227,7 +251,17 @@ final class NumberFormat } /** - * Gets the grouping separator. + * Gets the decimal separator for currency amounts. + * + * @return string + */ + public function getDecimalCurrencySeparator() + { + return $this->decimalCurrencySeparator; + } + + /** + * Gets the grouping separator for currency amounts. * * @return string */ @@ -237,6 +271,16 @@ final class NumberFormat } /** + * Gets the currency grouping separator. + * + * @return string + */ + public function getGroupingCurrencySeparator() + { + return $this->groupingCurrencySeparator; + } + + /** * Gets the plus sign. * * @return string diff --git a/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepository.php b/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepository.php index 948fa533c..987ceda89 100644 --- a/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepository.php +++ b/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepository.php @@ -227,6 +227,7 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface 'accounting_currency_pattern' => '#,##0.00 ¤', 'decimal_separator' => ',', 'grouping_separator' => ' ', + 'grouping_currency_separator' => '.', ], 'de-CH' => [ 'currency_pattern' => '¤ #,##0.00;¤-#,##0.00', @@ -476,6 +477,7 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface 'currency_pattern' => '#,##0.00 ¤', 'accounting_currency_pattern' => '#,##0.00 ¤;(#,##0.00 ¤)', 'decimal_separator' => ',', + 'decimal_currency_separator' => '.', 'grouping_separator' => ' ', ], 'fr-LU' => [ |