Lines Matching refs:__base
340 __to_chars_integral(char* __first, char* __last, _Tp __value, int __base, false_type);
344 __to_chars_integral(char* __first, char* __last, _Tp __value, int __base,
354 return std::__to_chars_integral(__first, __last, __x, __base, false_type());
501 __to_chars_integral_width(_Tp __value, unsigned __base) {
504 unsigned __base_2 = __base * __base;
505 unsigned __base_3 = __base_2 * __base;
510 if (__value < __base)
528 __to_chars_integral(char* __first, char* __last, _Tp __value, int __base,
531 if (__base == 10) [[likely]]
534 switch (__base) {
544 int __n = std::__to_chars_integral_width(__value, __base);
551 unsigned __c = __value % __base;
552 __value /= __base;
569 to_chars(char* __first, char* __last, _Tp __value, int __base)
571 _LIBCPP_ASSERT(2 <= __base && __base <= 36, "base not in [2, 36]");
574 …return std::__to_chars_integral(__first, __last, static_cast<_Type>(__value), __base, is_signed<_T…
634 __in_pattern(_Tp __c, int __base)
636 if (__base <= 10)
637 return {'0' <= __c && __c < '0' + __base, __c - '0'};
640 else if ('a' <= __c && __c < 'a' + __base - 10)
643 return {'A' <= __c && __c < 'A' + __base - 10, __c - 'A' + 10};
739 int __base)
741 if (__base == 10)
749 // __base is always between 2 and 36 inclusive.
781 __base);
787 int __base)
791 __from_chars_integral<__t>, __base);
803 from_chars(const char* __first, const char* __last, _Tp& __value, int __base)
805 _LIBCPP_ASSERT(2 <= __base && __base <= 36, "base not in [2, 36]");
806 return std::__from_chars_integral(__first, __last, __value, __base);