/freebsd/contrib/llvm-project/libcxx/include/__format/ |
H A D | formatter_integral.h | 231 if (__specs.__width_ > __size) { in __write_using_decimal_separators() 233 __padding.__before_ = __specs.__width_ - __size; in __write_using_decimal_separators() 237 if (__specs.__width_ > __size) { in __write_using_decimal_separators() 239 __padding = __formatter::__padding_size(__size, __specs.__width_, __specs.__alignment_); in __write_using_decimal_separators() 294 if (__specs.__std_.__alternate_form_ && __prefix) in __format_integer() 301 if (__specs.__std_.__locale_specific_form_) { in __format_integer() 317 __specs); in __format_integer() 331 __specs.__fill_.__data[0] = _CharT('0'); in __format_integer() 334 __specs.__width_ -= std::min(__size, __specs.__width_); in __format_integer() 349 switch (__specs.__std_.__type_) { [all …]
|
H A D | formatter_floating_point.h | 523 if (__size < __specs.__width_) { 526 __specs.__fill_.__data[0] = _CharT('0'); 529 __padding = __formatter::__padding_size(__size, __specs.__width_, __specs.__alignment_); 627 …__formatter::__padding_size(__size + __num_trailing_zeros, __specs.__width_, __specs.__alignment_); 656 __float_buffer<_Fp> __buffer(__specs.__precision_); 658 …__buffer, __value, __negative, (__specs.__has_precision()), __specs.__std_.__sign_, __specs.__std_… 660 if (__specs.__std_.__alternate_form_) { 692 int __p = std::max<int>(1, (__specs.__has_precision() ? __specs.__precision_ : 6)); 708 if (__specs.__std_.__locale_specific_form_) 714 if (__size + __num_trailing_zeros >= __specs.__width_) { [all …]
|
H A D | formatter_output.h | 234 __format_spec::__parsed_specifications<_ParserCharT> __specs, 236 if (__size >= __specs.__width_) 239 …__padding_size_result __padding = __formatter::__padding_size(__size, __specs.__width_, __specs.__… 250 __format_spec::__parsed_specifications<_ParserCharT> __specs, 277 __format_spec::__parsed_specifications<_ParserCharT> __specs, 282 if (__size >= __specs.__width_) 285 …__padding_size_result __padding = __formatter::__padding_size(__size, __specs.__width_, __specs.__… 301 __format_spec::__parsed_specifications<_CharT> __specs) -> decltype(__out_it) { 302 _LIBCPP_ASSERT_INTERNAL(!__specs.__has_precision(), "use __write_string"); 305 if (!__specs.__has_width()) [all …]
|
H A D | write_escaped.h | 50 __format_spec::__parsed_specifications<_CharT> __specs) -> decltype(__out_it) { 51 if (!__specs.__has_precision()) 52 return __formatter::__write_string_no_precision(__str, std::move(__out_it), __specs); 54 int __size = __formatter::__truncate(__str, __specs.__precision_); 56 return __formatter::__write(__str.begin(), __str.end(), std::move(__out_it), __specs, __size); 198 … __format_spec::__parsed_specifications<_CharT> __specs) -> decltype(__out_it) { 203 …er::__write(__str.data(), __str.data() + __str.size(), std::move(__out_it), __specs, __str.size()); 210 … __format_spec::__parsed_specifications<_CharT> __specs) -> decltype(__out_it) { 215 return __formatter::__write_string(basic_string_view{__str}, std::move(__out_it), __specs);
|
H A D | formatter_pointer.h | 44 …__format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications… in format() local 45 __specs.__std_.__alternate_form_ = true; in format() 46 __specs.__std_.__type_ = in format() 47 __specs.__std_.__type_ == __format_spec::__type::__pointer_upper_case in format() 51 return __formatter::__format_integer(reinterpret_cast<uintptr_t>(__ptr), __ctx, __specs); in format()
|
H A D | range_formatter.h | 124 …__format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications… in format() local 126 if (!__specs.__has_width()) in format() 127 return __format_range(__range, __ctx, __specs); in format() 148 __format_range(__range, __c, __specs); in format() 150 return __formatter::__write_string_no_precision(__buffer.__view(), __ctx.out(), __specs); in format() 155 …p&& __range, _FormatContext& __ctx, __format_spec::__parsed_specifications<_CharT> __specs) const { in __format_range() 157 switch (__specs.__std_.__type_) { in __format_range() 160 …return __format_as_string(__range, __ctx, __specs.__std_.__type_ == __format_spec::__type::__debug… in __format_range()
|
H A D | formatter_integer.h | 45 …__format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications… in format() local 47 if (__specs.__std_.__type_ == __format_spec::__type::__char) in format() 48 return __formatter::__format_char(__value, __ctx.out(), __specs); in format() 54 return __formatter::__format_integer(static_cast<_Type>(__value), __ctx, __specs); in format()
|
H A D | formatter_string.h | 69 …__format_spec::__parsed_specifications<_CharT> __specs = _Base::__parser_.__get_parsed_std_specifi… 72 …eturn __formatter::__format_escaped_string(basic_string_view<_CharT>{__str}, __ctx.out(), __specs); 86 if (__specs.__has_width() || __specs.__has_precision()) 87 return __formatter::__write_string(basic_string_view<_CharT>{__str}, __ctx.out(), __specs);
|
H A D | formatter_tuple.h | 90 …__format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications… in format() local 92 if (!__specs.__has_width()) in format() 113 …formatter::__write_string_no_precision(basic_string_view{__buffer.__view()}, __ctx.out(), __specs); in format()
|
/freebsd/contrib/llvm-project/libcxx/include/__thread/ |
H A D | formatter.h | 63 …__format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications… 65 __specs.__std_.__alternate_form_ = true; 66 __specs.__std_.__type_ = __format_spec::__type::__hexadecimal_lower_case; 68 …rn __formatter::__format_integer(reinterpret_cast<_Cp>(__get_underlying_id(__id)), __ctx, __specs);
|
/freebsd/contrib/llvm-project/libcxx/include/__chrono/ |
H A D | formatter.h | 496 __format_spec::__parsed_specifications<_CharT> __specs, in __format_chrono() argument 504 if (__specs.__chrono_.__locale_specific_form_) in __format_chrono() 518 __specs.__precision_ = -1; in __format_chrono() 521 if (__specs.__chrono_.__weekday_name_ && !__formatter::__weekday_name_ok(__value)) in __format_chrono() 524 if (__specs.__chrono_.__weekday_ && !__formatter::__weekday_ok(__value)) in __format_chrono() 527 if (__specs.__chrono_.__day_of_year_ && !__formatter::__date_ok(__value)) in __format_chrono() 530 if (__specs.__chrono_.__week_of_year_ && !__formatter::__date_ok(__value)) in __format_chrono() 533 if (__specs.__chrono_.__month_name_ && !__formatter::__month_name_ok(__value)) in __format_chrono() 552 if (__specs.__chrono_.__hour_ && __value.hours().count() > 23) in __format_chrono() 563 return __formatter::__write_string(__sstr.view(), __ctx.out(), __specs); in __format_chrono()
|