Home
last modified time | relevance | path

Searched refs:SignDisplay (Results 1 – 25 of 37) sorted by relevance

12

/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DMutablePatternModifierTest.java18 import com.ibm.icu.number.NumberFormatter.SignDisplay;
30 mod.setPatternAttributes(SignDisplay.AUTO, false, false); in basic()
39 mod.setPatternAttributes(SignDisplay.ALWAYS, false, false); in basic()
48 mod.setPatternAttributes(SignDisplay.EXCEPT_ZERO, false, false); in basic()
54 mod.setPatternAttributes(SignDisplay.NEVER, false, false); in basic()
58 mod.setPatternAttributes(SignDisplay.AUTO, false, true); in basic()
64 mod.setPatternAttributes(SignDisplay.AUTO, false, false); in basic()
68 mod.setPatternAttributes(SignDisplay.ALWAYS, false, false); in basic()
77 mod.setPatternAttributes(SignDisplay.EXCEPT_ZERO, false, false); in basic()
83 mod.setPatternAttributes(SignDisplay.NEVER, false, false); in basic()
[all …]
DNumberFormatterApiTest.java42 import com.ibm.icu.number.NumberFormatter.SignDisplay;
160 …NumberFormatter.with().notation(Notation.scientific().withExponentSignDisplay(SignDisplay.ALWAYS)), in notationScientific()
4863 NumberFormatter.with().sign(SignDisplay.AUTO), in sign()
4872 NumberFormatter.with().sign(SignDisplay.AUTO), in sign()
4881 NumberFormatter.with().sign(SignDisplay.AUTO), in sign()
4890 NumberFormatter.with().sign(SignDisplay.ALWAYS), in sign()
4899 NumberFormatter.with().sign(SignDisplay.ALWAYS), in sign()
4908 NumberFormatter.with().sign(SignDisplay.ALWAYS), in sign()
4917 NumberFormatter.with().sign(SignDisplay.NEVER), in sign()
4926 NumberFormatter.with().sign(SignDisplay.NEVER), in sign()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DMutablePatternModifierTest.java19 import ohos.global.icu.number.NumberFormatter.SignDisplay;
33 mod.setPatternAttributes(SignDisplay.AUTO, false); in basic()
42 mod.setPatternAttributes(SignDisplay.ALWAYS, false); in basic()
51 mod.setPatternAttributes(SignDisplay.EXCEPT_ZERO, false); in basic()
57 mod.setPatternAttributes(SignDisplay.NEVER, false); in basic()
62 mod.setPatternAttributes(SignDisplay.AUTO, false); in basic()
66 mod.setPatternAttributes(SignDisplay.ALWAYS, false); in basic()
75 mod.setPatternAttributes(SignDisplay.EXCEPT_ZERO, false); in basic()
81 mod.setPatternAttributes(SignDisplay.NEVER, false); in basic()
90 mod.setPatternAttributes(SignDisplay.AUTO, false); in mutableEqualsImmutable()
[all …]
DNumberFormatterApiTest.java44 import ohos.global.icu.number.NumberFormatter.SignDisplay;
159 …NumberFormatter.with().notation(Notation.scientific().withExponentSignDisplay(SignDisplay.ALWAYS)), in notationScientific()
2101 NumberFormatter.with().sign(SignDisplay.AUTO), in sign()
2110 NumberFormatter.with().sign(SignDisplay.AUTO), in sign()
2119 NumberFormatter.with().sign(SignDisplay.AUTO), in sign()
2128 NumberFormatter.with().sign(SignDisplay.ALWAYS), in sign()
2137 NumberFormatter.with().sign(SignDisplay.ALWAYS), in sign()
2146 NumberFormatter.with().sign(SignDisplay.ALWAYS), in sign()
2155 NumberFormatter.with().sign(SignDisplay.NEVER), in sign()
2164 NumberFormatter.with().sign(SignDisplay.NEVER), in sign()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DScientificNotation.java15 import com.ibm.icu.number.NumberFormatter.SignDisplay;
35 SignDisplay exponentSignDisplay;
41 SignDisplay exponentSignDisplay) { in ScientificNotation()
89 public ScientificNotation withExponentSignDisplay(SignDisplay exponentSignDisplay) { in withExponentSignDisplay()
274 if (exponent < 0 && notation.exponentSignDisplay != SignDisplay.NEVER) { in doApply()
276 } else if (exponent >= 0 && notation.exponentSignDisplay == SignDisplay.ALWAYS) { in doApply()
DNotation.java5 import com.ibm.icu.number.NumberFormatter.SignDisplay;
20 SignDisplay.AUTO);
24 SignDisplay.AUTO);
DNumberSkeletonImpl.java18 import com.ibm.icu.number.NumberFormatter.SignDisplay;
349 private static SignDisplay signDisplay(StemEnum stem) { in signDisplay()
352 return SignDisplay.AUTO; in signDisplay()
354 return SignDisplay.ALWAYS; in signDisplay()
356 return SignDisplay.NEVER; in signDisplay()
358 return SignDisplay.ACCOUNTING; in signDisplay()
360 return SignDisplay.ACCOUNTING_ALWAYS; in signDisplay()
362 return SignDisplay.EXCEPT_ZERO; in signDisplay()
364 return SignDisplay.ACCOUNTING_EXCEPT_ZERO; in signDisplay()
366 return SignDisplay.NEGATIVE; in signDisplay()
[all …]
DNumberPropertyMapper.java19 import com.ibm.icu.number.NumberFormatter.SignDisplay;
232 macros.sign = properties.getSignAlwaysShown() ? SignDisplay.ALWAYS : SignDisplay.AUTO; in oldToNew()
261 … properties.getExponentSignAlwaysShown() ? SignDisplay.ALWAYS : SignDisplay.AUTO); in oldToNew()
DNumberFormatterImpl.java31 import com.ibm.icu.number.NumberFormatter.SignDisplay;
195 boolean isAccounting = macros.sign == SignDisplay.ACCOUNTING in macrosToMicroGenerator()
196 || macros.sign == SignDisplay.ACCOUNTING_ALWAYS in macrosToMicroGenerator()
197 || macros.sign == SignDisplay.ACCOUNTING_EXCEPT_ZERO in macrosToMicroGenerator()
198 || macros.sign == SignDisplay.ACCOUNTING_NEGATIVE; in macrosToMicroGenerator()
341 micros.sign = SignDisplay.AUTO; in macrosToMicroGenerator()
DNumberFormatterSettings.java11 import com.ibm.icu.number.NumberFormatter.SignDisplay;
436 public T sign(SignDisplay style) { in sign()
699 macros.sign = (SignDisplay) current.value; in resolve()
DNumberFormatter.java359 public static enum SignDisplay { enum in NumberFormatter
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DScientificNotation.java16 import ohos.global.icu.number.NumberFormatter.SignDisplay;
36 SignDisplay exponentSignDisplay;
42 SignDisplay exponentSignDisplay) { in ScientificNotation()
88 public ScientificNotation withExponentSignDisplay(SignDisplay exponentSignDisplay) { in withExponentSignDisplay()
273 if (exponent < 0 && notation.exponentSignDisplay != SignDisplay.NEVER) { in doApply()
275 } else if (exponent >= 0 && notation.exponentSignDisplay == SignDisplay.ALWAYS) { in doApply()
DNotation.java6 import ohos.global.icu.number.NumberFormatter.SignDisplay;
21 SignDisplay.AUTO);
25 SignDisplay.AUTO);
DNumberSkeletonImpl.java18 import ohos.global.icu.number.NumberFormatter.SignDisplay;
334 private static SignDisplay signDisplay(StemEnum stem) { in signDisplay()
337 return SignDisplay.AUTO; in signDisplay()
339 return SignDisplay.ALWAYS; in signDisplay()
341 return SignDisplay.NEVER; in signDisplay()
343 return SignDisplay.ACCOUNTING; in signDisplay()
345 return SignDisplay.ACCOUNTING_ALWAYS; in signDisplay()
347 return SignDisplay.EXCEPT_ZERO; in signDisplay()
349 return SignDisplay.ACCOUNTING_EXCEPT_ZERO; in signDisplay()
454 private static void signDisplay(SignDisplay value, StringBuilder sb) { in signDisplay()
[all …]
DNumberPropertyMapper.java20 import ohos.global.icu.number.NumberFormatter.SignDisplay;
230 macros.sign = properties.getSignAlwaysShown() ? SignDisplay.ALWAYS : SignDisplay.AUTO; in oldToNew()
259 … properties.getExponentSignAlwaysShown() ? SignDisplay.ALWAYS : SignDisplay.AUTO); in oldToNew()
DNumberFormatterSettings.java12 import ohos.global.icu.number.NumberFormatter.SignDisplay;
417 public T sign(SignDisplay style) { in sign()
599 macros.sign = (SignDisplay) current.value; in resolve()
DNumberFormatterImpl.java26 import ohos.global.icu.number.NumberFormatter.SignDisplay;
188 boolean isAccounting = macros.sign == SignDisplay.ACCOUNTING in macrosToMicroGenerator()
189 || macros.sign == SignDisplay.ACCOUNTING_ALWAYS in macrosToMicroGenerator()
190 || macros.sign == SignDisplay.ACCOUNTING_EXCEPT_ZERO; in macrosToMicroGenerator()
302 micros.sign = SignDisplay.AUTO; in macrosToMicroGenerator()
DNumberFormatter.java289 public static enum SignDisplay { enum in NumberFormatter
/third_party/node/deps/v8/src/objects/
Djs-number-format.cc95 enum class SignDisplay { enum
160 UNumberSignDisplay ToUNumberSignDisplay(SignDisplay sign_display, in ToUNumberSignDisplay()
163 case SignDisplay::AUTO: in ToUNumberSignDisplay()
169 case SignDisplay::NEVER: in ToUNumberSignDisplay()
171 case SignDisplay::ALWAYS: in ToUNumberSignDisplay()
177 case SignDisplay::EXCEPT_ZERO: in ToUNumberSignDisplay()
183 case SignDisplay::NEGATIVE: in ToUNumberSignDisplay()
1547 Maybe<SignDisplay> maybe_sign_display = Nothing<SignDisplay>(); in New()
1549 maybe_sign_display = GetStringOption<SignDisplay>( in New()
1552 {SignDisplay::AUTO, SignDisplay::NEVER, SignDisplay::ALWAYS, in New()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DMicroProps.java8 import ohos.global.icu.number.NumberFormatter.SignDisplay;
17 public SignDisplay sign;
DMacroProps.java12 import ohos.global.icu.number.NumberFormatter.SignDisplay;
34 public SignDisplay sign;
DMutablePatternModifier.java9 import ohos.global.icu.number.NumberFormatter.SignDisplay;
45 SignDisplay signDisplay;
95 public void setPatternAttributes(SignDisplay signDisplay, boolean perMille) { in setPatternAttributes()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMicroProps.java9 import com.ibm.icu.number.NumberFormatter.SignDisplay;
22 public SignDisplay sign;
DMutablePatternModifier.java8 import com.ibm.icu.number.NumberFormatter.SignDisplay;
43 SignDisplay signDisplay;
96 …public void setPatternAttributes(SignDisplay signDisplay, boolean perMille, boolean approximately)… in setPatternAttributes()
DMacroProps.java11 import com.ibm.icu.number.NumberFormatter.SignDisplay;
31 public SignDisplay sign;

12