Lines Matching refs:__first
297 __to_chars_itoa(char* __first, char* __last, _Tp __value, true_type)
300 if (__value < 0 && __first != __last)
302 *__first++ = '-';
306 return __to_chars_itoa(__first, __last, __x, false_type());
311 __to_chars_itoa(char* __first, char* __last, _Tp __value, false_type)
314 auto __diff = __last - __first;
318 return {__tx::__convert(__value, __first), {}};
323 return {__tx::__convert(__value, __first), {}};
331 memcpy(__first, __buf, __len);
332 return {__first + __len, {}};
342 __to_chars_integral(char* __first, char* __last, _Tp __value, int __base,
346 if (__value < 0 && __first != __last)
348 *__first++ = '-';
352 return __to_chars_integral(__first, __last, __x, __base, false_type());
357 __to_chars_integral(char* __first, char* __last, _Tp __value, int __base,
361 return __to_chars_itoa(__first, __last, __value, false_type());
364 while (__p != __first)
378 memmove(__first, __p, __len);
379 return {__first + __len, {}};
385 to_chars(char* __first, char* __last, _Tp __value)
387 return __to_chars_itoa(__first, __last, __value, is_signed<_Tp>());
392 to_chars(char* __first, char* __last, _Tp __value, int __base)
395 return __to_chars_integral(__first, __last, __value, __base,
401 __sign_combinator(_It __first, _It __last, _Tp& __value, _Fn __f, _Ts... __args)
406 bool __neg = (__first != __last && *__first == '-');
407 auto __r = __f(__neg ? __first + 1 : __first, __last, __x, __args...);
411 return {__first, __r.ec};
470 __subject_seq_combinator(_It __first, _It __last, _Tp& __value, _Fn __f,
473 auto __find_non_zero = [](_It __first, _It __last) {
474 for (; __first != __last; ++__first)
475 if (*__first != '0')
477 return __first;
480 auto __p = __find_non_zero(__first, __last);
483 if (__p == __first)
484 return {__first, errc::invalid_argument};
507 __from_chars_atoi(const char* __first, const char* __last, _Tp& __value)
513 __first, __last, __value,
514 [](const char* __first, const char* __last,
517 auto __p = __tx::__read(__first, __last, __a, __b);
533 __from_chars_atoi(const char* __first, const char* __last, _Tp& __value)
536 return __sign_combinator(__first, __last, __value, __from_chars_atoi<__t>);
541 __from_chars_integral(const char* __first, const char* __last, _Tp& __value,
545 return __from_chars_atoi(__first, __last, __value);
548 __first, __last, __value,
588 __from_chars_integral(const char* __first, const char* __last, _Tp& __value,
592 return __sign_combinator(__first, __last, __value,
598 from_chars(const char* __first, const char* __last, _Tp& __value)
600 return __from_chars_atoi(__first, __last, __value);
605 from_chars(const char* __first, const char* __last, _Tp& __value, int __base)
608 return __from_chars_integral(__first, __last, __value, __base);