Home
last modified time | relevance | path

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

123

/external/llvm/include/llvm/Support/
DFormat.h142 class FormattedNumber {
152 FormattedNumber(uint64_t HV, int64_t DV, unsigned W, bool H, bool U, in FormattedNumber() function
164 inline FormattedNumber format_hex(uint64_t N, unsigned Width,
167 return FormattedNumber(N, 0, Width, true, Upper, true);
177 inline FormattedNumber format_hex_no_prefix(uint64_t N, unsigned Width,
180 return FormattedNumber(N, 0, Width, true, Upper, false);
189 inline FormattedNumber format_decimal(int64_t N, unsigned Width) { in format_decimal()
190 return FormattedNumber(0, N, Width, false, false, false); in format_decimal()
Draw_ostream.h25 class FormattedNumber; variable
223 raw_ostream &operator<<(const FormattedNumber &);
/external/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);
Draw_ostream.h31 class FormattedNumber; variable
230 raw_ostream &operator<<(const FormattedNumber &);
/external/icu/icu4c/source/i18n/
Dnumber_fluent.cpp524 FormattedNumber LocalizedNumberFormatter::formatInt(int64_t value, UErrorCode& status) const { in formatInt()
525 if (U_FAILURE(status)) { return FormattedNumber(U_ILLEGAL_ARGUMENT_ERROR); } in formatInt()
529 return FormattedNumber(status); in formatInt()
536 return FormattedNumber(results); in formatInt()
539 return FormattedNumber(status); in formatInt()
543 FormattedNumber LocalizedNumberFormatter::formatDouble(double value, UErrorCode& status) const { in formatDouble()
544 if (U_FAILURE(status)) { return FormattedNumber(U_ILLEGAL_ARGUMENT_ERROR); } in formatDouble()
548 return FormattedNumber(status); in formatDouble()
555 return FormattedNumber(results); in formatDouble()
558 return FormattedNumber(status); in formatDouble()
[all …]
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 void FormattedNumber::getDecimalQuantity(impl::DecimalQuantity& output, UErrorCode& status) const { in getDecimalQuantity()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DLocalizedNumberFormatter.java53 public FormattedNumber format(long input) { in format()
66 public FormattedNumber format(double input) { in format()
79 public FormattedNumber format(Number input) { in format()
96 public FormattedNumber format(Measure input) { in format()
101 return new FormattedNumber(string, fq, micros.outputUnit); in format()
122 private FormattedNumber format(DecimalQuantity fq) { in format()
125 return new FormattedNumber(string, fq, micros.outputUnit); in format()
DFormattedNumber.java26 public class FormattedNumber implements FormattedValue { class
31 FormattedNumber(FormattedStringBuilder nsb, DecimalQuantity fq, MeasureUnit outputUnit) { in FormattedNumber() method in FormattedNumber
/external/llvm-project/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);
/external/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);
Draw_ostream.h31 class FormattedNumber; variable
252 raw_ostream &operator<<(const FormattedNumber &);
/external/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); in format()
127 private FormattedNumber format(DecimalQuantity fq) { in format()
130 return new FormattedNumber(string, fq, micros.outputUnit); in format()
DFormattedNumber.java26 public class FormattedNumber implements FormattedValue { class
31 FormattedNumber(FormattedStringBuilder nsb, DecimalQuantity fq, MeasureUnit outputUnit) { in FormattedNumber() method in FormattedNumber
/external/icu/icu4c/source/i18n/unicode/
Dnumberformatter.h114 class FormattedNumber; variable
2386 FormattedNumber formatInt(int64_t value, UErrorCode &status) const;
2399 FormattedNumber formatDouble(double value, UErrorCode &status) const;
2415 FormattedNumber formatDecimal(StringPiece value, UErrorCode& status) const;
2422FormattedNumber formatDecimalQuantity(const impl::DecimalQuantity& dq, UErrorCode& status) const;
2565 class U_I18N_API FormattedNumber : public UMemory, public FormattedValue {
2572 FormattedNumber() in FormattedNumber() function
2579 FormattedNumber(FormattedNumber&& src) U_NOEXCEPT;
2585 virtual ~FormattedNumber() U_OVERRIDE;
2588 FormattedNumber(const FormattedNumber&) = delete;
[all …]
Dplurrule.h58 class FormattedNumber; variable
374 UnicodeString select(const number::FormattedNumber& number, UErrorCode& status) const;
/external/icu/libicu/cts_headers/unicode/
Dnumberformatter.h114 class FormattedNumber; variable
2386 FormattedNumber formatInt(int64_t value, UErrorCode &status) const;
2399 FormattedNumber formatDouble(double value, UErrorCode &status) const;
2415 FormattedNumber formatDecimal(StringPiece value, UErrorCode& status) const;
2422FormattedNumber formatDecimalQuantity(const impl::DecimalQuantity& dq, UErrorCode& status) const;
2565 class U_I18N_API FormattedNumber : public UMemory, public FormattedValue {
2572 FormattedNumber() in FormattedNumber() function
2579 FormattedNumber(FormattedNumber&& src) U_NOEXCEPT;
2585 virtual ~FormattedNumber() U_OVERRIDE;
2588 FormattedNumber(const FormattedNumber&) = delete;
[all …]
Dplurrule.h58 class FormattedNumber; variable
374 UnicodeString select(const number::FormattedNumber& number, UErrorCode& status) const;
/external/icu/android_icu4j/testing/src/android/icu/extratest/number/
DFormattedNumberTest.java7 import android.icu.number.FormattedNumber;
25 FormattedNumber formattedNumber = in test_enUS()
37 FormattedNumber formattedNumber = in testAppendTo()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java33 import android.icu.number.FormattedNumber;
1113 FormattedNumber formattedNum; in unitUsage()
3516 FormattedNumber fmtd = assertFormatSingle( in fieldPositionLogic()
3572 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3592 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3612 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3633 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3654 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3675 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3699 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
[all …]
DDecimalQuantityTest.java28 import android.icu.number.FormattedNumber;
681 FormattedNumber fn = formatter.format(input); in testCompactDecimalSuppressedExponent()
755 FormattedNumber fn = formatter.format(formatterInput); in testCompactNotationFractionPluralOperands()
835 FormattedNumber fnCompactScaled = compactScaled.format(input); in testSuppressedExponentUnchangedByInitialScaling()
840 FormattedNumber fnCompact = compactLong.format(input); in testSuppressedExponentUnchangedByInitialScaling()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java32 import com.ibm.icu.number.FormattedNumber;
1110 FormattedNumber formattedNum; in unitUsage()
3513 FormattedNumber fmtd = assertFormatSingle( in fieldPositionLogic()
3569 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3589 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3609 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3630 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3651 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3672 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3696 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
[all …]
DDecimalQuantityTest.java27 import com.ibm.icu.number.FormattedNumber;
678 FormattedNumber fn = formatter.format(input); in testCompactDecimalSuppressedExponent()
752 FormattedNumber fn = formatter.format(formatterInput); in testCompactNotationFractionPluralOperands()
832 FormattedNumber fnCompactScaled = compactScaled.format(input); in testSuppressedExponentUnchangedByInitialScaling()
837 FormattedNumber fnCompact = compactLong.format(input); in testSuppressedExponentUnchangedByInitialScaling()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_api.cpp956 FormattedNumber num = nf.formatDouble(2.4, status); in unitCompoundMeasure()
1142 FormattedNumber formattedNum; in unitUsage()
3585 FormattedNumber actual = NumberFormatter::forSkeleton(cas.skeleton, status) in skeletonUserGuideExamples()
3590 FormattedNumber actualConcise = NumberFormatter::forSkeleton(cas.conciseSkeleton, status) in skeletonUserGuideExamples()
3625 FormattedNumber fmtd = assertFormatSingle( in fieldPositionLogic()
3683 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3704 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3726 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3748 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
3770 FormattedNumber result = assertFormatSingle( in fieldPositionCoverage()
[all …]
Dnumbertest.h157 FormattedNumber assertFormatSingle(
170 const FormattedNumber& formattedNumber,
Dnumbertest_decimalquantity.cpp537 FormattedNumber fn = formatter.formatDouble(cas.input, status); in testCompactDecimalSuppressedExponent()
616 FormattedNumber fnCompactScaled = compactScaled.formatInt(cas.input, status); in testSuppressedExponentUnchangedByInitialScaling()
621 FormattedNumber fnCompact = compactLong.formatInt(cas.input, status); in testSuppressedExponentUnchangedByInitialScaling()

123