/libcore/luni/src/main/java/java/lang/ |
Long.java | 324 * radix. The ASCII character \u002d ('-') is recognized as the minus sign. 328 * @param radix 329 * the radix to use when parsing. 331 * {@code radix}. 334 * {@code radix < Character.MIN_RADIX || 335 * radix > Character.MAX_RADIX}. 337 public static long parseLong(String string, int radix) throws NumberFormatException { 338 if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) { 339 throw new NumberFormatException("Invalid radix: " + radix) [all...] |
Byte.java | 200 * radix. The ASCII character \u002d ('-') is recognized as the minus sign. 204 * @param radix 205 * the radix to use when parsing. 207 * {@code radix}. 210 * {@code radix < Character.MIN_RADIX || 211 * radix > Character.MAX_RADIX}. 213 public static byte parseByte(String string, int radix) throws NumberFormatException { 214 int intValue = Integer.parseInt(string, radix); 269 * radix. 273 * @param radix [all...] |
Short.java | 199 * radix. The ASCII character \u002d ('-') is recognized as the minus sign. 203 * @param radix 204 * the radix to use when parsing. 206 * {@code radix}. 209 * {@code radix < Character.MIN_RADIX || 210 * radix > Character.MAX_RADIX}. 212 public static short parseShort(String string, int radix) throws NumberFormatException { 213 int intValue = Integer.parseInt(string, radix); 238 * specified short value with radix 10. 265 * radix [all...] |
/libcore/luni/src/main/java/java/math/ |
Conversion.java | 30 * Holds the maximal exponent for each radix, so that radix<sup>digitFitInInt[radix]</sup> 53 static String bigInteger2String(BigInteger val, int radix) { 68 return Long.toString(v, radix); 70 if ((radix == 10) || (radix < Character.MIN_RADIX) 71 || (radix > Character.MAX_RADIX)) { 75 bitsForRadixDigit = Math.log(radix) / Math.log(2); 82 if (radix != 16) [all...] |
BigInteger.java | 190 * followed by a non-empty sequence of digits in the specified radix. Digits 191 * are interpreted as if by {@code Character.digit(char, radix)}. 194 * @param radix the base to be used for the conversion. 197 * representation of a {@code BigInteger} or if {@code radix < 198 * Character.MIN_RADIX} or {@code radix > Character.MAX_RADIX}. 200 public BigInteger(String value, int radix) { 204 if (radix == 10) { 208 } else if (radix == 16) { 213 if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) [all...] |
/external/srec/portable/src/ |
LCHAR.c | 250 * @param radix Base of value; must be in the range 2 - 36 252 static void pxtoa(unsigned long val, LCHAR *buf, unsigned radix, int is_neg) 272 digval = (unsigned)(val % radix); 273 val /= radix; /* get next digit */ 302 ESR_ReturnCode litostr(int value, LCHAR *string, size_t *len, int radix) 311 if (radix == 10 && value < 0) 312 pxtoa((unsigned long) value, buffer, radix, 1); 314 pxtoa((unsigned long) value, buffer, radix, 0); 331 ESR_ReturnCode lultostr(unsigned long value, LCHAR *string, size_t *len, int radix) 339 pxtoa(value, buffer, radix, 0) [all...] |
/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/ |
BigIntegerConstructorsTest.java | 30 * BigInteger(String val, int radix) 571 * Create a number from a string value and radix. 572 * Verify an exception thrown if a radix is out of range 576 int radix = 45; local 578 new BigInteger(value, radix); 585 * Create a number from a string value and radix. 590 int radix = 10; local 592 new BigInteger(value, radix); 599 * Create a number from a string value and radix. 604 int radix = 34 local 618 int radix = 20; local 631 int radix = 2; local 647 int radix = 8; local 663 int radix = 10; local 679 int radix = 16; local 695 int radix = 36; local 711 int radix = 36; local 727 int radix = 10; local [all...] |
/external/webkit/Source/JavaScriptCore/runtime/ |
NumberPrototype.cpp | 211 int radix; local 213 radix = radixValue.asInt32(); 215 radix = 10; 217 radix = static_cast<int>(radixValue.toInteger(exec)); // nan -> 0 219 if (radix == 10) 225 if (radix == 36) { 235 if (radix < 2 || radix > 36) 236 return throwVMError(exec, createRangeError(exec, "toString() radix argument must be between 2 and 36")); 238 // INT_MAX results in 1024 characters left of the dot with radix [all...] |
/external/icu4c/io/ |
ufmt_cmn.c | 52 int32_t radix) 56 return (UBool)(digitVal < radix && digitVal >= 0); 66 uint8_t radix, 75 digit = (uint32_t)(value % radix); 76 value = value / radix; 134 int8_t radix) 147 while(ufmt_isdigit(*buffer, radix) && buffer < limit) { 150 result *= radix;
|
/external/srec/portable/include/ |
LCHAR.h | 150 * @param radix Base of value; must be in the range 2 - 36 153 PORTABLE_API ESR_ReturnCode litostr(int value, LCHAR *string, size_t *len, int radix); 161 * @param radix Base of value; must be in the range 2 - 36 164 PORTABLE_API ESR_ReturnCode lultostr(unsigned long value, LCHAR *string, size_t *len, int radix);
|
/external/v8/src/ |
conversions.h | 111 double StringToInt(UnicodeCache* unicode_cache, String* str, int radix); 127 char* DoubleToRadixCString(double value, int radix);
|
/external/elfutils/src/ |
size.c | 55 { "radix", OPT_RADIX, "RADIX", 0, N_("Use RADIX for printing symbol values") }, 56 { NULL, 'd', NULL, 0, N_("Same as `--radix=10'") }, 57 { NULL, 'o', NULL, 0, N_("Same as `--radix=8'") }, 58 { NULL, 'x', NULL, 0, N_("Same as `--radix=16'") }, 115 /* Radix for printed numbers. */ 121 } radix; variable in typeref:enum:__anon5757 124 /* Mapping of radix and binary class to length. */ 218 radix = radix_decimal [all...] |
/external/icu4c/i18n/ |
esctrn.cpp | 96 this->radix = _radix; 109 radix(o.radix), 149 ICU_Utility::appendNumber(buf, c, supplementalHandler->radix, 161 ICU_Utility::appendNumber(buf, c, radix, minDigits);
|
numsys.cpp | 39 static const char gRadix[] = "radix"; 53 radix = 10; 150 int32_t radix = 10; local 160 radix = ures_getInt(nsCurrent,&status); 178 NumberingSystem* ns = NumberingSystem::createInstance(radix,isAlgorithmic,nsd,status); 191 return radix; 203 radix = r;
|
nfrule.cpp | 34 , radix(0) 134 && (rule1->baseValue % util64_pow(rule1->radix, rule1->exponent)) == 0) 171 // both rules have the same radix and exponent (i.e., the 173 rule2->radix = rule1->radix; 212 * in the description) and sets the rule's base value, radix, and 295 // now parsing the rule's radix. Again, accumulate digits 320 // tempValue now contain's the rule's radix. Set it 322 radix = (int32_t)val; 323 if (radix == 0) [all...] |
nfrule.h | 62 double getDivisor() const { return uprv_pow(radix, exponent); } 96 int32_t radix; member in class:NFRule
|
/external/icu4c/common/ |
util.cpp | 34 int32_t radix, int32_t minDigits) { 35 if (radix < 2 || radix > 36) { 36 // Bogus radix 47 while (nn >= radix) { 48 nn /= radix; 49 r *= radix; 60 r /= radix;
|
util.h | 32 * Append a number to the given UnicodeString in the given radix. 38 * @param radix a radix from 2 to 36 inclusive. 45 int32_t radix = 10, 205 * @param radix the radix in which to parse; must be >= 2 and <= 213 int32_t& pos, int8_t radix);
|
cstring.h | 81 /* Conversion from a digit to the character with radix base from 2-19 */ 106 T_CString_integerToString(char *buffer, int32_t n, int32_t radix); 109 T_CString_int64ToString(char *buffer, int64_t n, uint32_t radix); 112 T_CString_stringToInteger(const char *integerString, int32_t radix);
|
/external/chromium/base/ |
rand_util.cc | 31 COMPILE_ASSERT(std::numeric_limits<double>::radix == 2, otherwise_use_scalbn);
|
/external/chromium/googleurl/src/ |
url_canon_internal.h | 429 int _itoa_s(int value, char* buffer, size_t size_in_chars, int radix); 430 int _itow_s(int value, char16* buffer, size_t size_in_chars, int radix); 434 inline int _itoa_s(int value, char (&buffer)[N], int radix) { 435 return _itoa_s(value, buffer, N, radix); 439 inline int _itow_s(int value, char16 (&buffer)[N], int radix) { 440 return _itow_s(value, buffer, N, radix);
|
/external/pcre/ |
pcrecpp.cc | 726 int radix) { 732 long r = strtol(str, &end, radix); 743 int radix) { 750 unsigned long r = strtoul(str, &end, radix); 761 int radix) { 763 if (!parse_long_radix(str, n, &r, radix)) return false; // Could not parse 773 int radix) { 775 if (!parse_ulong_radix(str, n, &r, radix)) return false; // Could not parse 785 int radix) { 787 if (!parse_long_radix(str, n, &r, radix)) return false; // Could not pars [all...] |
/cts/tools/dasm/src/dasm/ |
Utils.java | 70 private static Number stringToSmallestInteger(String str, int radix) 72 long x = Long.parseLong(str, radix);
|
/external/qemu/distrib/sdl-1.2.12/include/ |
SDL_stdinc.h | 439 #define SDL_itoa(value, string, radix) SDL_ltoa((long)value, string, radix) 445 extern DECLSPEC char * SDLCALL SDL_ltoa(long value, char *string, int radix); 451 #define SDL_uitoa(value, string, radix) SDL_ultoa((long)value, string, radix) 457 extern DECLSPEC char * SDLCALL SDL_ultoa(unsigned long value, char *string, int radix); 477 extern DECLSPEC char* SDLCALL SDL_lltoa(Sint64 value, char *string, int radix); 483 extern DECLSPEC char* SDLCALL SDL_ulltoa(Uint64 value, char *string, int radix);
|
/prebuilt/darwin-x86/sdl/include/SDL/ |
SDL_stdinc.h | 439 #define SDL_itoa(value, string, radix) SDL_ltoa((long)value, string, radix) 445 extern DECLSPEC char * SDLCALL SDL_ltoa(long value, char *string, int radix); 451 #define SDL_uitoa(value, string, radix) SDL_ultoa((long)value, string, radix) 457 extern DECLSPEC char * SDLCALL SDL_ultoa(unsigned long value, char *string, int radix); 477 extern DECLSPEC char* SDLCALL SDL_lltoa(Sint64 value, char *string, int radix); 483 extern DECLSPEC char* SDLCALL SDL_ulltoa(Uint64 value, char *string, int radix);
|