Lines Matching refs:__value
99 _LIBCPP_AVAILABILITY_TO_CHARS _LIBCPP_FUNC_VIS char* __u64toa(uint64_t __value, char* __buffer) _NO…
100 _LIBCPP_AVAILABILITY_TO_CHARS _LIBCPP_FUNC_VIS char* __u32toa(uint32_t __value, char* __buffer) _NO…
337 __to_chars_itoa(char* __first, char* __last, _Tp __value, true_type)
339 auto __x = __to_unsigned_like(__value);
340 if (__value < 0 && __first != __last)
352 __to_chars_itoa(char* __first, char* __last, _Tp __value, false_type)
358 if (__tx::digits <= __diff || __tx::__width(__value) <= __diff)
359 return {__tx::__convert(__value, __first), errc(0)};
364 return {__tx::__convert(__value, __first), {}};
368 auto __p = __tx::__convert(__value, __buf);
384 __to_chars_integral(char* __first, char* __last, _Tp __value, int __base,
387 auto __x = __to_unsigned_like(__value);
388 if (__value < 0 && __first != __last)
398 _LIBCPP_AVAILABILITY_TO_CHARS _LIBCPP_INLINE_VISIBILITY int __to_chars_integral_width(_Tp __value, …
399 _LIBCPP_ASSERT(__value >= 0, "The function requires a non-negative value.");
407 if (__value < __base)
409 if (__value < __base_2)
411 if (__value < __base_3)
413 if (__value < __base_4)
416 __value /= __base_4;
426 __to_chars_integral(char* __first, char* __last, _Tp __value, int __base,
430 return __to_chars_itoa(__first, __last, __value, false_type());
433 int __n = __to_chars_integral_width(__value, __base);
440 unsigned __c = __value % __base;
441 __value /= __base;
443 } while (__value != 0);
450 to_chars(char* __first, char* __last, _Tp __value)
452 return __to_chars_itoa(__first, __last, __value, is_signed<_Tp>());
458 to_chars(char* __first, char* __last, _Tp __value, int __base)
461 return __to_chars_integral(__first, __last, __value, __base,
467 __sign_combinator(_It __first, _It __last, _Tp& __value, _Fn __f, _Ts... __args)
470 decltype(__to_unsigned_like(__value)) __x;
489 _VSTD::memcpy(&__value, &__x, sizeof(__x));
497 __value = __x;
536 __subject_seq_combinator(_It __first, _It __last, _Tp& __value, _Fn __f,
553 __value = 0;
558 auto __r = __f(__p, __last, __value, __args...);
573 __from_chars_atoi(const char* __first, const char* __last, _Tp& __value)
579 __first, __last, __value,
581 _Tp& __value) -> from_chars_result {
589 __value = __a + __b;
599 __from_chars_atoi(const char* __first, const char* __last, _Tp& __value)
601 using __t = decltype(__to_unsigned_like(__value));
602 return __sign_combinator(__first, __last, __value, __from_chars_atoi<__t>);
607 __from_chars_integral(const char* __first, const char* __last, _Tp& __value,
611 return __from_chars_atoi(__first, __last, __value);
614 __first, __last, __value,
615 [](const char* __p, const char* __last, _Tp& __value,
643 __value = __a + __b;
654 __from_chars_integral(const char* __first, const char* __last, _Tp& __value,
657 using __t = decltype(__to_unsigned_like(__value));
658 return __sign_combinator(__first, __last, __value,
664 from_chars(const char* __first, const char* __last, _Tp& __value)
666 return __from_chars_atoi(__first, __last, __value);
671 from_chars(const char* __first, const char* __last, _Tp& __value, int __base)
674 return __from_chars_integral(__first, __last, __value, __base);