Home
last modified time | relevance | path

Searched refs:PadPosition (Results 1 – 23 of 23) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DPadder.java15 public enum PadPosition { enum in Padder
18 public static PadPosition fromOld(int old) { in fromOld()
21 return PadPosition.BEFORE_PREFIX; in fromOld()
23 return PadPosition.AFTER_PREFIX; in fromOld()
25 return PadPosition.BEFORE_SUFFIX; in fromOld()
27 return PadPosition.AFTER_SUFFIX; in fromOld()
53 PadPosition position;
55 public Padder(String paddingString, int targetWidth, PadPosition position) { in Padder()
59 this.position = (position == null) ? PadPosition.BEFORE_PREFIX : position; in Padder()
66 public static Padder codePoints(int cp, int targetWidth, PadPosition position) { in codePoints()
[all …]
DPatternStringParser.java6 import android.icu.impl.number.Padder.PadPosition;
197 public PadPosition paddingLocation = null;
271 consumePadding(state, result, PadPosition.BEFORE_PREFIX); in consumeSubpattern()
273 consumePadding(state, result, PadPosition.AFTER_PREFIX); in consumeSubpattern()
276 consumePadding(state, result, PadPosition.BEFORE_SUFFIX); in consumeSubpattern()
278 consumePadding(state, result, PadPosition.AFTER_SUFFIX); in consumeSubpattern()
284 PadPosition paddingLocation) { in consumePadding()
DDecimalFormatProperties.java19 import android.icu.impl.number.Padder.PadPosition;
111 private transient PadPosition padPosition;
516 public PadPosition getPadPosition() { in getPadPosition()
1093 public DecimalFormatProperties setPadPosition(PadPosition paddingLocation) { in setPadPosition()
DPatternStringUtils.java9 import android.icu.impl.number.Padder.PadPosition;
40 PadPosition paddingLocation = properties.getPadPosition(); in propertiesToPatternString()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DPadder.java8 public enum PadPosition { enum in Padder
11 public static PadPosition fromOld(int old) { in fromOld()
14 return PadPosition.BEFORE_PREFIX; in fromOld()
16 return PadPosition.AFTER_PREFIX; in fromOld()
18 return PadPosition.BEFORE_SUFFIX; in fromOld()
20 return PadPosition.AFTER_SUFFIX; in fromOld()
46 PadPosition position;
48 public Padder(String paddingString, int targetWidth, PadPosition position) { in Padder()
52 this.position = (position == null) ? PadPosition.BEFORE_PREFIX : position; in Padder()
59 public static Padder codePoints(int cp, int targetWidth, PadPosition position) { in codePoints()
[all …]
DPatternStringParser.java5 import com.ibm.icu.impl.number.Padder.PadPosition;
191 public PadPosition paddingLocation = null;
265 consumePadding(state, result, PadPosition.BEFORE_PREFIX); in consumeSubpattern()
267 consumePadding(state, result, PadPosition.AFTER_PREFIX); in consumeSubpattern()
270 consumePadding(state, result, PadPosition.BEFORE_SUFFIX); in consumeSubpattern()
272 consumePadding(state, result, PadPosition.AFTER_SUFFIX); in consumeSubpattern()
278 PadPosition paddingLocation) { in consumePadding()
DDecimalFormatProperties.java18 import com.ibm.icu.impl.number.Padder.PadPosition;
106 private transient PadPosition padPosition;
511 public PadPosition getPadPosition() { in getPadPosition()
1088 public DecimalFormatProperties setPadPosition(PadPosition paddingLocation) { in setPadPosition()
DPatternStringUtils.java8 import com.ibm.icu.impl.number.Padder.PadPosition;
38 PadPosition paddingLocation = properties.getPadPosition(); in propertiesToPatternString()
/external/icu/icu4c/source/i18n/
Dnumber_patternstring.cpp165 consumePadding(PadPosition::UNUM_PAD_BEFORE_PREFIX, status); in consumeSubpattern()
169 consumePadding(PadPosition::UNUM_PAD_AFTER_PREFIX, status); in consumeSubpattern()
175 consumePadding(PadPosition::UNUM_PAD_BEFORE_SUFFIX, status); in consumeSubpattern()
179 consumePadding(PadPosition::UNUM_PAD_AFTER_SUFFIX, status); in consumeSubpattern()
183 void ParsedPatternInfo::consumePadding(PadPosition paddingLocation, UErrorCode& status) { in consumePadding()
656 NullableValue<PadPosition> paddingLocation = properties.padPosition; in propertiesToPatternString()
787 case PadPosition::UNUM_PAD_BEFORE_PREFIX: in propertiesToPatternString()
793 case PadPosition::UNUM_PAD_AFTER_PREFIX: in propertiesToPatternString()
799 case PadPosition::UNUM_PAD_BEFORE_SUFFIX: in propertiesToPatternString()
803 case PadPosition::UNUM_PAD_AFTER_SUFFIX: in propertiesToPatternString()
Dnumber_decimfmtprops.h122 NullableValue<PadPosition> padPosition;
Dnumber_padding.cpp78 PadPosition position = fUnion.padding.fPosition; in padAndApply()
Dnumber_types.h30 typedef UNumberFormatPadPosition PadPosition; typedef
Dnumber_patternstring.h137 void consumePadding(PadPosition paddingLocation, UErrorCode& status);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DPropertiesTest.java34 import com.ibm.icu.impl.number.Padder.PadPosition;
287 } else if (type == PadPosition.class) { in getSampleValueForType()
290 PadPosition[] values = PadPosition.values(); in getSampleValueForType()
DNumberFormatterApiTest.java32 import com.ibm.icu.impl.number.Padder.PadPosition;
1367 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)), in padding()
1382 … NumberFormatter.with().padding(Padder.codePoints(0x101E4, 8, PadPosition.AFTER_PREFIX)), in padding()
1397 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)) in padding()
1413 … NumberFormatter.with().padding(Padder.codePoints('*', 10, PadPosition.AFTER_PREFIX)).unit(GBP) in padding()
1429 … NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.BEFORE_PREFIX)), in padding()
1437 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)), in padding()
1445 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.BEFORE_SUFFIX)) in padding()
1454 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_SUFFIX)) in padding()
1463 … NumberFormatter.with().padding(Padder.codePoints('0', 12, PadPosition.AFTER_PREFIX)).unit(GBP) in padding()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DPropertiesTest.java35 import android.icu.impl.number.Padder.PadPosition;
290 } else if (type == PadPosition.class) { in getSampleValueForType()
293 PadPosition[] values = PadPosition.values(); in getSampleValueForType()
DNumberFormatterApiTest.java33 import android.icu.impl.number.Padder.PadPosition;
1370 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)), in padding()
1385 … NumberFormatter.with().padding(Padder.codePoints(0x101E4, 8, PadPosition.AFTER_PREFIX)), in padding()
1400 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)) in padding()
1416 … NumberFormatter.with().padding(Padder.codePoints('*', 10, PadPosition.AFTER_PREFIX)).unit(GBP) in padding()
1432 … NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.BEFORE_PREFIX)), in padding()
1440 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)), in padding()
1448 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.BEFORE_SUFFIX)) in padding()
1457 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_SUFFIX)) in padding()
1466 … NumberFormatter.with().padding(Padder.codePoints('0', 12, PadPosition.AFTER_PREFIX)).unit(GBP) in padding()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_api.cpp1371 '*', 8, PadPosition::UNUM_PAD_AFTER_PREFIX)), in padding()
1388 0x101E4, 8, PadPosition::UNUM_PAD_AFTER_PREFIX)), in padding()
1405 '*', 8, PadPosition::UNUM_PAD_AFTER_PREFIX)) in padding()
1423 '*', 10, PadPosition::UNUM_PAD_AFTER_PREFIX)) in padding()
1442 '*', 8, PadPosition::UNUM_PAD_BEFORE_PREFIX)), in padding()
1452 '*', 8, PadPosition::UNUM_PAD_AFTER_PREFIX)), in padding()
1462 '*', 8, PadPosition::UNUM_PAD_BEFORE_SUFFIX)).unit(NoUnit::percent()), in padding()
1472 '*', 8, PadPosition::UNUM_PAD_AFTER_SUFFIX)).unit(NoUnit::percent()), in padding()
1482 '0', 12, PadPosition::UNUM_PAD_AFTER_PREFIX)) in padding()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDecimalFormat.java20 import android.icu.impl.number.Padder.PadPosition;
1624 PadPosition loc = properties.getPadPosition(); in getPadPosition()
1644 properties.setPadPosition(PadPosition.fromOld(padPos)); in setPadPosition()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDecimalFormat.java19 import com.ibm.icu.impl.number.Padder.PadPosition;
1737 PadPosition loc = properties.getPadPosition(); in getPadPosition()
1759 properties.setPadPosition(PadPosition.fromOld(padPos)); in setPadPosition()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatDataDrivenTest.java15 import android.icu.impl.number.Padder.PadPosition;
726 properties.setPadPosition(PadPosition.fromOld(tuple.padPosition)); in propertiesFromTuple()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatDataDrivenTest.java14 import com.ibm.icu.impl.number.Padder.PadPosition;
723 properties.setPadPosition(PadPosition.fromOld(tuple.padPosition)); in propertiesFromTuple()
/external/icu/icu4j/
Dcoverage-exclusion.txt467 …/formatters/PaddingFormat$PadPosition#valueOf:(Ljava/lang/String;)Lcom/ibm/icu/impl/number/formatt…