[php-src] PR #17975: ext/intl: Add DECIMAL_COMPACT_SHORT and DECIMAL_COMPACT_LONG for NumberFormatter
| From: | BogdanUngureanu | Date: | Wed, 05 Mar 2025 11:22:09 +0000 |
| Subject: | [php-src] PR #17975: ext/intl: Add DECIMAL_COMPACT_SHORT and DECIMAL_COMPACT_LONG for NumberFormatter | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30972@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17975
Author: BogdanUngureanu
This PR introduces two new constants, DECIMAL_COMPACT_SHORT and DECIMAL_COMPACT_LONG, in the
NumberFormatter class. These constants are mapped to ICU’s UNUM_DECIMAL_COMPACT_SHORT and
UNUM_DECIMAL_COMPACT_LONG.
Although ICU has supported these since version 57, they were not previously exposed in PHP's
NumberFormatter class. This update addresses that by adding them.