Lines Matching defs:__specs
130 __format_spec::__parsed_specifications<_CharT> __specs) -> decltype(__out_it) {
149 return __formatter::__write(std::addressof(__c), std::addressof(__c) + 1, std::move(__out_it), __specs);
222 __format_spec::__parsed_specifications<_CharT> __specs) {
228 if (__specs.__alignment_ == __format_spec::__alignment::__zero_padding) {
232 if (__specs.__width_ > __size) {
234 __padding.__before_ = __specs.__width_ - __size;
235 __out_it = __formatter::__fill(std::move(__out_it), __specs.__width_ - __size, _CharT('0'));
238 if (__specs.__width_ > __size) {
240 __padding = __formatter::__padding_size(__size, __specs.__width_, __specs.__alignment_);
242 __out_it = __formatter::__fill(std::move(__out_it), __padding.__before_, __specs.__fill_);
264 if (__specs.__std_.__type_ == __format_spec::__type::__hexadecimal_upper_case) {
280 return __formatter::__fill(std::move(__out_it), __padding.__after_, __specs.__fill_);
288 __format_spec::__parsed_specifications<_CharT> __specs,
294 _Iterator __first = __formatter::__insert_sign(__begin, __negative, __specs.__std_.__sign_);
295 if (__specs.__std_.__alternate_form_ && __prefix)
302 if (__specs.__std_.__locale_specific_form_) {
318 __specs);
322 if (__specs.__alignment_ != __format_spec::__alignment::__zero_padding)
331 __specs.__alignment_ = __format_spec::__alignment::__right;
332 __specs.__fill_.__data[0] = _CharT('0');
335 __specs.__width_ -= std::min(__size, __specs.__width_);
338 if (__specs.__std_.__type_ != __format_spec::__type::__hexadecimal_upper_case) [[likely]]
339 return __formatter::__write(__first, __last, __ctx.out(), __specs);
341 return __formatter::__write_transformed(__first, __last, __ctx.out(), __specs, __formatter::__hex_to_upper);
348 __format_spec::__parsed_specifications<_CharT> __specs,
350 switch (__specs.__std_.__type_) {
353 return __formatter::__format_integer(__value, __ctx, __specs, __negative, __array.begin(), __array.end(), "0b", 2);
357 return __formatter::__format_integer(__value, __ctx, __specs, __negative, __array.begin(), __array.end(), "0B", 2);
363 __value, __ctx, __specs, __negative, __array.begin(), __array.end(), __value != 0 ? "0" : nullptr, 8);
369 __value, __ctx, __specs, __negative, __array.begin(), __array.end(), nullptr, 10);
373 return __formatter::__format_integer(__value, __ctx, __specs, __negative, __array.begin(), __array.end(), "0x", 16);
377 return __formatter::__format_integer(__value, __ctx, __specs, __negative, __array.begin(), __array.end(), "0X", 16);
387 __format_integer(_Tp __value, _FormatContext& __ctx, __format_spec::__parsed_specifications<_CharT> __specs) {
399 return __formatter::__format_integer(__r, __ctx, __specs, __negative);
425 __format_bool(bool __value, _FormatContext& __ctx, __format_spec::__parsed_specifications<_CharT> __specs) {
427 if (__specs.__std_.__locale_specific_form_) {
430 return __formatter::__write_string_no_precision(basic_string_view<_CharT>{__str}, __ctx.out(), __specs);
435 return __formatter::__write(__str.begin(), __str.end(), __ctx.out(), __specs);