Home
last modified time | relevance | path

Searched refs:currency (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_number_format_test.cpp49 string currency = "978"; variable
52 { "currency", currency },
79 string currency = "111"; variable
82 { "currency", currency },
109 string currency = "a1b"; variable
112 { "currency", currency },
139 string currency = "a#b"; variable
142 { "currency", currency },
169 string currency = "ab"; variable
172 { "currency", currency },
[all …]
H A Dintl_test.cpp310 string currency = "EUR"; variable
313 { "currency", currency },
326 EXPECT_EQ(numFmt->GetCurrency(), currency);
/ohos5.0/base/global/i18n/frameworks/intl/src/
H A Dnumber_format.cpp154 if (!currency.empty()) { in InitProperties()
260 currency = GetCurrencyFromConfig(configs["currency"]); in ParseConfigs()
389 if (!currency.empty()) { in GetResolvedOptions()
390 map.insert(std::make_pair("currency", currency)); in GetResolvedOptions()
490 return currency; in GetCurrency()
592 std::string NumberFormat::GetCurrencyFromConfig(const std::string& currency) in GetCurrencyFromConfig() argument
594 if (currency.size() != CURRENCY_LEN) { in GetCurrencyFromConfig()
599 for (auto c : currency) { in GetCurrencyFromConfig()
606 return currency; in GetCurrencyFromConfig()
609 return numToCurrency[currency]; in GetCurrencyFromConfig()
[all …]
/ohos5.0/docs/zh-cn/application-dev/internationalization/
H A Di18n-numbers-weights-measures.md38 …否分组显示、数字的格式化规格、紧凑型的显示格式,以及数字的显示格式和数字系统。其中,数字的显示格式包括decimal(十进制)、percent(百分数)、currency(货币)、unit(单位)。
127 货币和单位的格式化基于数字格式化,在创建货币和单元格式化对象时,将数字的显示风格分别设置为“currency(货币)”和“unit(单位)”。同样,货币和单位的构造函数也支持通过[NumberOpt…
176 let numberFormat5 = new intl.NumberFormat('zh-CN', {style: 'currency', currency: 'USD'});
180 let numberFormat6 = new intl.NumberFormat('zh-CN', {style: 'currency', currency: 'USD', currencyDis…
/ohos5.0/docs/en/application-dev/internationalization/
H A Di18n-numbers-weights-measures.md38 …and compact display. Supported number display formats include decimal, percent, currency, and unit.
127 … creating a **NumberFormat** object for currency and unit formatting, set the number formatting st…
131 Assume that the currency unit is USD and the value is **-12300**.
175 // Format the currency.
176 let numberFormat5 = new intl.NumberFormat('zh-CN', {style: 'currency', currency: 'USD'});
179 // Display the currency using its name.
180 let numberFormat6 = new intl.NumberFormat('zh-CN', {style: 'currency', currency: 'USD', currencyDis…
/ohos5.0/base/global/i18n/frameworks/intl/include/
H A Dnumber_format.h65 std::string currency; variable
113 std::string GetCurrencyFromConfig(const std::string& currency);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-localization-kit/
H A Djs-apis-intl.md514 | currency | string | 否 | 货币单位, 取值符合[ISO-4217标准](https://www.iso.org/iso-4…
524 | style | string | 否 | 数字的显示格式,取值包括:"decimal", "currency", "percen…
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202210/
H A Djs-apidiff-global.md63 |新增|NA|方法名 or 属性名:currency<br>函数:currency?: string|@ohos.intl.d.ts|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v2.2-beta2/
H A Djs-apidiff-v2.2-beta2.md52 | 时间日期数字模块-NumberOptions | currency | 新增 | - |
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/
H A Djs-apidiff-global.md176 |type有变化|类名:NumberOptions;<br>方法or属性:currency?: string<br>旧版本信息:|类名:NumberOptions;<br>方法or属性:curren…
238 |函数有变化|类名:NumberOptions;<br>方法or属性:currency: string|类名:NumberOptions;<br>方法or属性:currency?: string|@…
/ohos5.0/docs/en/release-notes/api-diff/monthly-202210/
H A Djs-apidiff-global.md63 |Added|NA|Method or attribute name: currency<br>Function name: currency?: string|@ohos.intl.d.ts|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/
H A Djs-apidiff-global.md130 |type有变化|类名:NumberOptions;<br>方法or属性:currency?: string;<br>旧版本信息:string|类名:NumberOptions;<br>方法or属性…
263 |跨平台能力有变化|类名:NumberOptions;<br>方法or属性:currency?: string;<br>旧版本信息:|类名:NumberOptions;<br>方法or属性:curr…
/ohos5.0/docs/en/application-dev/reference/apis-localization-kit/
H A Djs-apis-intl.md514 | currency | string | No | Currency unit. The value must comply with the [ISO-42…
524 …string | No | Number display format. The value can be **decimal**, **currency**, **percent**, o…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/
H A Djs-apidiff-global.md176 …>Method or attribute name: currency?: string<br>Old version: |Class name: NumberOptions;<br>Method…
238 …tions;<br>Method or attribute name: currency: string|Class name: NumberOptions;<br>Method or attri…
/ohos5.0/docs/en/release-notes/api-diff/v2.2-beta2/
H A Djs-apidiff-v2.2-beta2.md52 | Time, date, and digit module - NumberOptions | currency | Added | - |
/ohos5.0/docs/en/readme/
H A Dxts.md75 …rious input/output habits, time formats, and regional features, such as currency, time, and cultur…
/ohos5.0/docs/en/device-dev/device-test/
H A Dxts.md78 …rious input/output habits, time formats, and regional features, such as currency, time, and cultur…
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v3.2-Release/
H A Djs-apidiff-global.md130 … attribute name: currency?: string;<br>Old version information: string|Class name: NumberOptions;<…
263 … or attribute name: currency?: string;<br>Old version information: |Class name: NumberOptions;<br>…