Home
last modified time | relevance | path

Searched refs:SimpleModifier (Results 1 – 17 of 17) sorted by relevance

/external/icu/icu4c/source/i18n/
Dnumber_modifiers.cpp117 SimpleModifier::SimpleModifier(const SimpleFormatter &simpleFormatter, Field field, bool strong) in SimpleModifier() function in SimpleModifier
118 : SimpleModifier(simpleFormatter, field, strong, {}) {} in SimpleModifier()
120 SimpleModifier::SimpleModifier(const SimpleFormatter &simpleFormatter, Field field, bool strong, in SimpleModifier() function in SimpleModifier
154 SimpleModifier::SimpleModifier() in SimpleModifier() function in SimpleModifier
158 int32_t SimpleModifier::apply(NumberStringBuilder &output, int leftIndex, int rightIndex, in apply()
163 int32_t SimpleModifier::getPrefixLength() const { in getPrefixLength()
167 int32_t SimpleModifier::getCodePointCount() const { in getCodePointCount()
178 bool SimpleModifier::isStrong() const { in isStrong()
182 bool SimpleModifier::containsField(UNumberFormatFields field) const { in containsField()
189 void SimpleModifier::getParameters(Parameters& output) const { in getParameters()
[all …]
Dnumber_modifiers.h57 class U_I18N_API SimpleModifier : public Modifier, public UMemory {
59 SimpleModifier(const SimpleFormatter &simpleFormatter, Field field, bool strong);
61 SimpleModifier(const SimpleFormatter &simpleFormatter, Field field, bool strong,
65 SimpleModifier();
Dnumber_longnames.h34 SimpleModifier fModifiers[StandardPlural::Form::COUNT];
Dnumrange_impl.h89 SimpleModifier fApproximatelyModifier;
Dnumber_longnames.cpp252 fModifiers[i] = SimpleModifier(compiledFormatter, field, false, {this, 0, plural}); in simpleFormatsToModifiers()
269 fModifiers[i] = SimpleModifier(compoundCompiled, field, false, {this, 0, plural}); in multiSimpleFormatsToModifiers()
Dnumrange_impl.cpp392 int32_t lengthRange = SimpleModifier::formatTwoArgPattern( in formatRange()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DSimpleModifier.java16 public class SimpleModifier implements Modifier { class
31 public SimpleModifier(String compiledPattern, Field field, boolean strong) { in SimpleModifier() method in SimpleModifier
36 …public SimpleModifier(String compiledPattern, Field field, boolean strong, Parameters parameters) { in SimpleModifier() method in SimpleModifier
110 if (!(other instanceof SimpleModifier)) { in semanticallyEquivalent()
113 SimpleModifier _other = (SimpleModifier) other; in semanticallyEquivalent()
DLongNameHandler.java155 private final Map<StandardPlural, SimpleModifier> modifiers;
160 Map<StandardPlural, SimpleModifier> modifiers, in LongNameHandler()
182 Map<StandardPlural, SimpleModifier> modifiers = new EnumMap<>( in forCurrencyLongNames()
211 Map<StandardPlural, SimpleModifier> modifiers = new EnumMap<>( in forMeasureUnit()
247 Map<StandardPlural, SimpleModifier> modifiers = new EnumMap<>( in forCompoundUnit()
265 modifiers.put(plural, new SimpleModifier(compiled, field, false, parameters)); in simpleFormatsToModifiers()
284 modifiers.put(plural, new SimpleModifier(compoundCompiled, field, false, parameters)); in multiSimpleFormatsToModifiers()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DSimpleModifier.java14 public class SimpleModifier implements Modifier { class
29 public SimpleModifier(String compiledPattern, Field field, boolean strong) { in SimpleModifier() method in SimpleModifier
34 …public SimpleModifier(String compiledPattern, Field field, boolean strong, Parameters parameters) { in SimpleModifier() method in SimpleModifier
108 if (!(other instanceof SimpleModifier)) { in semanticallyEquivalent()
111 SimpleModifier _other = (SimpleModifier) other; in semanticallyEquivalent()
DLongNameHandler.java151 private final Map<StandardPlural, SimpleModifier> modifiers;
156 Map<StandardPlural, SimpleModifier> modifiers, in LongNameHandler()
178 Map<StandardPlural, SimpleModifier> modifiers = new EnumMap<>( in forCurrencyLongNames()
207 Map<StandardPlural, SimpleModifier> modifiers = new EnumMap<>( in forMeasureUnit()
243 Map<StandardPlural, SimpleModifier> modifiers = new EnumMap<>( in forCompoundUnit()
261 modifiers.put(plural, new SimpleModifier(compiled, field, false, parameters)); in simpleFormatsToModifiers()
280 modifiers.put(plural, new SimpleModifier(compoundCompiled, field, false, parameters)); in multiSimpleFormatsToModifiers()
/external/icu/icu4c/source/common/unicode/
Dsimpleformatter.h27 class SimpleModifier; variable
298 friend class number::impl::SimpleModifier;
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberRangeFormatterImpl.java16 import android.icu.impl.number.SimpleModifier;
42 /* final */ SimpleModifier fApproximatelyModifier;
105 out.fApproximatelyModifier = new SimpleModifier(sink.approximatelyPattern, null, false); in getNumberRangeData()
294 SimpleModifier.formatTwoArgPattern(fRangePattern, string, 0, h, null); in formatRange()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberRangeFormatterImpl.java15 import com.ibm.icu.impl.number.SimpleModifier;
41 /* final */ SimpleModifier fApproximatelyModifier;
104 out.fApproximatelyModifier = new SimpleModifier(sink.approximatelyPattern, null, false); in getNumberRangeData()
293 SimpleModifier.formatTwoArgPattern(fRangePattern, string, 0, h, null); in formatRange()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DModifierTest.java17 import android.icu.impl.number.SimpleModifier;
73 Modifier mod = new SimpleModifier(compiledPattern, NumberFormat.Field.PERCENT, false); in testSimpleModifier()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DModifierTest.java16 import com.ibm.icu.impl.number.SimpleModifier;
70 Modifier mod = new SimpleModifier(compiledPattern, NumberFormat.Field.PERCENT, false); in testSimpleModifier()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_modifiers.cpp83 SimpleModifier mod(compiledFormatter, UNUM_PERCENT_FIELD, false); in testSimpleModifier()
/external/icu/icu4j/
Dcoverage-exclusion.txt485 com/ibm/icu/impl/number/modifiers/SimpleModifier#<init>:(Ljava/lang/String;Lcom/ibm/icu/text/Number…
486 com/ibm/icu/impl/number/modifiers/SimpleModifier#apply:(Lcom/ibm/icu/impl/number/NumberStringBuilde…
487 com/ibm/icu/impl/number/modifiers/SimpleModifier#export:(Lcom/ibm/icu/impl/number/Properties;)V
488 com/ibm/icu/impl/number/modifiers/SimpleModifier#formatAsPrefixSuffix:(Ljava/lang/String;Lcom/ibm/i…
489 com/ibm/icu/impl/number/modifiers/SimpleModifier#getPrefix:()Ljava/lang/String;
490 com/ibm/icu/impl/number/modifiers/SimpleModifier#getSuffix:()Ljava/lang/String;
491 com/ibm/icu/impl/number/modifiers/SimpleModifier#isStrong:()Z
492 com/ibm/icu/impl/number/modifiers/SimpleModifier#length:()I
493 com/ibm/icu/impl/number/modifiers/SimpleModifier#testFormatAsPrefixSuffix:()V