We're updating the issue view to help you get more done. 

NumberFormatter : add getters for various settings

Description

In Ecma 402 (Ecmascript Intl API), NumberFormatter has to fill up various fields in resolvedOptions. A new NumberFormatter is nice and v8 may switch to that, but it needs getters for various settings before making a switch.

BTW, there's no way to retrieve the numberingSystem even in the old API. v8 uses the following hack, but if the new API adds getters for numberingSystem as well as other settings/options, it'd be nice.

1 2 3 4 5 6 7 8 // Ugly hack. ICU doesn't expose numbering system in any way, so we have // to assume that for given locale NumberingSystem constructor produces the // same digits as NumberFormat/Calendar would. status = U_ZERO_ERROR; icu::NumberingSystem* numbering_system = icu::NumberingSystem::createInstance(icu_locale, status); if (U_SUCCESS(status)) { const char* ns = numbering_system->getName(

Status

Assignee

Shane Carr

Reporter

Jungshik Shin

Labels

Components

Priority

assess