Home
last modified time | relevance | path

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

/third_party/node/deps/icu-small/source/i18n/
Dcurrfmt.cpp52 CurrencyAmount* currAmt = getCurrencyFormatInternal().parseCurrency(source, pos); in parseObject() local
53 if (currAmt != nullptr) { in parseObject()
54 result.adoptObject(currAmt); in parseObject()
Dunum.cpp494 LocalPointer<CurrencyAmount> currAmt(((const NumberFormat*)fmt)->parseCurrency(src, pp)); in unum_parseDoubleCurrency() local
505 u_strcpy(currency, currAmt->getISOCurrency()); in unum_parseDoubleCurrency()
506 doubleVal = currAmt->getNumber().getDouble(*status); in unum_parseDoubleCurrency()
Dnumfmt.cpp740 LocalPointer<CurrencyAmount> currAmt(new CurrencyAmount(parseResult, curr, ec), ec); in parseCurrency() local
744 return currAmt.orphan(); in parseCurrency()
/third_party/skia/third_party/externals/icu/source/i18n/
Dcurrfmt.cpp52 CurrencyAmount* currAmt = getCurrencyFormatInternal().parseCurrency(source, pos); in parseObject() local
53 if (currAmt != NULL) { in parseObject()
54 result.adoptObject(currAmt); in parseObject()
Dunum.cpp481 LocalPointer<CurrencyAmount> currAmt(((const NumberFormat*)fmt)->parseCurrency(src, pp)); in unum_parseDoubleCurrency() local
492 u_strcpy(currency, currAmt->getISOCurrency()); in unum_parseDoubleCurrency()
493 doubleVal = currAmt->getNumber().getDouble(*status); in unum_parseDoubleCurrency()
Dnumfmt.cpp740 LocalPointer<CurrencyAmount> currAmt(new CurrencyAmount(parseResult, curr, ec), ec); in parseCurrency() local
744 return currAmt.orphan(); in parseCurrency()
/third_party/icu/icu4c/source/i18n/
Dcurrfmt.cpp52 CurrencyAmount* currAmt = getCurrencyFormatInternal().parseCurrency(source, pos); in parseObject() local
53 if (currAmt != NULL) { in parseObject()
54 result.adoptObject(currAmt); in parseObject()
Dunum.cpp478 LocalPointer<CurrencyAmount> currAmt(((const NumberFormat*)fmt)->parseCurrency(src, pp)); in unum_parseDoubleCurrency() local
489 u_strcpy(currency, currAmt->getISOCurrency()); in unum_parseDoubleCurrency()
490 doubleVal = currAmt->getNumber().getDouble(*status); in unum_parseDoubleCurrency()
Dnumfmt.cpp740 LocalPointer<CurrencyAmount> currAmt(new CurrencyAmount(parseResult, curr, ec), ec); in parseCurrency() local
744 return currAmt.orphan(); in parseCurrency()
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
DNumberFormatJDK.java85 public StringBuffer format(CurrencyAmount currAmt, StringBuffer toAppendTo, FieldPosition pos) { in format() argument
87 String currCode = currAmt.getCurrency().getCurrencyCode(); in format()
92 fJdkNfmt.format(currAmt.getNumber(), toAppendTo, pos); in format()
/third_party/icu/icu4c/source/test/intltest/
Dnumfmtdatadriventest.cpp415 LocalPointer<CurrencyAmount> currAmt( in isParseCurrencyPass() local
422 UnicodeString currStr(currAmt->getISOCurrency()); in isParseCurrencyPass()
423 U_ASSERT(currAmt->getNumber().getDecimalQuantity() != nullptr); // no doubles in currency tests in isParseCurrencyPass()
424 UnicodeString resultStr = currAmt->getNumber().getDecimalQuantity()->toScientificString(); in isParseCurrencyPass()
Dnumfmtst.cpp301 LocalPointer<CurrencyAmount> currAmt(test->parseCurrency("",ppos)); in TestAPI() local
2611 UnicodeString pat, tok, mloc, str, out, where, currAmt; in TestCases() local
2721 if (!tokens.next(currAmt, ec)) goto error; in TestCases()
2723 parseCurrencyAmount(currAmt, *ref, (UChar)0x2F/*'/'*/, n, ec); in TestCases()
2725 assertEquals(where + "getCurrencyFormat(" + mloc + ").format(" + currAmt + ")", in TestCases()
2729 if (!tokens.next(currAmt, ec)) goto error; in TestCases()
2730 parseCurrencyAmount(currAmt, *ref, (UChar)0x2F/*'/'*/, n, ec); in TestCases()
6607 LocalPointer<CurrencyAmount> currAmt(numFmt->parseCurrency(formatted, parsePos)); in TestParseCurrencyInUCurr() local
6609 double doubleVal = currAmt->getNumber().getDouble(status); in TestParseCurrencyInUCurr()
6624 LocalPointer<CurrencyAmount> currAmt(numFmt->parseCurrency(formatted, parsePos)); in TestParseCurrencyInUCurr() local
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DNumberFormat.java338 public final String format(CurrencyAmount currAmt) { in format() argument
339 return format(currAmt, new StringBuffer(), in format()
383 public StringBuffer format(CurrencyAmount currAmt, in format() argument
388 Currency save = getCurrency(), curr = currAmt.getCurrency(); in format()
391 format(currAmt.getNumber(), toAppendTo, pos); in format()
DDecimalFormat.java783 …public StringBuffer format(CurrencyAmount currAmt, StringBuffer result, FieldPosition fieldPositio… in format() argument
788 localSymbols.setCurrency(currAmt.getCurrency()); in format()
790 DecimalQuantity dq = new DecimalQuantity_DualStorageBCD(currAmt.getNumber()); in format()
793 .unit(currAmt.getCurrency()) in format()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNumberFormat.java358 public final String format(CurrencyAmount currAmt) { in format() argument
359 return format(currAmt, new StringBuffer(), in format()
409 public StringBuffer format(CurrencyAmount currAmt, in format() argument
414 Currency save = getCurrency(), curr = currAmt.getCurrency(); in format()
417 format(currAmt.getNumber(), toAppendTo, pos); in format()
DDecimalFormat.java804 …public StringBuffer format(CurrencyAmount currAmt, StringBuffer result, FieldPosition fieldPositio… in format() argument
809 localSymbols.setCurrency(currAmt.getCurrency()); in format()
811 DecimalQuantity dq = new DecimalQuantity_DualStorageBCD(currAmt.getNumber()); in format()
814 .unit(currAmt.getCurrency()) in format()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatTest.java960 CurrencyAmount currAmt = fmt.parseCurrency(currStr, parsePos); in TestParseCurrency() local
961 …if ( parsePos.getIndex() != curExpectPos || (currAmt != null && (currAmt.getNumber().intValue() !=… in TestParseCurrency()
962currAmt.getCurrency().getCurrencyCode().compareTo(item.getCurExpectCurr()) != 0)) ) { in TestParseCurrency()
963 if (currAmt != null) { in TestParseCurrency()
966 …", get " + parsePos.getIndex() + "/" + currAmt.getNumber().intValue() + "/" + currAmt.getCurrency(… in TestParseCurrency()
2278 String currAmt = tokens.next(); in TestCases() local
2280 CurrencyAmount target = parseCurrencyAmount(currAmt, ref, '/'); in TestCases()
2282 … assertEquals(where + "getCurrencyFormat(" + mloc + ").format(" + currAmt + ")", in TestCases()
6987 CurrencyAmount currAmt = df.parseCurrency(textToParse, ppos);
6988 if (currAmt != null) {
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DNumberFormatTest.java963 CurrencyAmount currAmt = fmt.parseCurrency(currStr, parsePos); in TestParseCurrency() local
964 …if ( parsePos.getIndex() != curExpectPos || (currAmt != null && (currAmt.getNumber().intValue() !=… in TestParseCurrency()
965currAmt.getCurrency().getCurrencyCode().compareTo(item.getCurExpectCurr()) != 0)) ) { in TestParseCurrency()
966 if (currAmt != null) { in TestParseCurrency()
969 …", get " + parsePos.getIndex() + "/" + currAmt.getNumber().intValue() + "/" + currAmt.getCurrency(… in TestParseCurrency()
2281 String currAmt = tokens.next(); in TestCases() local
2283 CurrencyAmount target = parseCurrencyAmount(currAmt, ref, '/'); in TestCases()
2285 … assertEquals(where + "getCurrencyFormat(" + mloc + ").format(" + currAmt + ")", in TestCases()