Home
last modified time | relevance | path

Searched refs:IntegerWidth (Results 1 – 25 of 32) sorted by relevance

12

/external/icu/android_icu4j/src/main/java/android/icu/number/
DIntegerWidth.java18 public class IntegerWidth { class
20 /* package-private */ static final IntegerWidth DEFAULT = new IntegerWidth(1, -1);
25 private IntegerWidth(int minInt, int maxInt) { in IntegerWidth() method in IntegerWidth
43 public static IntegerWidth zeroFillTo(int minInt) { in zeroFillTo()
47 return new IntegerWidth(minInt, -1); in zeroFillTo()
67 public IntegerWidth truncateAt(int maxInt) { in truncateAt()
71 return new IntegerWidth(minInt, maxInt); in truncateAt()
75 return new IntegerWidth(minInt, -1); in truncateAt()
DNumberPropertyMapper.java206 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
247 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
251 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
DNumberFormatterSettings.java301 public T integerWidth(IntegerWidth style) { in integerWidth()
608 macros.integerWidth = (IntegerWidth) current.value; in resolve()
DNumberSkeletonImpl.java1190 macros.integerWidth = IntegerWidth.zeroFillTo(minInt); in parseIntegerWidthOption()
1192 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption()
1380 if (macros.integerWidth.equals(IntegerWidth.DEFAULT)) { in integerWidth()
DNumberFormatterImpl.java293 micros.integerWidth = IntegerWidth.DEFAULT; in macrosToMicroGenerator()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DIntegerWidth.java17 public class IntegerWidth { class
19 /* package-private */ static final IntegerWidth DEFAULT = new IntegerWidth(1, -1);
24 private IntegerWidth(int minInt, int maxInt) { in IntegerWidth() method in IntegerWidth
43 public static IntegerWidth zeroFillTo(int minInt) { in zeroFillTo()
47 return new IntegerWidth(minInt, -1); in zeroFillTo()
68 public IntegerWidth truncateAt(int maxInt) { in truncateAt()
72 return new IntegerWidth(minInt, maxInt); in truncateAt()
76 return new IntegerWidth(minInt, -1); in truncateAt()
DNumberPropertyMapper.java205 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
246 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
250 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
DNumberFormatterSettings.java307 public T integerWidth(IntegerWidth style) { in integerWidth()
621 macros.integerWidth = (IntegerWidth) current.value; in resolve()
DNumberSkeletonImpl.java1189 macros.integerWidth = IntegerWidth.zeroFillTo(minInt); in parseIntegerWidthOption()
1191 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption()
1379 if (macros.integerWidth.equals(IntegerWidth.DEFAULT)) { in integerWidth()
/external/icu/icu4c/source/i18n/
Dnumber_integerwidth.cpp16 IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) { in IntegerWidth() function in IntegerWidth
22 IntegerWidth IntegerWidth::zeroFillTo(int32_t minInt) { in zeroFillTo()
30 IntegerWidth IntegerWidth::truncateAt(int32_t maxInt) { in truncateAt()
42 void IntegerWidth::apply(impl::DecimalQuantity& quantity, UErrorCode& status) const { in apply()
57 bool IntegerWidth::operator==(const IntegerWidth& other) const { in operator ==()
Dnumber_microprops.h31 IntegerWidth integerWidth;
Dnumber_mapper.cpp164 macros.integerWidth = IntegerWidth( in oldToNew()
208 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
212 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
Dnumber_fluent.cpp170 Derived NumberFormatterSettings<Derived>::integerWidth(const IntegerWidth& style) const& { in integerWidth()
177 Derived NumberFormatterSettings<Derived>::integerWidth(const IntegerWidth& style)&& { in integerWidth()
Dnumber_skeletons.cpp1212 macros.integerWidth = IntegerWidth::zeroFillTo(minInt); in parseIntegerWidthOption()
1214 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption()
1440 macros.integerWidth == IntegerWidth::standard()) { in integerWidth()
/external/icu/icu4c/source/i18n/unicode/
Dnumberformatter.h107 class IntegerWidth; variable
954 class U_I18N_API IntegerWidth : public UMemory {
967 static IntegerWidth zeroFillTo(int32_t minInt);
980 IntegerWidth truncateAt(int32_t maxInt);
993 IntegerWidth(impl::digits_t minInt, impl::digits_t maxInt, bool formatFailIfMoreThanMaxDigits);
995 IntegerWidth(UErrorCode errorCode) { // NOLINT in IntegerWidth() function
1000 IntegerWidth() { // NOLINT in IntegerWidth() function
1005 static IntegerWidth standard() { in standard()
1006 return IntegerWidth::zeroFillTo(1); in standard()
1023 bool operator==(const IntegerWidth& other) const;
[all …]
/external/mesa3d/src/gallium/targets/haiku-softpipe/
DSoftwareRenderer.cpp73 fWidth = (GLint)b.IntegerWidth(); in SoftwareRenderer()
171 != fBitmap->Bounds().IntegerWidth()) { in SwapBuffers()
177 uint8 bytesPerPixel = bytesPerRow / fBitmap->Bounds().IntegerWidth(); in SwapBuffers()
247 memcpy(d, s, dr.IntegerWidth() * 4); in CopyPixelsOut()
289 memcpy(d, s, dr.IntegerWidth() * 4); in CopyPixelsIn()
355 fBitmap->Bounds().IntegerWidth(), fBitmap->Bounds().IntegerHeight()); in _AllocateBitmap()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DMicroProps.java6 import android.icu.number.IntegerWidth;
21 public IntegerWidth integerWidth;
DMacroProps.java9 import android.icu.number.IntegerWidth;
31 public IntegerWidth integerWidth;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMicroProps.java5 import com.ibm.icu.number.IntegerWidth;
17 public IntegerWidth integerWidth;
DMacroProps.java8 import com.ibm.icu.number.IntegerWidth;
27 public IntegerWidth integerWidth;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java38 import android.icu.number.IntegerWidth;
929 …ter.with().precision(Precision.fixedSignificantDigits(1)).integerWidth(IntegerWidth.zeroFillTo(0)), in roundingFigures()
937 …ter.with().precision(Precision.fixedSignificantDigits(1)).integerWidth(IntegerWidth.zeroFillTo(3)), in roundingFigures()
1478 NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(1)), in integerWidth()
1493 NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(0)), in integerWidth()
1508 NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(3)), in integerWidth()
1523 NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(1).truncateAt(3)), in integerWidth()
1538 NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(2).truncateAt(2)), in integerWidth()
2231 IntegerWidth.class.getDeclaredMethod("zeroFillTo", Integer.TYPE), in validRanges()
2232 IntegerWidth.class.getDeclaredMethod("truncateAt", Integer.TYPE), }; in validRanges()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java37 import com.ibm.icu.number.IntegerWidth;
926 …ter.with().precision(Precision.fixedSignificantDigits(1)).integerWidth(IntegerWidth.zeroFillTo(0)), in roundingFigures()
934 …ter.with().precision(Precision.fixedSignificantDigits(1)).integerWidth(IntegerWidth.zeroFillTo(3)), in roundingFigures()
1475 NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(1)), in integerWidth()
1490 NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(0)), in integerWidth()
1505 NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(3)), in integerWidth()
1520 NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(1).truncateAt(3)), in integerWidth()
1535 NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(2).truncateAt(2)), in integerWidth()
2228 IntegerWidth.class.getDeclaredMethod("zeroFillTo", Integer.TYPE), in validRanges()
2229 IntegerWidth.class.getDeclaredMethod("truncateAt", Integer.TYPE), }; in validRanges()
[all …]
/external/mesa3d/src/gallium/state_trackers/hgl/
Dbitmap_wrapper.cpp58 uint32 w = bb->Bounds().IntegerWidth() + 1; in get_bitmap_size()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_api.cpp942 .integerWidth(IntegerWidth::zeroFillTo(3)), in roundingFigures()
951 .integerWidth(IntegerWidth::zeroFillTo(0)), in roundingFigures()
1494 NumberFormatter::with().integerWidth(IntegerWidth::zeroFillTo(1)), in integerWidth()
1509 NumberFormatter::with().integerWidth(IntegerWidth::zeroFillTo(0)), in integerWidth()
1524 NumberFormatter::with().integerWidth(IntegerWidth::zeroFillTo(3)), in integerWidth()
1539 NumberFormatter::with().integerWidth(IntegerWidth::zeroFillTo(1).truncateAt(3)), in integerWidth()
1554 NumberFormatter::with().integerWidth(IntegerWidth::zeroFillTo(2).truncateAt(2)), in integerWidth()
2349 VALID_RANGE_ONEARG(integerWidth, IntegerWidth::zeroFillTo, 0); in validRanges()
2350 VALID_RANGE_ONEARG(integerWidth, IntegerWidth::zeroFillTo(0).truncateAt, -1); in validRanges()
/external/mesa3d/src/hgl/
DGLView.cpp208 glViewport(0, 0, Bounds().IntegerWidth(), Bounds().IntegerHeight()); in AttachedToWindow()
210 fRenderer->FrameResized(Bounds().IntegerWidth(), in AttachedToWindow()

12