Searched defs:digit (Results 1 - 25 of 35) sorted by relevance

12

/external/icu4c/common/
H A Dustrfmt.c32 int digit; local
37 digit = (int)(i % radix);
38 buffer[length++]=(UChar)(digit<=9?(0x0030+digit):(0x0030+digit+7));
H A Dcstring.c148 uint8_t digit; local
163 digit = (uint8_t)(uval % radix);
164 tbuf[--tbx] = (char)(T_CString_itosOffset(digit));
186 uint8_t digit; local
201 digit = (uint8_t)(uval % radix);
202 tbuf[--tbx] = (char)(T_CString_itosOffset(digit));
H A Dpunycode.c90 digitToBasic(int32_t digit, UBool uppercase) { argument
93 if(digit<26) {
95 return (char)(_CAPITAL_A+digit);
97 return (char)(_SMALL_A+digit);
100 return (char)((_ZERO_-26)+digit);
374 int32_t n, destLength, i, bias, basicLength, j, in, oldi, w, k, digit, t, local
450 digit=basicToDigit[(uint8_t)src[in++]];
451 if(digit<0) {
455 if(digit>(0x7fffffff-i)/w) {
461 i+=digit*
[all...]
H A Dutil.cpp57 int32_t digit = n / r; local
58 result.append(DIGITS[digit]);
59 n -= digit * r;
H A Duchar.c331 /* Checks if ch is a decimal digit. */
368 /* Checks if c is a letter or a decimal digit */
377 * Checks if c is alphabetic, or a decimal digit; implements UCHAR_POSIX_ALNUM.
674 /* ch is not a decimal digit, try latin letters */
692 u_forDigit(int32_t digit, int8_t radix) { argument
693 if((uint8_t)(radix-2)>(36-2) || (uint32_t)digit>=(uint32_t)radix) {
695 } else if(digit<10) {
696 return (UChar32)(0x30+digit);
698 return (UChar32)((0x61-10)+digit);
/external/icu4c/tools/genrb/
H A Drbutil.c72 int digit; local
82 digit = (int)(i % radix);
83 buffer[length++]= digits[digit];
/external/icu4c/i18n/
H A Ddigitlst.h76 * @param capacity The size of the digit list buffer
121 * @param digit The digit to be appended.
123 inline void append(char digit);
126 * Utility routine to get the value of the digit list
128 * @return the value of the digit list.
133 * Utility routine to get the value of the digit list
136 * @return the value of the digit list, return 0 if it is zero length
141 * Utility routine to get the value of the digit list
144 * @return the value of the digit lis
267 append(char digit) argument
[all...]
H A Dregexcmp.cpp999 // Scanned a digit from the lower value of an {lower,upper} interval
1011 // Scanned a digit from the upper value of an {lower,upper} interval
1252 // Loop once per digit, for max allowed number of digits in a back reference.
1253 int32_t digit = u_charDigitValue(c); local
1254 groupNum = groupNum * 10 + digit;
3703 // the three digit number would be > 0xff
3722 // The last digit made the number too big. Forget we saw it.
H A Dunesctrn.cpp228 int32_t digit = u_digit(ch, radix); local
229 if (digit < 0) {
233 u = (u * radix) + digit;
H A Dnfsubs.cpp1002 * If in "by digits" mode, fills in the substitution one decimal digit
1021 // pulling digits off the right one at a time, formatting each digit
1029 // // to true the first time we encounter a non-zero digit
1032 // int64_t digit = numberToFormat % 10;
1033 // if (digit != 0 || doZeros) {
1038 // getRuleSet()->format(digit, toInsertInto, _pos + getPos());
1107 // if we ARE in byDigits mode, parse the text one digit at a time
1115 int32_t digit; local
1125 digit = temp.getLong(status);
1126 // digit
[all...]
/external/icu4c/samples/numfmt/
H A Dutil.cpp35 uint32_t digit; local
37 digit = (number >> ((--digits) * 4)) & 0xF;
38 target += (UChar)(digit < 10 ? 0x30 + digit : 0x41 - 10 + digit);
/external/icu4c/io/
H A Dufmt_cmn.c71 uint32_t digit; local
75 digit = (uint32_t)(value % radix);
77 buffer[length++] = (UChar)(uselower ? TO_LC_DIGIT(digit)
78 : TO_UC_DIGIT(digit));
149 /* read the next digit */
/external/icu4c/test/intltest/
H A Dpunyref.c73 /* is undefined if flag is nonzero and digit d has no uppercase form. */
223 b, j, in, oldi, w, k, digit, t; local
260 digit = decode_digit(input[in++]);
261 if (digit >= base) return punycode_bad_input;
262 if (digit > (maxint - i) / w) return punycode_overflow;
263 i += digit * w;
266 if (digit < t) break;
H A Dconvtest.cpp664 hexDigit(uint8_t digit) { argument
665 return digit<=9 ? (char)('0'+digit) : (char)('a'-10+digit);
/external/ppp/pppd/plugins/pppoatm/
H A Dans.c179 int digit; local
183 digit = addr[i] & 0x0F;
184 *(buf++) = digit + (digit >= 10 ? '7' : '0');
186 digit = ((unsigned char) (addr[i])) >> 4;
187 *(buf++) = digit + (digit >= 10 ? '7' : '0');
/external/skia/src/utils/
H A DSkParse.cpp125 int digit; local
127 while ((digit = to_hex(*str)) >= 0)
131 n = (n << 4) | digit;
/external/stlport/stlport/stl/
H A D_ctype.h48 digit = _Locale_DIGIT, enumerator in enum:ctype_base::mask
51 alnum = alpha | digit,
/external/webkit/JavaScriptCore/runtime/
H A DJSGlobalObjectFunctions.cpp161 int digit = -1; local
164 digit = c - '0';
166 digit = c - 'A' + 10;
168 digit = c - 'a' + 10;
170 if (digit >= radix)
172 return digit;
187 int digit = parseDigit(*p, radix); local
188 number += digit * radixMultiplier;
233 int digit = parseDigit(data[p], radix); local
234 if (digit
[all...]
/external/openssl/crypto/ec/
H A Dec_mult.c188 * with the exception that the most significant digit may be only
189 * w-1 zeros away from that next non-zero digit.
228 r = OPENSSL_malloc(len + 1); /* modified wNAF may be one digit longer than binary representation
246 int digit = 0; local
256 digit = window_val - next_bit; /* -2^w < digit < 0 */
263 * so using a positive digit here will decrease
266 digit = window_val & (mask >> 1); /* 0 < digit < 2^w */
272 digit
664 int digit = wNAF[i][k]; local
[all...]
/external/webkit/WebCore/html/
H A DDateComponents.cpp119 int digit = *current - '0'; local
120 if (value > (INT_MAX - digit) / 10) // Check for overflow.
122 value = value * 10 + digit;
342 // 4 characters ('-' 'W' digit digit) are needed.
H A DHTMLTokenizer.cpp799 int digit; local
801 digit = cc - '0';
803 digit = (cc - 'A' + 10) & 0xF; // handle both upper and lower case without a branch
804 EntityUnicodeValue = EntityUnicodeValue * 16 + digit;
/external/grub/stage2/
H A Dchar_io.c867 unsigned int digit; local
869 digit = tolower (*ptr) - '0';
870 if (digit > 9)
872 digit -= 'a' - '0';
873 if (mult == 10 || digit > 5)
875 digit += 10;
879 if (myint > ((MAXINT - digit) / mult))
884 myint = (myint * mult) + digit;
/external/icu4c/test/cintltst/
H A Dbocu1tst.c753 hexDigit(uint8_t digit) { argument
754 return digit<=9 ? (char)('0'+digit) : (char)('a'-10+digit);
/external/icu4c/tools/makeconv/
H A Dgenmbcs.c106 hexDigit(uint8_t digit) { argument
107 return digit<=9 ? (char)('0'+digit) : (char)('a'-10+digit);
/external/v8/src/
H A Dscanner.cc646 int digit = HexValue(c0_); local
647 if (digit < 0) return Token::ILLEGAL;
648 value = value * 16 + digit;
673 // Prefix zero is only allowed if it's the only digit before
1100 ASSERT(IsDecimalDigit(c0_)); // the first digit of the number or the fraction
1108 ScanDecimalDigits(); // we know we have at least one digit
1121 // we must have at least one hex digit after 'x'/'X'
1159 // we must have at least one decimal digit after 'e'/'E'
1166 // not be an identifier start or a decimal digit; see ECMA-262
1167 // section 7.8.3, page 17 (note that we read only one decimal digit
[all...]

Completed in 310 milliseconds

12