Home
last modified time | relevance | path

Searched refs:FixedDecimal (Results 1 – 25 of 36) sorted by relevance

12

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DPluralSamples.java24 import ohos.global.icu.text.PluralRules.FixedDecimal;
48 private final Map<String, Set<FixedDecimal>> _keyFractionSamplesMap;
49 private final Set<FixedDecimal> _fractionSamples;
85 Map<String, Set<FixedDecimal>> sampleFractionMap = new HashMap<String, Set<FixedDecimal>>(); in PluralSamples()
86 Set<FixedDecimal> mentioned = new TreeSet<FixedDecimal>(); in PluralSamples()
88 Map<String, Set<FixedDecimal>> foundKeywords = new HashMap<String, Set<FixedDecimal>>(); in PluralSamples()
89 for (FixedDecimal s : mentioned) { in PluralSamples()
106 mentioned.add(new FixedDecimal(0)); // always there in PluralSamples()
107 mentioned.add(new FixedDecimal(1)); // always there in PluralSamples()
108 mentioned.add(new FixedDecimal(2)); // always there in PluralSamples()
[all …]
DPluralRules.java533 …public static class FixedDecimal extends Number implements Comparable<FixedDecimal>, IFixedDecimal… class in PluralRules
680 public FixedDecimal(double n, int v, long f) { in FixedDecimal() method in PluralRules.FixedDecimal
724 public FixedDecimal(double n, int v) { in FixedDecimal() method in PluralRules.FixedDecimal
747 public FixedDecimal(double n) { in FixedDecimal() method in PluralRules.FixedDecimal
757 public FixedDecimal(long n) { in FixedDecimal() method in PluralRules.FixedDecimal
820 public FixedDecimal (String n) { in FixedDecimal() method in PluralRules.FixedDecimal
874 public int compareTo(FixedDecimal other) { in compareTo()
905 if (!(arg0 instanceof FixedDecimal)) { in equals()
908 FixedDecimal other = (FixedDecimal)arg0; in equals()
1074 public final FixedDecimal start;
[all …]
DPluralFormat.java23 import ohos.global.icu.text.PluralRules.FixedDecimal;
620 dec = new FixedDecimal(numberMinusOffset); in format()
DCurrencyPluralInfo.java243 public String select(PluralRules.FixedDecimal numberInfo) { in select()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralSamples.java23 import com.ibm.icu.text.PluralRules.FixedDecimal;
46 private final Map<String, Set<FixedDecimal>> _keyFractionSamplesMap;
47 private final Set<FixedDecimal> _fractionSamples;
83 Map<String, Set<FixedDecimal>> sampleFractionMap = new HashMap<String, Set<FixedDecimal>>(); in PluralSamples()
84 Set<FixedDecimal> mentioned = new TreeSet<FixedDecimal>(); in PluralSamples()
86 Map<String, Set<FixedDecimal>> foundKeywords = new HashMap<String, Set<FixedDecimal>>(); in PluralSamples()
87 for (FixedDecimal s : mentioned) { in PluralSamples()
104 mentioned.add(new FixedDecimal(0)); // always there in PluralSamples()
105 mentioned.add(new FixedDecimal(1)); // always there in PluralSamples()
106 mentioned.add(new FixedDecimal(2)); // always there in PluralSamples()
[all …]
DPluralRules.java568 …public static class FixedDecimal extends Number implements Comparable<FixedDecimal>, IFixedDecimal… class in PluralRules
686 public FixedDecimal(double n, int v, long f, int e, int c) { in FixedDecimal() method in PluralRules.FixedDecimal
734 public FixedDecimal(double n, int v, long f, int e) { in FixedDecimal() method in PluralRules.FixedDecimal
743 public FixedDecimal(double n, int v, long f) { in FixedDecimal() method in PluralRules.FixedDecimal
752 public static FixedDecimal createWithExponent(double n, int v, int e) { in createWithExponent()
753 return new FixedDecimal(n,v,getFractionalDigits(n, v), e); in createWithExponent()
761 public FixedDecimal(double n, int v) { in FixedDecimal() method in PluralRules.FixedDecimal
783 public FixedDecimal(double n) { in FixedDecimal() method in PluralRules.FixedDecimal
792 public FixedDecimal(long n) { in FixedDecimal() method in PluralRules.FixedDecimal
853 private FixedDecimal (FixedDecimal other) { in FixedDecimal() method in PluralRules.FixedDecimal
[all …]
DPluralFormat.java22 import com.ibm.icu.text.PluralRules.FixedDecimal;
637 dec = new FixedDecimal(numberMinusOffset); in format()
DCurrencyPluralInfo.java261 public String select(PluralRules.FixedDecimal numberInfo) { in select()
/third_party/node/deps/icu-small/source/i18n/
Dplurrule_impl.h37 #define UPLRULES_NO_UNIQUE_VALUE_DECIMAL (FixedDecimal((double)-0.00123456777))
287 class U_I18N_API FixedDecimal: public IFixedDecimal, public UObject {
296 FixedDecimal(double n, int32_t v, int64_t f, int32_t e, int32_t c);
297 FixedDecimal(double n, int32_t v, int64_t f, int32_t e);
298 FixedDecimal(double n, int32_t v, int64_t f);
299 FixedDecimal(double n, int32_t);
300 explicit FixedDecimal(double n);
301 FixedDecimal();
302 ~FixedDecimal() U_OVERRIDE;
303 FixedDecimal(const UnicodeString &s, UErrorCode &ec);
[all …]
Dplurrule.cpp282 return select(FixedDecimal(number)); in select()
287 return select(FixedDecimal(number)); in select()
397 FixedDecimal* destFd, int32_t destCapacity, in getSamplesFromString()
423 FixedDecimal fixed(sampleRange, status); in getSamplesFromString()
433 FixedDecimal fixedLo(sampleRange.tempSubStringBetween(0, tildeIndex), status); in getSamplesFromString()
434 FixedDecimal fixedHi(sampleRange.tempSubStringBetween(tildeIndex+1), status); in getSamplesFromString()
469 FixedDecimal newSample = FixedDecimal::createWithExponent(sampleValue, v, e); in getSamplesFromString()
508 PluralRules::getSamples(const UnicodeString &keyword, FixedDecimal *dest, in getSamples()
1623 FixedDecimal::FixedDecimal(double n, int32_t v, int64_t f, int32_t e, int32_t c) { in FixedDecimal() function in FixedDecimal
1627 FixedDecimal::FixedDecimal(double n, int32_t v, int64_t f, int32_t e) { in FixedDecimal() function in FixedDecimal
[all …]
/third_party/icu/icu4c/source/i18n/
Dplurrule_impl.h37 #define UPLRULES_NO_UNIQUE_VALUE_DECIMAL (FixedDecimal((double)-0.00123456777))
287 class U_I18N_API FixedDecimal: public IFixedDecimal, public UObject {
296 FixedDecimal(double n, int32_t v, int64_t f, int32_t e, int32_t c);
297 FixedDecimal(double n, int32_t v, int64_t f, int32_t e);
298 FixedDecimal(double n, int32_t v, int64_t f);
299 FixedDecimal(double n, int32_t);
300 explicit FixedDecimal(double n);
301 FixedDecimal();
302 ~FixedDecimal() U_OVERRIDE;
303 FixedDecimal(const UnicodeString &s, UErrorCode &ec);
[all …]
Dplurrule.cpp282 return select(FixedDecimal(number)); in select()
287 return select(FixedDecimal(number)); in select()
389 FixedDecimal* destFd, int32_t destCapacity, in getSamplesFromString()
415 FixedDecimal fixed(sampleRange, status); in getSamplesFromString()
425 FixedDecimal fixedLo(sampleRange.tempSubStringBetween(0, tildeIndex), status); in getSamplesFromString()
426 FixedDecimal fixedHi(sampleRange.tempSubStringBetween(tildeIndex+1), status); in getSamplesFromString()
461 FixedDecimal newSample = FixedDecimal::createWithExponent(sampleValue, v, e); in getSamplesFromString()
500 PluralRules::getSamples(const UnicodeString &keyword, FixedDecimal *dest, in getSamples()
1615 FixedDecimal::FixedDecimal(double n, int32_t v, int64_t f, int32_t e, int32_t c) { in FixedDecimal() function in FixedDecimal
1619 FixedDecimal::FixedDecimal(double n, int32_t v, int64_t f, int32_t e) { in FixedDecimal() function in FixedDecimal
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dplurrule_impl.h37 #define UPLRULES_NO_UNIQUE_VALUE_DECIMAL (FixedDecimal((double)-0.00123456777))
287 class U_I18N_API FixedDecimal: public IFixedDecimal, public UObject {
296 FixedDecimal(double n, int32_t v, int64_t f, int32_t e, int32_t c);
297 FixedDecimal(double n, int32_t v, int64_t f, int32_t e);
298 FixedDecimal(double n, int32_t v, int64_t f);
299 FixedDecimal(double n, int32_t);
300 explicit FixedDecimal(double n);
301 FixedDecimal();
302 ~FixedDecimal() U_OVERRIDE;
303 FixedDecimal(const UnicodeString &s, UErrorCode &ec);
[all …]
Dplurrule.cpp282 return select(FixedDecimal(number)); in select()
287 return select(FixedDecimal(number)); in select()
389 FixedDecimal* destFd, int32_t destCapacity, in getSamplesFromString()
415 FixedDecimal fixed(sampleRange, status); in getSamplesFromString()
425 FixedDecimal fixedLo(sampleRange.tempSubStringBetween(0, tildeIndex), status); in getSamplesFromString()
426 FixedDecimal fixedHi(sampleRange.tempSubStringBetween(tildeIndex+1), status); in getSamplesFromString()
461 FixedDecimal newSample = FixedDecimal::createWithExponent(sampleValue, v, e); in getSamplesFromString()
500 PluralRules::getSamples(const UnicodeString &keyword, FixedDecimal *dest, in getSamples()
1615 FixedDecimal::FixedDecimal(double n, int32_t v, int64_t f, int32_t e, int32_t c) { in FixedDecimal() function in FixedDecimal
1619 FixedDecimal::FixedDecimal(double n, int32_t v, int64_t f, int32_t e) { in FixedDecimal() function in FixedDecimal
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dplurrule.cpp259 return select(FixedDecimal(number)); in select()
264 return select(FixedDecimal(number)); in select()
337 FixedDecimal fixed(sampleRange, status); in getSamplesFromString()
344 FixedDecimal fixedLo(sampleRange.tempSubStringBetween(0, tildeIndex), status); in getSamplesFromString()
345 FixedDecimal fixedHi(sampleRange.tempSubStringBetween(tildeIndex+1), status); in getSamplesFromString()
1479 FixedDecimal::FixedDecimal(double n, int32_t v, int64_t f) { in FixedDecimal() function in FixedDecimal
1496 FixedDecimal::FixedDecimal(double n, int32_t v) { in FixedDecimal() function in FixedDecimal
1501 FixedDecimal::FixedDecimal(double n) { in FixedDecimal() function in FixedDecimal
1505 FixedDecimal::FixedDecimal() { in FixedDecimal() function in FixedDecimal
1513 FixedDecimal::FixedDecimal(const UnicodeString &num, UErrorCode &status) { in FixedDecimal() function in FixedDecimal
[all …]
Dplurrule_impl.h264 class U_I18N_API FixedDecimal: public IFixedDecimal, public UObject {
271 FixedDecimal(double n, int32_t v, int64_t f);
272 FixedDecimal(double n, int32_t);
273 explicit FixedDecimal(double n);
274 FixedDecimal();
275 ~FixedDecimal() U_OVERRIDE;
276 FixedDecimal(const UnicodeString &s, UErrorCode &ec);
277 FixedDecimal(const FixedDecimal &other);
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRulesTest.java53 import com.ibm.icu.text.PluralRules.FixedDecimal;
83 FixedDecimal fd = new FixedDecimal(testDouble[0]); in testOverUnderflow()
180 new FixedDecimal(3));
182 new FixedDecimal(3.5, 2));
188 false, new FixedDecimal(99d, 1));
209 new FixedDecimal(0));
211 new FixedDecimal(0, 1));
213 new FixedDecimal(1000000));
215 FixedDecimal.createWithExponent(2.1, 1, 6));
217 new FixedDecimal(2));
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DPluralRulesTest.java52 import ohos.global.icu.text.PluralRules.FixedDecimal;
84 FixedDecimal fd = new FixedDecimal(testDouble[0]); in testOverUnderflow()
181 new FixedDecimal(3));
183 new FixedDecimal(3.5, 2));
189 false, new FixedDecimal(99d, 1));
204 String samplesString, boolean isBounded, FixedDecimal firstInRange) {
356 Map<FixedDecimal, String> collisionTest = new TreeMap();
364 FixedDecimal item = i == 0 ? sample.start : sample.end;
1208FixedDecimal items[] = { new FixedDecimal(3d), new FixedDecimal(3d, 2), new FixedDecimal(3.1d, 1),
1209 new FixedDecimal(3.1d, 2), };
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dplurults.cpp467 FixedDecimal values[1000]; in testGetFixedDecimalSamples()
534 checkNewSamples(description, test, u"one", u"@integer 0, 1, 1e5", FixedDecimal(0)); in testSamplesWithExponent()
535 …ption, test, u"many", u"@integer 1000000, 2e6, 3e6, 4e6, 5e6, 6e6, 7e6, …", FixedDecimal(1000000)); in testSamplesWithExponent()
536 …er", u"@integer 2~17, 100, 1000, 10000, 100000, 2e5, 3e5, 4e5, 5e5, 6e5, 7e5, …", FixedDecimal(2)); in testSamplesWithExponent()
551 checkNewSamples(description2, test2, u"one", u"@decimal 0.0~1.5, 1.1e5", FixedDecimal(0, 1)); in testSamplesWithExponent()
552 …t2, u"many", u"@decimal 2.1e6, 3.1e6, 4.1e6, 5.1e6, 6.1e6, 7.1e6, …", FixedDecimal::createWithExpo… in testSamplesWithExponent()
553 … 10000.0, 100000.0, 1000000.0, 2.1e5, 3.1e5, 4.1e5, 5.1e5, 6.1e5, 7.1e5, …", FixedDecimal(2.0, 1)); in testSamplesWithExponent()
572 checkNewSamples(description, test, u"one", u"@integer 0, 1, 1c5", FixedDecimal(0)); in testSamplesWithCompactNotation()
573 …ption, test, u"many", u"@integer 1000000, 2c6, 3c6, 4c6, 5c6, 6c6, 7c6, …", FixedDecimal(1000000)); in testSamplesWithCompactNotation()
574 …er", u"@integer 2~17, 100, 1000, 10000, 100000, 2c5, 3c5, 4c5, 5c5, 6c5, 7c5, …", FixedDecimal(2)); in testSamplesWithCompactNotation()
[all …]
Dplurults.h56 FixedDecimal firstInRange);
/third_party/icu/icu4c/source/i18n/unicode/
Dplurrule.h49 class FixedDecimal; variable
501 FixedDecimal *dest, int32_t destCapacity,
/third_party/node/deps/icu-small/source/i18n/unicode/
Dplurrule.h49 class FixedDecimal; variable
499 FixedDecimal *dest, int32_t destCapacity,
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dplurrule.h49 class FixedDecimal; variable
501 FixedDecimal *dest, int32_t destCapacity,
/third_party/icu/icu4j/
Dcoverage-exclusion.txt894 com/ibm/icu/text/PluralRules#matches:(Lcom/ibm/icu/text/PluralRules$FixedDecimal;Ljava/lang/String;…
897 com/ibm/icu/text/PluralRules$FixedDecimal#floatValue:()F
898 com/ibm/icu/text/PluralRules$FixedDecimal#getBaseFactor:()I
899 com/ibm/icu/text/PluralRules$FixedDecimal#getDecimalDigits:()J
900 com/ibm/icu/text/PluralRules$FixedDecimal#getDecimalDigitsWithoutTrailingZeros:()J
901 com/ibm/icu/text/PluralRules$FixedDecimal#getIntegerValue:()J
902 com/ibm/icu/text/PluralRules$FixedDecimal#getSource:()D
903 com/ibm/icu/text/PluralRules$FixedDecimal#getVisibleDecimalDigitCountWithoutTrailingZeros:()I
904 com/ibm/icu/text/PluralRules$FixedDecimal#hashCode:()I
905 com/ibm/icu/text/PluralRules$FixedDecimal#hasIntegerValue:()Z
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/impl/number/
DDecimalQuantity_SimpleStorage.java613 return new PluralRules.FixedDecimal(toDouble()).getPluralOperand(operand);

12