Home
last modified time | relevance | path

Searched refs:precomputedMods (Results 1 – 6 of 6) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/number/
DCompactNotation.java79 final Map<String, ImmutablePatternModifier> precomputedMods; field in CompactNotation.CompactHandler
100 precomputedMods = new HashMap<String, ImmutablePatternModifier>(); in CompactHandler()
104 precomputedMods = null; in CompactHandler()
116 precomputedMods.put(patternString, buildReference.createImmutable()); in precomputeAllModifiers()
142 } else if (precomputedMods != null) { in processQuantity()
145 ImmutablePatternModifier mod = precomputedMods.get(patternString); in processQuantity()
DScientificNotation.java133 final ScientificModifier[] precomputedMods; field in ScientificNotation.ScientificHandler
148 precomputedMods = new ScientificModifier[25]; in ScientificHandler()
150 precomputedMods[i + 12] = new ScientificModifier(i, this); in ScientificHandler()
153 precomputedMods = null; in ScientificHandler()
179 if (precomputedMods != null && exponent >= -12 && exponent <= 12) { in processQuantity()
181 micros.modInner = precomputedMods[exponent + 12]; in processQuantity()
182 } else if (precomputedMods != null) { in processQuantity()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DScientificNotation.java135 final ScientificModifier[] precomputedMods; field in ScientificNotation.ScientificHandler
150 precomputedMods = new ScientificModifier[25]; in ScientificHandler()
152 precomputedMods[i + 12] = new ScientificModifier(i, this); in ScientificHandler()
155 precomputedMods = null; in ScientificHandler()
181 if (precomputedMods != null && exponent >= -12 && exponent <= 12) { in processQuantity()
183 micros.modInner = precomputedMods[exponent + 12]; in processQuantity()
184 } else if (precomputedMods != null) { in processQuantity()
DCompactNotation.java78 final Map<String, ImmutablePatternModifier> precomputedMods; field in CompactNotation.CompactHandler
99 precomputedMods = new HashMap<String, ImmutablePatternModifier>(); in CompactHandler()
103 precomputedMods = null; in CompactHandler()
115 precomputedMods.put(patternString, buildReference.createImmutable()); in precomputeAllModifiers()
141 } else if (precomputedMods != null) { in processQuantity()
144 ImmutablePatternModifier mod = precomputedMods.get(patternString); in processQuantity()
/external/icu/icu4c/source/i18n/
Dnumber_compact.cpp236 delete precomputedMods[i].mod; in ~CompactHandler()
251 if (precomputedMods.getCapacity() < precomputedModsLength) { in precomputeAllModifiers()
252 precomputedMods.resize(allPatterns.size(), status); in precomputeAllModifiers()
259 CompactModInfo &info = precomputedMods[i]; in precomputeAllModifiers()
298 const CompactModInfo &info = precomputedMods[i]; in processQuantity()
Dnumber_compact.h73 MaybeStackArray<CompactModInfo, 12> precomputedMods; variable