[php-src] PR #18007: ext/intl: Add `NumberFormatter::CURRENCY_ISO`, `PLURAL`, `STANDARD` and `CASH_CURRENCY`

From: Date: Sun, 09 Mar 2025 15:15:55 +0000
Subject: [php-src] PR #18007: ext/intl: Add `NumberFormatter::CURRENCY_ISO`, `PLURAL`, `STANDARD` and `CASH_CURRENCY`
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-31010@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/18007 Author: Ayesh ICU 54 and 56 adds the following formatters[^1] for currency formatting: - CURRENCY_ISO[^2]: ISO currency code, e.g., "USD1.00" - CURRENCY_PLURAL[^3]: pluralized currency name, e.g., "1.00 US dollar" and "3.00 US dollars" - CASH_CURRENCY[^4]: currency symbol given CASH usage, e.g., "NT$3" instead of "NT$3.23" - CURRENCY_STANDARD[^5]: currency symbol, e.g., "$1.00", using non-accounting style for negative values (e.g. minus sign) Ref: https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/unum_8h.html This adds support for all four of them to ext/intl, along with tests. [^1]: https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/unum_8h.html [^2]: https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/unum_8h.html#a4eb4d3ff13bd506e7078b2be4052266daae232c48e579c727525855cd21571033 [^3]: https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/unum_8h.html#a4eb4d3ff13bd506e7078b2be4052266da3916bb92d0784396ea2331d4f04c03f5 [^4]: https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/unum_8h.html#a4eb4d3ff13bd506e7078b2be4052266da8da9eba1a27d5734599709c137c3b82f [^5]: https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/unum_8h.html#a4eb4d3ff13bd506e7078b2be4052266dac57cfff1b245d11774e8b109b98eedc2

« previous php.git-pulls (#31010) next »