Home
last modified time | relevance | path

Searched refs:FormattedNumber (Results 1 – 25 of 68) sorted by relevance

123

/third_party/node/deps/icu-small/source/i18n/unicode/
Dformattednumber.h47 class U_I18N_API FormattedNumber : public UMemory, public FormattedValue {
54 FormattedNumber() in FormattedNumber() function
61 FormattedNumber(FormattedNumber&& src) noexcept;
67 virtual ~FormattedNumber() override;
70 FormattedNumber(const FormattedNumber&) = delete;
73 FormattedNumber& operator=(const FormattedNumber&) = delete;
79 FormattedNumber& operator=(FormattedNumber&& src) noexcept;
179 explicit FormattedNumber(impl::UFormattedNumberData *results) in FormattedNumber() function
182 explicit FormattedNumber(UErrorCode errorCode) in FormattedNumber() function
196 StringClass FormattedNumber::toDecimalNumber(UErrorCode& status) const { in toDecimalNumber()
Dplurrule.h58 class FormattedNumber; variable
372 UnicodeString select(const number::FormattedNumber& number, UErrorCode& status) const;
Dsimplenumberformatter.h228 FormattedNumber format(SimpleNumber value, UErrorCode &status) const;
237 FormattedNumber formatInt64(int64_t value, UErrorCode &status) const { in formatInt64()
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumber_output.cpp20 UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL(FormattedNumber) in UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL() argument
24 void FormattedNumber::toDecimalNumber(ByteSink& sink, UErrorCode& status) const { in UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL()
31 void FormattedNumber::getAllFieldPositionsImpl(FieldPositionIteratorHandler& fpih, in getAllFieldPositionsImpl()
37 MeasureUnit FormattedNumber::getOutputUnit(UErrorCode& status) const { in getOutputUnit()
42 const char *FormattedNumber::getGender(UErrorCode &status) const { in getGender()
47 void FormattedNumber::getDecimalQuantity(impl::DecimalQuantity& output, UErrorCode& status) const { in getDecimalQuantity()
Dnumber_fluent.cpp538 FormattedNumber LocalizedNumberFormatter::formatInt(int64_t value, UErrorCode& status) const { in formatInt()
539 if (U_FAILURE(status)) { return FormattedNumber(U_ILLEGAL_ARGUMENT_ERROR); } in formatInt()
543 return FormattedNumber(status); in formatInt()
550 return FormattedNumber(results); in formatInt()
553 return FormattedNumber(status); in formatInt()
557 FormattedNumber LocalizedNumberFormatter::formatDouble(double value, UErrorCode& status) const { in formatDouble()
558 if (U_FAILURE(status)) { return FormattedNumber(U_ILLEGAL_ARGUMENT_ERROR); } in formatDouble()
562 return FormattedNumber(status); in formatDouble()
569 return FormattedNumber(results); in formatDouble()
572 return FormattedNumber(status); in formatDouble()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dnumber_output.cpp20 UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL(FormattedNumber) in UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL() argument
24 void FormattedNumber::toDecimalNumber(ByteSink& sink, UErrorCode& status) const { in UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL()
31 void FormattedNumber::getAllFieldPositionsImpl(FieldPositionIteratorHandler& fpih, in getAllFieldPositionsImpl()
37 MeasureUnit FormattedNumber::getOutputUnit(UErrorCode& status) const { in getOutputUnit()
42 UDisplayOptionsNounClass FormattedNumber::getNounClass(UErrorCode &status) const { in getNounClass()
48 void FormattedNumber::getDecimalQuantity(impl::DecimalQuantity& output, UErrorCode& status) const { in getDecimalQuantity()
Dnumber_fluent.cpp566 FormattedNumber LocalizedNumberFormatter::formatInt(int64_t value, UErrorCode& status) const { in formatInt()
567 if (U_FAILURE(status)) { return FormattedNumber(U_ILLEGAL_ARGUMENT_ERROR); } in formatInt()
571 return FormattedNumber(status); in formatInt()
578 return FormattedNumber(results); in formatInt()
581 return FormattedNumber(status); in formatInt()
585 FormattedNumber LocalizedNumberFormatter::formatDouble(double value, UErrorCode& status) const { in formatDouble()
586 if (U_FAILURE(status)) { return FormattedNumber(U_ILLEGAL_ARGUMENT_ERROR); } in formatDouble()
590 return FormattedNumber(status); in formatDouble()
597 return FormattedNumber(results); in formatDouble()
600 return FormattedNumber(status); in formatDouble()
[all …]
Dnumber_simple.cpp209 FormattedNumber SimpleNumberFormatter::format(SimpleNumber value, UErrorCode &status) const { in format()
216 return FormattedNumber(temp); in format()
218 return FormattedNumber(status); in format()
/third_party/icu/icu4c/source/i18n/
Dnumber_output.cpp20 UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL(FormattedNumber) in UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL() argument
24 void FormattedNumber::toDecimalNumber(ByteSink& sink, UErrorCode& status) const { in UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL()
31 void FormattedNumber::getAllFieldPositionsImpl(FieldPositionIteratorHandler& fpih, in getAllFieldPositionsImpl()
37 MeasureUnit FormattedNumber::getOutputUnit(UErrorCode& status) const { in getOutputUnit()
42 UDisplayOptionsNounClass FormattedNumber::getNounClass(UErrorCode &status) const { in getNounClass()
48 void FormattedNumber::getDecimalQuantity(impl::DecimalQuantity& output, UErrorCode& status) const { in getDecimalQuantity()
Dnumber_fluent.cpp566 FormattedNumber LocalizedNumberFormatter::formatInt(int64_t value, UErrorCode& status) const { in formatInt()
567 if (U_FAILURE(status)) { return FormattedNumber(U_ILLEGAL_ARGUMENT_ERROR); } in formatInt()
571 return FormattedNumber(status); in formatInt()
578 return FormattedNumber(results); in formatInt()
581 return FormattedNumber(status); in formatInt()
585 FormattedNumber LocalizedNumberFormatter::formatDouble(double value, UErrorCode& status) const { in formatDouble()
586 if (U_FAILURE(status)) { return FormattedNumber(U_ILLEGAL_ARGUMENT_ERROR); } in formatDouble()
590 return FormattedNumber(status); in formatDouble()
597 return FormattedNumber(results); in formatDouble()
600 return FormattedNumber(status); in formatDouble()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DFormat.h155 class FormattedNumber {
165 FormattedNumber(uint64_t HV, int64_t DV, unsigned W, bool H, bool U,
177 inline FormattedNumber format_hex(uint64_t N, unsigned Width,
180 return FormattedNumber(N, 0, Width, true, Upper, true);
190 inline FormattedNumber format_hex_no_prefix(uint64_t N, unsigned Width,
193 return FormattedNumber(N, 0, Width, true, Upper, false);
202 inline FormattedNumber format_decimal(int64_t N, unsigned Width) {
203 return FormattedNumber(0, N, Width, false, false, false);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DFormat.h164 class FormattedNumber {
174 FormattedNumber(uint64_t HV, int64_t DV, unsigned W, bool H, bool U,
186 inline FormattedNumber format_hex(uint64_t N, unsigned Width,
189 return FormattedNumber(N, 0, Width, true, Upper, true);
199 inline FormattedNumber format_hex_no_prefix(uint64_t N, unsigned Width,
202 return FormattedNumber(N, 0, Width, true, Upper, false);
211 inline FormattedNumber format_decimal(int64_t N, unsigned Width) {
212 return FormattedNumber(0, N, Width, false, false, false);
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DLocalizedNumberFormatter.java52 public FormattedNumber format(long input) { in format()
65 public FormattedNumber format(double input) { in format()
78 public FormattedNumber format(Number input) { in format()
95 public FormattedNumber format(Measure input) { in format()
100 return new FormattedNumber(string, fq); in format()
119 private FormattedNumber format(DecimalQuantity fq) { in format()
122 return new FormattedNumber(string, fq); in format()
DFormattedNumber.java25 public class FormattedNumber implements FormattedValue { class
29 FormattedNumber(FormattedStringBuilder nsb, DecimalQuantity fq) { in FormattedNumber() method in FormattedNumber
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DLocalizedNumberFormatter.java54 public FormattedNumber format(long input) { in format()
68 public FormattedNumber format(double input) { in format()
82 public FormattedNumber format(Number input) { in format()
100 public FormattedNumber format(Measure input) { in format()
105 return new FormattedNumber(string, fq, micros.outputUnit, micros.gender); in format()
127 private FormattedNumber format(DecimalQuantity fq) { in format()
130 return new FormattedNumber(string, fq, micros.outputUnit, micros.gender); in format()
DFormattedNumber.java27 public class FormattedNumber implements FormattedValue { class
35FormattedNumber(FormattedStringBuilder nsb, DecimalQuantity fq, MeasureUnit outputUnit, String gen… in FormattedNumber() method in FormattedNumber
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dnumberformatter.h113 class FormattedNumber; variable
2456 FormattedNumber formatInt(int64_t value, UErrorCode &status) const;
2469 FormattedNumber formatDouble(double value, UErrorCode &status) const;
2485 FormattedNumber formatDecimal(StringPiece value, UErrorCode& status) const;
2492FormattedNumber formatDecimalQuantity(const impl::DecimalQuantity& dq, UErrorCode& status) const;
2635 class U_I18N_API FormattedNumber : public UMemory, public FormattedValue {
2642 FormattedNumber() in FormattedNumber() function
2649 FormattedNumber(FormattedNumber&& src) U_NOEXCEPT;
2655 virtual ~FormattedNumber() U_OVERRIDE;
2658 FormattedNumber(const FormattedNumber&) = delete;
[all …]
Dplurrule.h58 class FormattedNumber; variable
374 UnicodeString select(const number::FormattedNumber& number, UErrorCode& status) const;
/third_party/icu/icu4c/source/i18n/unicode/
Dnumberformatter.h115 class FormattedNumber; variable
2518 FormattedNumber formatInt(int64_t value, UErrorCode &status) const;
2531 FormattedNumber formatDouble(double value, UErrorCode &status) const;
2547 FormattedNumber formatDecimal(StringPiece value, UErrorCode& status) const;
2560FormattedNumber formatDecimalQuantity(const impl::DecimalQuantity& dq, UErrorCode& status) const;
2703 class U_I18N_API FormattedNumber : public UMemory, public FormattedValue {
2710 FormattedNumber() in FormattedNumber() function
2717 FormattedNumber(FormattedNumber&& src) U_NOEXCEPT;
2723 virtual ~FormattedNumber() U_OVERRIDE;
2726 FormattedNumber(const FormattedNumber&) = delete;
[all …]
Dplurrule.h58 class FormattedNumber; variable
372 UnicodeString select(const number::FormattedNumber& number, UErrorCode& status) const;
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/message2/
DPluralSelectorFactory.java9 import com.ibm.icu.number.FormattedNumber;
104 String match = formattedValToCheck instanceof FormattedNumber in matches()
105 ? rules.select((FormattedNumber) formattedValToCheck) in matches()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DNumberFormatterApiTest.java36 import ohos.global.icu.number.FormattedNumber;
2609 FormattedNumber fmtd = assertFormatSingle( in fieldPositionLogic()
2665 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
2685 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
2705 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
2726 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
2747 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
2771 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
2791 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
2811 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java33 import com.ibm.icu.number.FormattedNumber;
539 FormattedNumber fn = nf.format(inputValue); in unitWithLocaleTags()
1417 FormattedNumber formattedNum; in unitUsage()
2808 FormattedNumber fn; in unitNounClass()
3112 FormattedNumber fn; in unitGender()
5431 FormattedNumber fmtd = assertFormatSingle( in fieldPositionLogic()
5487 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
5507 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
5527 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
5548 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
[all …]
DPatternStringTest.java16 import com.ibm.icu.number.FormattedNumber;
151 FormattedNumber fn = nf.format(3.14); in testCurrencyDecimal()
/third_party/icu/icu4c/source/test/intltest/
Dnumbertest_api.cpp1066 FormattedNumber num = nf.formatDouble(2.4, status); in unitCompoundMeasure()
1440 FormattedNumber formattedNum; in unitUsage()
2770 FormattedNumber fn; in unitNounClass()
5224 FormattedNumber actual = NumberFormatter::forSkeleton(cas.skeleton, status) in skeletonUserGuideExamples()
5229 FormattedNumber actualConcise = NumberFormatter::forSkeleton(cas.conciseSkeleton, status) in skeletonUserGuideExamples()
5264 FormattedNumber fmtd = assertFormatSingle( in fieldPositionLogic()
5322 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
5343 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
5365 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
5387 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
[all …]

123