/external/icu/icu4c/source/i18n/ |
D | precision.cpp | 134 FixedPrecision::handleNonNumeric(DigitList &value, VisibleDigits &digits) { in handleNonNumeric() argument 136 digits.setNaN(); in handleNonNumeric() 140 digits.setInfinite(); in handleNonNumeric() 142 digits.setNegative(); in handleNonNumeric() 152 VisibleDigits &digits, in initVisibleDigits() argument 155 return digits; in initVisibleDigits() 157 digits.clear(); in initVisibleDigits() 158 if (handleNonNumeric(value, digits)) { in initVisibleDigits() 159 return digits; in initVisibleDigits() 162 digits.setNegative(); in initVisibleDigits() [all …]
|
D | decNumber.c | 387 dn->digits=decGetDigits(dn->lsu, up-dn->lsu); in uprv_decNumberFromUInt32() 407 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0) ; /* bad */ in uprv_decNumberToInt32() 420 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToInt32() 442 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0 in uprv_decNumberToUInt32() 456 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToUInt32() 601 if (d>set->digits-1) { in uprv_decNumberFromString() 605 if (d>set->digits) break; in uprv_decNumberFromString() 672 if (d<=set->digits) res=dn->lsu; /* fits into supplied decNumber */ in uprv_decNumberFromString() 715 dn->digits=d; in uprv_decNumberFromString() 718 if (d>set->digits) { in uprv_decNumberFromString() [all …]
|
D | digitaffixesandpadding.cpp | 44 VisibleDigitsWithExponent digits; in formatInt32() local 46 (int64_t) value, digits, status); in formatInt32() 48 digits, in formatInt32() 87 const VisibleDigitsWithExponent &digits, in format() argument 98 if (!digits.isNaN()) { in format() 99 UBool bPositive = !digits.isNegative(); in format() 102 if (optPluralRules == NULL || digits.isInfinite()) { in format() 106 UnicodeString count(optPluralRules->select(digits)); in format() 113 formatter.format(digits, handler, appendTo); in format() 116 …int32_t codePointCount = countAffixChar32(prefix) + formatter.countChar32(digits) + countAffixChar… in format() [all …]
|
D | digitformatter.cpp | 110 const VisibleDigits &digits, in countChar32() argument 113 if (digits.isNaN()) { in countChar32() 116 if (digits.isInfinite()) { in countChar32() 121 digits.getInterval(), in countChar32() 127 const VisibleDigitsWithExponent &digits, in countChar32() argument 129 if (digits.isNaN()) { in countChar32() 132 if (digits.isInfinite()) { in countChar32() 135 const VisibleDigits *exponent = digits.getExponent(); in countChar32() 140 digits.getMantissa().getInterval(), in countChar32() 144 *exponent, digits.getMantissa().getInterval(), options); in countChar32() [all …]
|
D | digitlst.cpp | 72 fContext.digits = fStorage.getCapacity(); in DigitList() 111 fContext.digits = fStorage.getCapacity(); in operator =() 143 c.digits = 1; in operator ==() 159 int32_t savedDigits = fContext.digits; in compare() 160 fContext.digits = 1; in compare() 162 fContext.digits = savedDigits; in compare() 294 int32_t adjustedDigits = fDecNumber->digits; in setDecimalAt() 309 return fDecNumber->exponent + fDecNumber->digits; in getDecimalAt() 314 U_ASSERT(c <= fContext.digits); in setCount() 321 fDecNumber->digits = c; in setCount() [all …]
|
D | precision.h | 130 VisibleDigits &digits, 142 VisibleDigits &digits, 154 VisibleDigits &digits, 168 VisibleDigitsWithExponent &digits, 180 VisibleDigitsWithExponent &digits, 192 VisibleDigitsWithExponent &digits, 227 VisibleDigits &digits, 234 static UBool handleNonNumeric(DigitList &value, VisibleDigits &digits); 285 VisibleDigitsWithExponent &digits, 297 VisibleDigitsWithExponent &digits, [all …]
|
D | decimfmtimpl.cpp | 278 DigitList digits; in maybeFormatWithDigitList() local 279 digits.set(number); in maybeFormatWithDigitList() 280 digits.mult(fMultiplier, status); in maybeFormatWithDigitList() 281 digits.shiftDecimalRight(fScale); in maybeFormatWithDigitList() 282 formatAdjustedDigitList(digits, appendTo, handler, status); in maybeFormatWithDigitList() 286 DigitList digits; in maybeFormatWithDigitList() local 287 digits.set(number); in maybeFormatWithDigitList() 288 digits.shiftDecimalRight(fScale); in maybeFormatWithDigitList() 289 formatAdjustedDigitList(digits, appendTo, handler, status); in maybeFormatWithDigitList() 301 DigitList digits; in maybeInitVisibleDigitsFromDigitList() local [all …]
|
D | valueformatter.cpp | 32 VisibleDigitsWithExponent &digits, in toVisibleDigitsWithExponent() argument 37 value, digits, status); in toVisibleDigitsWithExponent() 41 value, digits, status); in toVisibleDigitsWithExponent() 47 return digits; in toVisibleDigitsWithExponent() 53 VisibleDigitsWithExponent &digits, in toVisibleDigitsWithExponent() argument 58 value, digits, status); in toVisibleDigitsWithExponent() 62 value, digits, status); in toVisibleDigitsWithExponent() 68 return digits; in toVisibleDigitsWithExponent()
|
/external/icu/icu4c/source/test/intltest/ |
D | numberformat2test.cpp | 133 DigitList &digits, 146 const DigitList &digits); 150 const VisibleDigits &digits); 154 const VisibleDigitsWithExponent &digits); 158 const VisibleDigits &digits, 165 const VisibleDigitsWithExponent &digits, 184 int64_t expected, const VisibleDigits &digits); 186 double expected, const VisibleDigits &digits); 391 DigitList digits; in TestQuantize() local 394 digits.set(1); in TestQuantize() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DigitList.java | 77 public byte[] digits = new byte[MAX_LONG_DIGITS]; field in DigitList 80 if (digitCapacity > digits.length) { in ensureCapacity() 82 System.arraycopy(digits, 0, newDigits, 0, digitsToCopy); in ensureCapacity() 83 digits = newDigits; in ensureCapacity() 92 for (int i=0; i<count; ++i) if (digits[i] != '0') return false; in isZero() 114 digits[count++] = (byte) digit; in append() 118 return (byte) (digits[i] - '0'); in getDigitValue() 130 for (int i = 0; i < count; ++i) temp.append((char)(digits[i])); in getDouble() 155 temp.append((i < count) ? (char)(digits[i]) : '0'); in getLong() 194 text[i+1] = (char)digits[i]; [all …]
|
D | DecimalFormatSymbols.java | 157 if ( digits != null ) { in getZeroDigit() 158 return digits[0]; in getZeroDigit() 168 if ( digits != null ) { in getDigits() 169 return digits.clone(); in getDigits() 185 if ( digits != null ) { in getDigitsLocal() 186 return digits; in getDigitsLocal() 201 if ( digits != null ) { in setZeroDigit() 202 this.digits[0] = zeroDigit; in setZeroDigit() 205 this.digits[i] = (char)(zeroDigit+i); in setZeroDigit() 736 if ( other.digits == null ) { in equals() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DigitList.java | 76 public byte[] digits = new byte[MAX_LONG_DIGITS]; field in DigitList 79 if (digitCapacity > digits.length) { in ensureCapacity() 81 System.arraycopy(digits, 0, newDigits, 0, digitsToCopy); in ensureCapacity() 82 digits = newDigits; in ensureCapacity() 91 for (int i=0; i<count; ++i) if (digits[i] != '0') return false; in isZero() 113 digits[count++] = (byte) digit; in append() 117 return (byte) (digits[i] - '0'); in getDigitValue() 129 for (int i = 0; i < count; ++i) temp.append((char)(digits[i])); in getDouble() 154 temp.append((i < count) ? (char)(digits[i]) : '0'); in getLong() 193 text[i+1] = (char)digits[i]; [all …]
|
D | DecimalFormatSymbols.java | 166 if ( digits != null ) { in getZeroDigit() 167 return digits[0]; in getZeroDigit() 178 if ( digits != null ) { in getDigits() 179 return digits.clone(); in getDigits() 195 if ( digits != null ) { in getDigitsLocal() 196 return digits; in getDigitsLocal() 212 if ( digits != null ) { in setZeroDigit() 213 this.digits[0] = zeroDigit; in setZeroDigit() 216 this.digits[i] = (char)(zeroDigit+i); in setZeroDigit() 793 if ( other.digits == null ) { in equals() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
D | Utils.java | 60 return String.valueOf(zh.digits[(int)n]); in chineseNumber() 65 char[] digits = String.valueOf(n).toCharArray(); in chineseNumber() local 73 for (int i = digits.length, u = -1, l = -1; --i >= 0;) { in chineseNumber() 88 int d = digits[i] - '0'; in chineseNumber() 96 buf[--x] = zh.digits[0]; in chineseNumber() 102 buf[--x] = zh.digits[d]; in chineseNumber() 122 if (buf[i] == zh.digits[0] && !last) { in chineseNumber() 141 if (buf[i+1] != '*' && buf[i+1] != zh.digits[0]) { in chineseNumber() 142 buf[i] = zh.digits[0]; in chineseNumber() 154 if (buf[i] != zh.digits[2]) continue; in chineseNumber() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/ |
D | Utils.java | 64 return String.valueOf(zh.digits[(int)n]); in chineseNumber() 69 char[] digits = String.valueOf(n).toCharArray(); in chineseNumber() local 77 for (int i = digits.length, u = -1, l = -1; --i >= 0;) { in chineseNumber() 92 int d = digits[i] - '0'; in chineseNumber() 100 buf[--x] = zh.digits[0]; in chineseNumber() 106 buf[--x] = zh.digits[d]; in chineseNumber() 126 if (buf[i] == zh.digits[0] && !last) { in chineseNumber() 145 if (buf[i+1] != '*' && buf[i+1] != zh.digits[0]) { in chineseNumber() 146 buf[i] = zh.digits[0]; in chineseNumber() 158 if (buf[i] != zh.digits[2]) continue; in chineseNumber() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | DateNumberFormat.java | 32 private char[] digits; field in DateNumberFormat 84 digits = new char[10]; in initialize() 85 System.arraycopy(elems, 0, digits, 0, 10); in initialize() 86 zeroDigit = digits[0]; in initialize() 118 if (digits == null) { in setZeroDigit() 119 digits = new char[10]; in setZeroDigit() 121 digits[0] = zero; in setZeroDigit() 123 digits[i] = (char)(zero+i); in setZeroDigit() 128 return digits.clone(); in getDigits() 153 decimalBuf[index] = digits[(number % 10)]; in format() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | DateNumberFormat.java | 36 private char[] digits; field in DateNumberFormat 88 digits = new char[10]; in initialize() 89 System.arraycopy(elems, 0, digits, 0, 10); in initialize() 90 zeroDigit = digits[0]; in initialize() 122 if (digits == null) { in setZeroDigit() 123 digits = new char[10]; in setZeroDigit() 125 digits[0] = zero; in setZeroDigit() 127 digits[i] = (char)(zero+i); in setZeroDigit() 132 return digits.clone(); in getDigits() 157 decimalBuf[index] = digits[(number % 10)]; in format() [all …]
|
/external/protobuf/src/google/protobuf/stubs/ |
D | strutil.cc | 893 int digits; in FastUInt32ToBufferLeft() local 902 digits = u / 100000000; // 100,000,000 in FastUInt32ToBufferLeft() 903 ASCII_digits = two_ASCII_digits[digits]; in FastUInt32ToBufferLeft() 908 u -= digits * 100000000; // 100,000,000 in FastUInt32ToBufferLeft() 910 digits = u / 1000000; // 1,000,000 in FastUInt32ToBufferLeft() 911 ASCII_digits = two_ASCII_digits[digits]; in FastUInt32ToBufferLeft() 916 u -= digits * 1000000; // 1,000,000 in FastUInt32ToBufferLeft() 918 digits = u / 10000; // 10,000 in FastUInt32ToBufferLeft() 919 ASCII_digits = two_ASCII_digits[digits]; in FastUInt32ToBufferLeft() 924 u -= digits * 10000; // 10,000 in FastUInt32ToBufferLeft() [all …]
|
/external/opencv3/samples/python2/ |
D | digits.py | 55 digits = split2d(digits_img, (SZ, SZ)) 56 labels = np.repeat(np.arange(CLASS_N), len(digits)/CLASS_N) 57 return digits, labels 103 def evaluate_model(model, digits, samples, labels): argument 116 for img, flag in zip(digits, resp == labels): 123 def preprocess_simple(digits): argument 124 return np.float32(digits).reshape(-1, SZ*SZ) / 255.0 126 def preprocess_hog(digits): argument 128 for img in digits: 152 digits, labels = load_digits(DIGITS_FN) variable [all …]
|
/external/c-ares/ |
D | inet_net_pton.c | 80 static const char digits[] = "0123456789"; in inet_net_pton_ipv4() local 118 n = aresx_sztosi(strchr(digits, ch) - digits); in inet_net_pton_ipv4() 146 n = aresx_sztosi(strchr(digits, ch) - digits); in inet_net_pton_ipv4() 205 static const char digits[] = "0123456789"; in getbits() local 215 pch = strchr(digits, ch); in getbits() 220 val += aresx_sztosi(pch - digits); in getbits() 236 static const char digits[] = "0123456789"; in getv4() local 247 pch = strchr(digits, ch); in getv4() 252 val += aresx_sztoui(pch - digits); in getv4() 286 int digits; in inet_net_pton_ipv6() local [all …]
|
/external/mesa3d/src/mesa/drivers/dri/common/xmlpool/ |
D | gen_xmlpool.py | 48 digits = 0 61 digits = digits + 1 63 digits = 2 64 if digits >= 2: 71 digits = digits + 1 73 digits = 3 74 if digits >= 3: 86 digits = 1 88 digits = 2 92 digits = 0
|
/external/icu/icu4c/source/data/rbnf/ |
D | pl.txt | 85 "10: <%%spellout-fraction-digits<<;", 86 "100: <%%spellout-fraction-digits<<;", 87 "1000: <%%spellout-fraction-digits<<;", 88 "10000: <%%spellout-fraction-digits<<;", 89 "100000: <%%spellout-fraction-digits<<;", 90 "1000000: <%%spellout-fraction-digits<<;", 91 "10000000: <%%spellout-fraction-digits<<;", 92 "100000000: <%%spellout-fraction-digits<<;", 93 "1000000000: <%%spellout-fraction-digits<<;", 95 "%%spellout-fraction-digits:",
|
D | zh_Hant.txt | 13 "%digits-ordinal:", 22 "1001: =%%spellout-numbering-year-digits=;", 24 "2001: =%%spellout-numbering-year-digits=;", 26 "3001: =%%spellout-numbering-year-digits=;", 28 "4001: =%%spellout-numbering-year-digits=;", 30 "5001: =%%spellout-numbering-year-digits=;", 32 "6001: =%%spellout-numbering-year-digits=;", 34 "7001: =%%spellout-numbering-year-digits=;", 36 "8001: =%%spellout-numbering-year-digits=;", 38 "9001: =%%spellout-numbering-year-digits=;", [all …]
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | FixASCIIControlsReader.java | 41 private int digits = 0; field in FixASCIIControlsReader 138 digits = 0; in processChar() 144 digits = 1; in processChar() 157 digits++; in processChar() 158 if (digits <= 5) in processChar() 184 digits++; in processChar() 185 if (digits <= 4) in processChar()
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
D | JavaScriptTarget.java | 65 private void writeHexWithPadding(StringBuffer buf, String digits) { in writeHexWithPadding() argument 66 digits = digits.toUpperCase(); in writeHexWithPadding() 67 int padding = 8 - digits.length(); in writeHexWithPadding() 72 buf.append(digits); in writeHexWithPadding()
|