Searched defs:radix (Results 1 - 25 of 82) sorted by relevance

1234

/external/chromium_org/third_party/icu/source/i18n/unicode/
H A Dnumsys.h93 * Create a numbering system using the specified radix, type, and description.
94 * @param radix The radix (base) for this numbering system.
101 static NumberingSystem* U_EXPORT2 createInstance(int32_t radix, UBool isAlgorithmic, const UnicodeString& description, UErrorCode& status );
120 * Returns the radix of this numbering system.
169 int32_t radix; member in class:NumberingSystem
173 void setRadix(int32_t radix);
/external/icu4c/i18n/unicode/
H A Dnumsys.h96 * Create a numbering system using the specified radix, type, and description.
97 * @param radix The radix (base) for this numbering system.
104 static NumberingSystem* U_EXPORT2 createInstance(int32_t radix, UBool isAlgorithmic, const UnicodeString& description, UErrorCode& status );
123 * Returns the radix of this numbering system.
172 int32_t radix; member in class:NumberingSystem
176 void setRadix(int32_t radix);
/external/chromium_org/third_party/icu/source/common/
H A Dustrfmt.c13 * 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 Dutil_props.cpp28 int8_t radix = 10; local
33 radix = 16;
38 radix = 8;
43 int32_t d = u_digit(rule.charAt(p++), radix);
49 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...]
/external/chromium_org/third_party/icu/source/i18n/
H A Desctrn.h25 * 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,
H A Dnfrule.h62 double getDivisor() const { return uprv_pow(radix, exponent); }
96 int32_t radix; member in class:NFRule
/external/dropbear/libtommath/
H A Dbn_mp_fread.c19 int mp_fread(mp_int *a, int radix, FILE *stream) argument
36 /* find y in the radix map */
37 for (y = 0; y < radix; y++) {
42 if (y == radix) {
47 if ((err = mp_mul_d(a, radix, a)) != MP_OKAY) {
H A Dbn_mp_fwrite.c18 int mp_fwrite(mp_int *a, int radix, FILE *stream) argument
23 if ((err = mp_radix_size(a, radix, &len)) != MP_OKAY) {
32 if ((err = mp_toradix(a, buf, radix)) != MP_OKAY) {
H A Dbn_mp_radix_size.c19 int mp_radix_size (mp_int * a, int radix, int *size) argument
28 if (radix == 2) {
33 /* make sure the radix is in range */
34 if (radix < 2 || radix > 64) {
61 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
H A Dbn_mp_read_radix.c18 /* read a string [ASCII] in a given radix */
19 int mp_read_radix (mp_int * a, const char *str, int radix) argument
27 /* make sure the radix is ok */
28 if (radix < 2 || radix > 64) {
47 /* if the radix < 36 the conversion is case insensitive
51 ch = (char) ((radix < 36) ? toupper (*str) : *str);
59 * and is less than the given radix add it
62 if (y < radix) {
63 if ((res = mp_mul_d (a, (mp_digit) radix,
[all...]
H A Dbn_mp_toradix.c18 /* stores a bignum as a ASCII string in a given radix (2..64) */
19 int mp_toradix (mp_int * a, char *str, int radix) argument
26 /* check range of the radix */
27 if (radix < 2 || radix > 64) {
51 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
H A Dbn_mp_toradix_n.c18 /* stores a bignum as a ASCII string in a given radix (2..64)
22 int mp_toradix_n(mp_int * a, char *str, int radix, int maxlen) argument
29 /* check range of the maxlen, radix */
30 if (maxlen < 2 || radix < 2 || radix > 64) {
64 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
/external/guava/guava/src/com/google/common/primitives/
H A DAndroidInteger.java41 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...]
/external/icu4c/common/
H A Dustrfmt.c13 * 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 Dutil_props.cpp30 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...]
/external/icu4c/i18n/
H A Desctrn.h25 * 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,
H A Dnfrule.h62 double getDivisor() const { return uprv_pow(radix, exponent); }
96 int32_t radix; member in class:NFRule
/external/chromium_org/third_party/icu/source/tools/genrb/
H A Drbutil.c66 itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad) argument
82 digit = (int)(i % radix);
84 i=i/radix;
/external/icu4c/tools/genrb/
H A Drbutil.c66 itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad) argument
82 digit = (int)(i % radix);
84 i=i/radix;
/external/v8/src/
H A Dconversions.h48 inline bool isDigit(int x, int radix) { argument
49 return (x >= '0' && x <= '9' && x < '0' + radix)
50 || (radix > 10 && x >= 'a' && x < 'a' + radix - 10)
51 || (radix > 10 && x >= 'A' && x < 'A' + radix - 10);
144 char* DoubleToRadixCString(double value, int radix);
H A Dconversions-inl.h133 // Parsing integers with radix 2, 4, 8, 16, 32. Assumes current != end.
150 const int radix = (1 << radix_log_2); local
154 if (*current >= '0' && *current <= '9' && *current < '0' + radix) {
156 } else if (radix > 10 && *current >= 'a' && *current < 'a' + radix - 10) {
158 } else if (radix > 10 && *current >= 'A' && *current < 'A' + radix - 10) {
169 number = number * radix + digit;
188 if (current == end || !isDigit(*current, radix)) break;
241 int radix) {
[all...]
H A Dv8conversions.cc109 int radix) {
114 return InternalStringToInt(unicode_cache, begin, end, radix);
118 return InternalStringToInt(unicode_cache, begin, end, radix);
124 radix);
107 StringToInt(UnicodeCache* unicode_cache, String* str, int radix) argument
/external/chromium_org/v8/src/
H A Dconversions-inl.h138 // Parsing integers with radix 2, 4, 8, 16, 32. Assumes current != end.
155 const int radix = (1 << radix_log_2); local
159 if (*current >= '0' && *current <= '9' && *current < '0' + radix) {
161 } else if (radix > 10 && *current >= 'a' && *current < 'a' + radix - 10) {
163 } else if (radix > 10 && *current >= 'A' && *current < 'A' + radix - 10) {
174 number = number * radix + digit;
193 if (current == end || !isDigit(*current, radix)) break;
244 int radix) {
[all...]
H A Dconversions.h48 inline bool isDigit(int x, int radix) { argument
49 return (x >= '0' && x <= '9' && x < '0' + radix)
50 || (radix > 10 && x >= 'a' && x < 'a' + radix - 10)
51 || (radix > 10 && x >= 'A' && x < 'A' + radix - 10);
154 char* DoubleToRadixCString(double value, int radix);
H A Dv8conversions.cc111 int radix) {
117 return InternalStringToInt(unicode_cache, begin, end, radix);
121 return InternalStringToInt(unicode_cache, begin, end, radix);
128 radix);
109 StringToInt(UnicodeCache* unicode_cache, String* str, int radix) argument

Completed in 3408 milliseconds

1234