/third_party/icu/vendor/double-conversion/upstream/double-conversion/ |
H A D | string-to-double.cc | 148 static bool isDigit(int x, int radix) { in isDigit() argument 149 return (x >= '0' && x <= '9' && x < '0' + radix) in isDigit() 150 || (radix > 10 && x >= 'a' && x < 'a' + radix - 10) in isDigit() 151 || (radix > 10 && x >= 'A' && x < 'A' + radix - 10); in isDigit() 160 // Returns true if 'c' is a decimal digit that is valid for the given radix. 163 // because it constant-propagated the radix and concluded that the last 168 static bool IsDecimalDigitForRadix(int c, int radix) { in IsDecimalDigitForRadix() argument 169 return '0' <= c && c <= '9' && (c - '0') < radix; in IsDecimalDigitForRadix() 173 IsDecimalDigitForRadix(int c, int radix) IsDecimalDigitForRadix() argument 184 IsCharacterDigitForRadix(int c, int radix, char a_character) IsCharacterDigitForRadix() argument 277 const int radix = (1 << radix_log_2); RadixStringToIeee() local [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | double-conversion-string-to-double.cpp | 169 static bool isDigit(int x, int radix) { in isDigit() argument 170 return (x >= '0' && x <= '9' && x < '0' + radix) in isDigit() 171 || (radix > 10 && x >= 'a' && x < 'a' + radix - 10) in isDigit() 172 || (radix > 10 && x >= 'A' && x < 'A' + radix - 10); in isDigit() 181 // Returns true if 'c' is a decimal digit that is valid for the given radix. 184 // because it constant-propagated the radix and concluded that the last 189 static bool IsDecimalDigitForRadix(int c, int radix) { in IsDecimalDigitForRadix() argument 190 return '0' <= c && c <= '9' && (c - '0') < radix; in IsDecimalDigitForRadix() 194 IsDecimalDigitForRadix(int c, int radix) IsDecimalDigitForRadix() argument 205 IsCharacterDigitForRadix(int c, int radix, char a_character) IsCharacterDigitForRadix() argument 298 const int radix = (1 << radix_log_2); RadixStringToIeee() local [all...] |
H A D | nfrs.cpp | 887 int64_t util64_atoi(const char* str, uint32_t radix) in util64_atoi() argument 889 if (radix > 36) { in util64_atoi() 890 radix = 36; in util64_atoi() 891 } else if (radix < 2) { in util64_atoi() 892 radix = 2; in util64_atoi() 894 int64_t lradix = radix; in util64_atoi() 903 while ((b = digitInfo[*str++]) && ((b &= 0x7f) < radix)) { in util64_atoi() 913 int64_t util64_utoi(const UChar* str, uint32_t radix) in util64_utoi() argument 915 if (radix > 36) { in util64_utoi() 916 radix in util64_utoi() 940 util64_toa(int64_t w, char* buf, uint32_t len, uint32_t radix, UBool raw) util64_toa() argument 986 util64_tou(int64_t w, UChar* buf, uint32_t len, uint32_t radix, UBool raw) util64_tou() argument [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | double-conversion-string-to-double.cpp | 169 static bool isDigit(int x, int radix) { in isDigit() argument 170 return (x >= '0' && x <= '9' && x < '0' + radix) in isDigit() 171 || (radix > 10 && x >= 'a' && x < 'a' + radix - 10) in isDigit() 172 || (radix > 10 && x >= 'A' && x < 'A' + radix - 10); in isDigit() 181 // Returns true if 'c' is a decimal digit that is valid for the given radix. 184 // because it constant-propagated the radix and concluded that the last 189 static bool IsDecimalDigitForRadix(int c, int radix) { in IsDecimalDigitForRadix() argument 190 return '0' <= c && c <= '9' && (c - '0') < radix; in IsDecimalDigitForRadix() 194 IsDecimalDigitForRadix(int c, int radix) IsDecimalDigitForRadix() argument 205 IsCharacterDigitForRadix(int c, int radix, char a_character) IsCharacterDigitForRadix() argument 298 const int radix = (1 << radix_log_2); RadixStringToIeee() local [all...] |
H A D | nfrs.cpp | 887 int64_t util64_atoi(const char* str, uint32_t radix) in util64_atoi() argument 889 if (radix > 36) { in util64_atoi() 890 radix = 36; in util64_atoi() 891 } else if (radix < 2) { in util64_atoi() 892 radix = 2; in util64_atoi() 894 int64_t lradix = radix; in util64_atoi() 903 while ((b = digitInfo[*str++]) && ((b &= 0x7f) < radix)) { in util64_atoi() 913 int64_t util64_utoi(const char16_t* str, uint32_t radix) in util64_utoi() argument 915 if (radix > 36) { in util64_utoi() 916 radix in util64_utoi() 940 util64_toa(int64_t w, char* buf, uint32_t len, uint32_t radix, UBool raw) util64_toa() argument 986 util64_tou(int64_t w, char16_t* buf, uint32_t len, uint32_t radix, UBool raw) util64_tou() argument [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | double-conversion-string-to-double.cpp | 169 static bool isDigit(int x, int radix) { in isDigit() argument 170 return (x >= '0' && x <= '9' && x < '0' + radix) in isDigit() 171 || (radix > 10 && x >= 'a' && x < 'a' + radix - 10) in isDigit() 172 || (radix > 10 && x >= 'A' && x < 'A' + radix - 10); in isDigit() 181 // Returns true if 'c' is a decimal digit that is valid for the given radix. 184 // because it constant-propagated the radix and concluded that the last 189 static bool IsDecimalDigitForRadix(int c, int radix) { in IsDecimalDigitForRadix() argument 190 return '0' <= c && c <= '9' && (c - '0') < radix; in IsDecimalDigitForRadix() 194 IsDecimalDigitForRadix(int c, int radix) IsDecimalDigitForRadix() argument 205 IsCharacterDigitForRadix(int c, int radix, char a_character) IsCharacterDigitForRadix() argument 298 const int radix = (1 << radix_log_2); RadixStringToIeee() local [all...] |
H A D | nfrs.cpp | 887 int64_t util64_atoi(const char* str, uint32_t radix) in util64_atoi() argument 889 if (radix > 36) { in util64_atoi() 890 radix = 36; in util64_atoi() 891 } else if (radix < 2) { in util64_atoi() 892 radix = 2; in util64_atoi() 894 int64_t lradix = radix; in util64_atoi() 903 while ((b = digitInfo[*str++]) && ((b &= 0x7f) < radix)) { in util64_atoi() 913 int64_t util64_utoi(const UChar* str, uint32_t radix) in util64_utoi() argument 915 if (radix > 36) { in util64_utoi() 916 radix in util64_utoi() 940 util64_toa(int64_t w, char* buf, uint32_t len, uint32_t radix, UBool raw) util64_toa() argument 986 util64_tou(int64_t w, UChar* buf, uint32_t len, uint32_t radix, UBool raw) util64_tou() argument [all...] |
/third_party/node/deps/v8/src/bigint/ |
H A D | tostring.cc | 54 // A variant of ToStringFormatter::BasecaseLast, specialized for a radix 56 template <int radix> 60 if (radix <= 10) { in BasecaseFixedLast() 61 *(--out) = '0' + (chunk % radix); in BasecaseFixedLast() 63 *(--out) = kConversionChars[chunk % radix]; in BasecaseFixedLast() 65 chunk /= radix; in BasecaseFixedLast() 70 // By making {radix} a compile-time constant and computing {chunk_divisor} 77 // specialized for a radix known at compile time. 78 template <digit_t radix> 80 constexpr uint8_t max_bits_per_char = kMaxBitsPerChar[radix]; in DivideByMagic() 121 ToStringFormatter(Digits X, int radix, bool sign, char* out, int chars_available, ProcessorImpl* processor) ToStringFormatter() argument [all...] |
H A D | bigint.h | 299 Status ToString(char* out, int* out_length, Digits X, int radix, bool sign); 342 int ToStringResultLength(Digits X, int radix, bool sign); 418 // whereas the final result will be slightly smaller (depending on {radix}). 431 ALWAYS_INLINE CharIt Parse(CharIt start, CharIt end, digit_t radix); 447 ALWAYS_INLINE CharIt ParsePowerTwo(CharIt start, CharIt end, digit_t radix); 499 digit_t radix) { in ParsePowerTwo() 500 radix_ = static_cast<uint8_t>(radix); in ParsePowerTwo() 501 const int char_bits = kCharBits[radix >> 2]; in ParsePowerTwo() 510 if (c > 127 || (d = bigint::kCharValue[c]) >= radix) { in ParsePowerTwo() 534 CharIt FromStringAccumulator::Parse(CharIt start, CharIt end, digit_t radix) { in Parse() argument 498 ParsePowerTwo(CharIt current, CharIt end, digit_t radix) ParsePowerTwo() argument [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | cstring.cpp | 151 * Takes a int32_t and fills in a char* string with that number "radix"-based. 157 T_CString_integerToString(char* buffer, int32_t v, int32_t radix) in T_CString_integerToString() argument 165 U_ASSERT(radix>=2 && radix<=16); in T_CString_integerToString() 167 if(v<0 && radix == 10) { in T_CString_integerToString() 176 digit = (uint8_t)(uval % radix); in T_CString_integerToString() 178 uval = uval / radix; in T_CString_integerToString() 190 * Takes a int64_t and fills in a char* string with that number "radix"-based. 195 T_CString_int64ToString(char* buffer, int64_t v, uint32_t radix) in T_CString_int64ToString() argument 203 U_ASSERT(radix> in T_CString_int64ToString() 227 T_CString_stringToInteger(const char *integerString, int32_t radix) T_CString_stringToInteger() argument [all...] |
H A D | util_props.cpp | 32 int8_t radix = 10; in parseInteger() local 37 radix = 16; in parseInteger() 42 radix = 8; in parseInteger() 47 int32_t d = u_digit(rule.charAt(p++), radix); in parseInteger() 53 int32_t v = (value * radix) + d; in parseInteger() 181 * @param radix the radix in which to parse; must be >= 2 and <= 189 int32_t& pos, int8_t radix) { in parseNumber() 191 // assert(radix >= 2); in parseNumber() 192 // assert(radix < in parseNumber() 188 parseNumber(const UnicodeString& text, int32_t& pos, int8_t radix) parseNumber() argument [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | cstring.cpp | 151 * Takes a int32_t and fills in a char* string with that number "radix"-based. 157 T_CString_integerToString(char* buffer, int32_t v, int32_t radix) in T_CString_integerToString() argument 165 U_ASSERT(radix>=2 && radix<=16); in T_CString_integerToString() 167 if(v<0 && radix == 10) { in T_CString_integerToString() 176 digit = (uint8_t)(uval % radix); in T_CString_integerToString() 178 uval = uval / radix; in T_CString_integerToString() 190 * Takes a int64_t and fills in a char* string with that number "radix"-based. 195 T_CString_int64ToString(char* buffer, int64_t v, uint32_t radix) in T_CString_int64ToString() argument 203 U_ASSERT(radix> in T_CString_int64ToString() 227 T_CString_stringToInteger(const char *integerString, int32_t radix) T_CString_stringToInteger() argument [all...] |
H A D | util_props.cpp | 32 int8_t radix = 10; in parseInteger() local 37 radix = 16; in parseInteger() 42 radix = 8; in parseInteger() 47 int32_t d = u_digit(rule.charAt(p++), radix); in parseInteger() 53 int32_t v = (value * radix) + d; in parseInteger() 181 * @param radix the radix in which to parse; must be >= 2 and <= 189 int32_t& pos, int8_t radix) { in parseNumber() 191 // assert(radix >= 2); in parseNumber() 192 // assert(radix < in parseNumber() 188 parseNumber(const UnicodeString& text, int32_t& pos, int8_t radix) parseNumber() argument [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | cstring.cpp | 151 * Takes a int32_t and fills in a char* string with that number "radix"-based. 157 T_CString_integerToString(char* buffer, int32_t v, int32_t radix) in T_CString_integerToString() argument 165 U_ASSERT(radix>=2 && radix<=16); in T_CString_integerToString() 167 if(v<0 && radix == 10) { in T_CString_integerToString() 176 digit = (uint8_t)(uval % radix); in T_CString_integerToString() 178 uval = uval / radix; in T_CString_integerToString() 190 * Takes a int64_t and fills in a char* string with that number "radix"-based. 195 T_CString_int64ToString(char* buffer, int64_t v, uint32_t radix) in T_CString_int64ToString() argument 203 U_ASSERT(radix> in T_CString_int64ToString() 227 T_CString_stringToInteger(const char *integerString, int32_t radix) T_CString_stringToInteger() argument [all...] |
H A D | util_props.cpp | 32 int8_t radix = 10; in parseInteger() local 37 radix = 16; in parseInteger() 42 radix = 8; in parseInteger() 47 int32_t d = u_digit(rule.charAt(p++), radix); in parseInteger() 53 int32_t v = (value * radix) + d; in parseInteger() 181 * @param radix the radix in which to parse; must be >= 2 and <= 189 int32_t& pos, int8_t radix) { in parseNumber() 191 // assert(radix >= 2); in parseNumber() 192 // assert(radix < in parseNumber() 188 parseNumber(const UnicodeString& text, int32_t& pos, int8_t radix) parseNumber() argument [all...] |
/third_party/elfutils/src/ |
H A D | size.c | 59 { "radix", OPT_RADIX, "RADIX", 0, N_("Use RADIX for printing symbol values"), 61 { NULL, 'd', NULL, 0, N_("Same as `--radix=10'"), 0 }, 62 { NULL, 'o', NULL, 0, N_("Same as `--radix=8'"), 0 }, 63 { NULL, 'x', NULL, 0, N_("Same as `--radix=16'"), 0 }, 125 } radix; variable 128 /* Mapping of radix and binary class to length. */ 206 radix = radix_decimal; in parse_opt() 214 radix = radix_octal; in parse_opt() 218 radix = radix_hex; in parse_opt() 244 radix in parse_opt() [all...] |
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
H A D | ecma-builtin-number-prototype.c | 260 uint32_t radix = 10; in ecma_builtin_number_prototype_object_to_string() local 270 radix = ecma_number_to_uint32 (arg_num); in ecma_builtin_number_prototype_object_to_string() 272 if (radix < 2 || radix > 36) in ecma_builtin_number_prototype_object_to_string() 281 || radix == 10) in ecma_builtin_number_prototype_object_to_string() 314 /* 'magnitude' will be the magnitude of the number in the specific radix. */ in ecma_builtin_number_prototype_object_to_string() 326 while (counter >= radix) in ecma_builtin_number_prototype_object_to_string() 328 counter /= radix; in ecma_builtin_number_prototype_object_to_string() 334 * In this case we won't be needing a radix point, so we don't need to worry about space for it. in ecma_builtin_number_prototype_object_to_string() 342 * new radix, s in ecma_builtin_number_prototype_object_to_string() 651 ecma_builtin_number_prototype_object_to_fixed(ecma_number_t this_num, ecma_value_t radix) ecma_builtin_number_prototype_object_to_fixed() argument [all...] |
/third_party/node/deps/v8/src/numbers/ |
H A D | conversions.cc | 151 inline bool isDigit(int x, int radix) { in isDigit() argument 152 return (x >= '0' && x <= '9' && x < '0' + radix) || in isDigit() 153 (radix > 10 && x >= 'a' && x < 'a' + radix - 10) || in isDigit() 154 (radix > 10 && x >= 'A' && x < 'A' + radix - 10); in isDigit() 181 // Parsing integers with radix 2, 4, 8, 16, 32. Assumes current != end. 195 const int radix = (1 << radix_log_2); in InternalStringToIntDouble() local 197 int lim_0 = '0' + (radix < 10 ? radix in InternalStringToIntDouble() 348 int radix() { return radix_; } radix() function 471 NumberParseIntHelper(Isolate* isolate, Handle<String> string, int radix) NumberParseIntHelper() argument 1339 DoubleToRadixCString(double value, int radix) DoubleToRadixCString() argument [all...] |
/third_party/node/deps/v8/src/builtins/ |
H A D | builtins-bigint.cc | 98 Object BigIntToStringImpl(Handle<Object> receiver, Handle<Object> radix, in BigIntToStringImpl() argument 104 // 2. If radix is not present, let radixNumber be 10. in BigIntToStringImpl() 105 // 3. Else if radix is undefined, let radixNumber be 10. in BigIntToStringImpl() 107 if (!radix->IsUndefined(isolate)) { in BigIntToStringImpl() 108 // 4. Else, let radixNumber be ? ToInteger(radix). in BigIntToStringImpl() 109 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, radix, in BigIntToStringImpl() 110 Object::ToInteger(isolate, radix)); in BigIntToStringImpl() 111 double radix_double = radix->Number(); in BigIntToStringImpl() 119 // Return the String representation of this Number value using the radix in BigIntToStringImpl() 141 Handle<Object> radix in BUILTIN() local 147 Handle<Object> radix = args.atOrUndefined(isolate, 1); BUILTIN() local [all...] |
/third_party/icu/icu4c/source/io/ |
H A D | ufmt_cmn.cpp | 57 int32_t radix) in ufmt_isdigit() 61 return (UBool)(digitVal < radix && digitVal >= 0); in ufmt_isdigit() 71 uint8_t radix, in ufmt_64tou() 80 digit = (uint32_t)(value % radix); in ufmt_64tou() 81 value = value / radix; in ufmt_64tou() 139 int8_t radix) in ufmt_uto64() 152 while(ufmt_isdigit(*buffer, radix) && buffer < limit) { in ufmt_uto64() 155 result *= radix; in ufmt_uto64() 56 ufmt_isdigit(UChar c, int32_t radix) ufmt_isdigit() argument 68 ufmt_64tou(UChar *buffer, int32_t *len, uint64_t value, uint8_t radix, UBool uselower, int32_t minDigits) ufmt_64tou() argument 137 ufmt_uto64(const UChar *buffer, int32_t *len, int8_t radix) ufmt_uto64() argument
|
/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
H A D | EscapeTransliterator.java | 19 * empty, a radix, typically 16 or 10, a minimum digit count, 52 * The radix to display the number in. Typically 16 or 10. Must 55 private int radix; field in EscapeTransliterator 73 * prefix, suffix, radix, and minDigits of this object are used 162 int radix, int minDigits, in EscapeTransliterator() 168 this.radix = radix; in EscapeTransliterator() 194 Utility.appendNumber(buf, c, supplementalHandler.radix, in handleTransliterate() 206 Utility.appendNumber(buf, c, radix, minDigits); in handleTransliterate() 231 for (int i = 0; i < it.radix; in addSourceTargetSet() 161 EscapeTransliterator(String ID, String prefix, String suffix, int radix, int minDigits, boolean grokSupplementals, EscapeTransliterator supplementalHandler) EscapeTransliterator() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | EscapeTransliterator.java | 20 * empty, a radix, typically 16 or 10, a minimum digit count, 53 * The radix to display the number in. Typically 16 or 10. Must 56 private int radix; field in EscapeTransliterator 74 * prefix, suffix, radix, and minDigits of this object are used 163 int radix, int minDigits, in EscapeTransliterator() 169 this.radix = radix; in EscapeTransliterator() 195 Utility.appendNumber(buf, c, supplementalHandler.radix, in handleTransliterate() 207 Utility.appendNumber(buf, c, radix, minDigits); in handleTransliterate() 232 for (int i = 0; i < it.radix; in addSourceTargetSet() 162 EscapeTransliterator(String ID, String prefix, String suffix, int radix, int minDigits, boolean grokSupplementals, EscapeTransliterator supplementalHandler) EscapeTransliterator() argument [all...] |
/third_party/skia/third_party/externals/icu/source/io/ |
H A D | ufmt_cmn.cpp | 57 int32_t radix) in ufmt_isdigit() 61 return (UBool)(digitVal < radix && digitVal >= 0); in ufmt_isdigit() 71 uint8_t radix, in ufmt_64tou() 80 digit = (uint32_t)(value % radix); in ufmt_64tou() 81 value = value / radix; in ufmt_64tou() 139 int8_t radix) in ufmt_uto64() 152 while(ufmt_isdigit(*buffer, radix) && buffer < limit) { in ufmt_uto64() 155 result *= radix; in ufmt_uto64() 56 ufmt_isdigit(UChar c, int32_t radix) ufmt_isdigit() argument 68 ufmt_64tou(UChar *buffer, int32_t *len, uint64_t value, uint8_t radix, UBool uselower, int32_t minDigits) ufmt_64tou() argument 137 ufmt_uto64(const UChar *buffer, int32_t *len, int8_t radix) ufmt_uto64() argument
|
/third_party/jerryscript/tests/jerry/ |
H A D | number-prototype-to-string.js | 100 for (radix = 2; radix <= 36; radix++) { 105 str = digit_chars[value % radix] + str; 106 value = Math.floor(value / radix); 109 assert(str === (num).toString(radix));
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | NFRule.java | 70 * The rule's radix (the radix to the power of the exponent equals 73 private int radix = 10; field in NFRule 76 * The rule's exponent (the radix raised to the power of the exponent 170 && rule1.baseValue % (power(rule1.radix, rule1.exponent)) == 0) in makeRules() 201 // both rules have the same radix and exponent (i.e., the in makeRules() 203 rule2.radix = rule1.radix; in makeRules() 260 * in the description) and sets the rule's base value, radix, and 322 // now parsing the rule's radix in parseRuleDescriptor() [all...] |