/external/chromium_org/v8/test/mjsunit/regress/ |
H A D | regress-parseint.js | 7 function f(string, radix) { 8 // Use a phi to force radix into heap number representation. 9 radix = (radix == 0) ? radix : (radix >> 0); 10 if (radix != 2) return NaN; 11 return %StringParseInt(string, radix);
|
H A D | regress-1246.js | 29 // the given radix is not a SMI. 39 // Giving these values as the radix argument triggers radix detection. 43 // These values will result in an integer radix outside of the valid range. 53 var radix = radix_detect[i]; 54 assertEquals(NaN, parseInt("", radix)); 55 assertEquals(23, parseInt("23", radix)); 56 assertEquals(0xaf, parseInt("0xaf", radix)); 57 assertEquals(NaN, parseInt("af", radix)); 61 var radix [all...] |
/external/guava/guava/src/com/google/common/primitives/ |
H A D | AndroidInteger.java | 41 static Integer tryParse(String string, int radix) { argument 43 checkArgument(radix >= Character.MIN_RADIX, 44 "Invalid radix %s, min radix is %s", radix, Character.MIN_RADIX); 45 checkArgument(radix <= Character.MAX_RADIX, 46 "Invalid radix %s, max radix is %s", radix, Character.MAX_RADIX); 55 return tryParse(string, i, radix, negativ 59 tryParse(String string, int offset, int radix, boolean negative) argument [all...] |
H A D | UnsignedLongs.java | 248 * Returns the unsigned {@code long} value represented by a string with the given radix. 251 * @param radix the radix to use while parsing {@code s} 253 * with the given radix, or if {@code radix} is not between {@link Character#MIN_RADIX} 256 public static long parseUnsignedLong(String s, int radix) { argument 261 if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) { 262 throw new NumberFormatException("illegal radix:" + radix); 287 overflowInParse(long current, int digit, int radix) argument 319 toString(long x, int radix) argument [all...] |
/external/chromium_org/third_party/icu/source/common/ |
H A D | ustrfmt.h | 14 uprv_itou (UChar * buffer, int32_t capacity, uint32_t i, uint32_t radix, int32_t minwidth);
|
H A D | ustrfmt.c | 13 * Fills in a UChar* string with the radix-based representation of a 20 * @param radix the radix from 2..36 29 uint32_t i, uint32_t radix, int32_t minwidth) 37 digit = (int)(i % radix); 39 i=i/radix; 28 uprv_itou(UChar * buffer, int32_t capacity, uint32_t i, uint32_t radix, int32_t minwidth) argument
|
H A D | util_props.cpp | 30 int8_t radix = 10; local 35 radix = 16; 40 radix = 8; 45 int32_t d = u_digit(rule.charAt(p++), radix); 51 int32_t v = (value * radix) + d; 178 * @param radix the radix in which to parse; must be >= 2 and <= 186 int32_t& pos, int8_t radix) { 188 // assert(radix >= 2); 189 // assert(radix < 185 parseNumber(const UnicodeString& text, int32_t& pos, int8_t radix) argument [all...] |
H A D | cstring.c | 149 * Takes a int32_t and fills in a char* string with that number "radix"-based. 155 T_CString_integerToString(char* buffer, int32_t v, int32_t radix) argument 163 U_ASSERT(radix>=2 && radix<=16); 165 if(v<0 && radix == 10) { 174 digit = (uint8_t)(uval % radix); 176 uval = uval / radix; 188 * Takes a int64_t and fills in a char* string with that number "radix"-based. 193 T_CString_int64ToString(char* buffer, int64_t v, uint32_t radix) argument 201 U_ASSERT(radix> 225 T_CString_stringToInteger(const char *integerString, int32_t radix) argument [all...] |
/external/chromium_org/third_party/icu/source/tools/genrb/ |
H A D | rbutil.h | 25 int32_t itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad);
|
/external/icu/icu4c/source/common/ |
H A D | ustrfmt.h | 14 uprv_itou (UChar * buffer, int32_t capacity, uint32_t i, uint32_t radix, int32_t minwidth);
|
H A D | ustrfmt.c | 13 * Fills in a UChar* string with the radix-based representation of a 20 * @param radix the radix from 2..36 29 uint32_t i, uint32_t radix, int32_t minwidth) 37 digit = (int)(i % radix); 39 i=i/radix; 28 uprv_itou(UChar * buffer, int32_t capacity, uint32_t i, uint32_t radix, int32_t minwidth) argument
|
H A D | util_props.cpp | 30 int8_t radix = 10; local 35 radix = 16; 40 radix = 8; 45 int32_t d = u_digit(rule.charAt(p++), radix); 51 int32_t v = (value * radix) + d; 178 * @param radix the radix in which to parse; must be >= 2 and <= 186 int32_t& pos, int8_t radix) { 188 // assert(radix >= 2); 189 // assert(radix < 185 parseNumber(const UnicodeString& text, int32_t& pos, int8_t radix) argument [all...] |
H A D | cstring.c | 149 * Takes a int32_t and fills in a char* string with that number "radix"-based. 155 T_CString_integerToString(char* buffer, int32_t v, int32_t radix) argument 163 U_ASSERT(radix>=2 && radix<=16); 165 if(v<0 && radix == 10) { 174 digit = (uint8_t)(uval % radix); 176 uval = uval / radix; 188 * Takes a int64_t and fills in a char* string with that number "radix"-based. 193 T_CString_int64ToString(char* buffer, int64_t v, uint32_t radix) argument 201 U_ASSERT(radix> 225 T_CString_stringToInteger(const char *integerString, int32_t radix) argument [all...] |
/external/icu/icu4c/source/tools/genrb/ |
H A D | rbutil.h | 25 int32_t itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad);
|
/external/libcxx/test/language.support/support.limits/limits/numeric.limits.members/ |
H A D | radix.pass.cpp | 12 // radix 21 static_assert(std::numeric_limits<T>::radix == expected, "radix test 1"); 22 static_assert(std::numeric_limits<const T>::radix == expected, "radix test 2"); 23 static_assert(std::numeric_limits<volatile T>::radix == expected, "radix test 3"); 24 static_assert(std::numeric_limits<const volatile T>::radix == expected, "radix test 4");
|
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/preprocs/nasm/ |
H A D | nasmlib.c | 23 long radix; local 53 radix = 16, r += 2; 55 radix = 16, r++; 57 radix = 16 , q--; 59 radix = 8 , q--; 61 radix = 2 , q--; 63 radix = 10; 76 /* Check for valid number of that radix */ 79 if (*p<'0' || (*p>'9' && *p<'A') || (digit = numvalue(*p)) >= radix) 90 switch (radix) { [all...] |
/external/guava/guava-tests/test/com/google/common/primitives/ |
H A D | UnsignedIntsTest.java | 118 for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) { 119 assertEquals((int) a, UnsignedInts.parseUnsignedInt(Long.toString(a, radix), radix)); 123 // loops through all legal radix values. 124 for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) { 125 // tests can successfully parse a number string with this radix [all...] |
/external/smali/smali/src/main/java/org/jf/smali/ |
H A D | LiteralTools.java | 53 int radix = 10; 65 radix = 16; 68 radix = 8; 75 byte maxValue = (byte)(Byte.MAX_VALUE / (radix / 2)); 78 digit = Character.digit(byteChars[position], radix); 82 shiftedResult = (byte)(result * radix); 123 int radix = 10; 135 radix = 16; 138 radix = 8; 145 short maxValue = (short)(Short.MAX_VALUE / (radix / [all...] |
/external/qemu/distrib/sdl-1.2.15/src/stdlib/ |
H A D | SDL_string.c | 33 static size_t SDL_ScanLong(const char *text, int radix, long *valuep) argument 43 if ( radix == 16 && SDL_strncmp(text, "0x", 2) == 0 ) { 50 } else if ( radix == 16 && SDL_isupperhex(*text) ) { 52 } else if ( radix == 16 && SDL_islowerhex(*text) ) { 57 value *= radix; 73 static size_t SDL_ScanUnsignedLong(const char *text, int radix, unsigned long *valuep) argument 78 if ( radix == 16 && SDL_strncmp(text, "0x", 2) == 0 ) { 85 } else if ( radix == 16 && SDL_isupperhex(*text) ) { 87 } else if ( radix == 16 && SDL_islowerhex(*text) ) { 92 value *= radix; 104 SDL_ScanUintPtrT(const char *text, int radix, uintptr_t *valuep) argument 136 SDL_ScanLongLong(const char *text, int radix, Sint64 *valuep) argument 176 SDL_ScanUnsignedLongLong(const char *text, int radix, Uint64 *valuep) argument 457 SDL_ltoa(long value, char *string, int radix) argument 487 SDL_ultoa(unsigned long value, char *string, int radix) argument 555 SDL_lltoa(Sint64 value, char *string, int radix) argument 585 SDL_ulltoa(Uint64 value, char *string, int radix) argument 749 int radix = 10; local 1013 SDL_PrintLong(char *text, long value, int radix, size_t maxlen) argument 1027 SDL_PrintUnsignedLong(char *text, unsigned long value, int radix, size_t maxlen) argument 1042 SDL_PrintLongLong(char *text, Sint64 value, int radix, size_t maxlen) argument 1056 SDL_PrintUnsignedLongLong(char *text, Uint64 value, int radix, size_t maxlen) argument 1127 int radix = 10; local [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
H A D | nfrs.h | 81 // raise radix to the power exponent, only non-negative exponents 82 int64_t util64_pow(int32_t radix, uint32_t exponent); 85 uint32_t util64_tou(int64_t n, UChar* buffer, uint32_t buflen, uint32_t radix = 10, UBool raw = FALSE); 88 int64_t util64_utoi(const UChar* str, uint32_t radix = 10); 89 uint32_t util64_toa(int64_t n, char* buffer, uint32_t buflen, uint32_t radix = 10, UBool raw = FALSE); 90 int64_t util64_atoi(const char* str, uint32_t radix);
|
H A D | esctrn.h | 25 * empty, a radix, typically 16 or 10, a minimum digit count, 59 * The radix to display the number in. Typically 16 or 10. Must 62 int32_t radix; member in class:EscapeTransliterator 80 * prefix, suffix, radix, and minDigits of this object are used 99 int32_t radix, int32_t minDigits,
|
/external/icu/icu4c/source/i18n/ |
H A D | nfrs.h | 81 // raise radix to the power exponent, only non-negative exponents 82 int64_t util64_pow(int32_t radix, uint32_t exponent); 85 uint32_t util64_tou(int64_t n, UChar* buffer, uint32_t buflen, uint32_t radix = 10, UBool raw = FALSE); 88 int64_t util64_utoi(const UChar* str, uint32_t radix = 10); 89 uint32_t util64_toa(int64_t n, char* buffer, uint32_t buflen, uint32_t radix = 10, UBool raw = FALSE); 90 int64_t util64_atoi(const char* str, uint32_t radix);
|
H A D | esctrn.h | 25 * empty, a radix, typically 16 or 10, a minimum digit count, 59 * The radix to display the number in. Typically 16 or 10. Must 62 int32_t radix; member in class:EscapeTransliterator 80 * prefix, suffix, radix, and minDigits of this object are used 99 int32_t radix, int32_t minDigits,
|
/external/chromium_org/v8/src/ |
H A D | conversions-inl.h | 128 // Parsing integers with radix 2, 4, 8, 16, 32. Assumes current != end. 145 const int radix = (1 << radix_log_2); local 149 if (*current >= '0' && *current <= '9' && *current < '0' + radix) { 151 } else if (radix > 10 && *current >= 'a' && *current < 'a' + radix - 10) { 153 } else if (radix > 10 && *current >= 'A' && *current < 'A' + radix - 10) { 164 number = number * radix + digit; 183 if (current == end || !isDigit(*current, radix)) break; 234 int radix) { [all...] |
H A D | conversions.h | 30 inline bool isDigit(int x, int radix) { argument 31 return (x >= '0' && x <= '9' && x < '0' + radix) 32 || (radix > 10 && x >= 'a' && x < 'a' + radix - 10) 33 || (radix > 10 && x >= 'A' && x < 'A' + radix - 10); 128 int radix); 133 int radix); 151 char* DoubleToRadixCString(double value, int radix);
|