Home
last modified time | relevance | path

Searched refs:__specs (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Dformatter_integral.h129 __format_spec::__parsed_specifications<_CharT> __specs) -> decltype(__out_it) {
148 …n __formatter::__write(std::addressof(__c), std::addressof(__c) + 1, std::move(__out_it), __specs);
221 __format_spec::__parsed_specifications<_CharT> __specs) { in __write_using_decimal_separators() argument
227 if (__specs.__alignment_ == __format_spec::__alignment::__zero_padding) { in __write_using_decimal_separators()
231 if (__specs.__width_ > __size) { in __write_using_decimal_separators()
233 __padding.__before_ = __specs.__width_ - __size; in __write_using_decimal_separators()
234 …__out_it = __formatter::__fill(std::move(__out_it), __specs.__width_ - __size, _CharT('… 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()
241 __out_it = __formatter::__fill(std::move(__out_it), __padding.__before_, __specs.__fill_); in __write_using_decimal_separators()
[all …]
H A Dformatter_floating_point.h501 __format_spec::__parsed_specifications<_CharT> __specs) {
523 …bool __zero_padding = __specs.__alignment_ == __format_spec::__alignment:…
524 if (__size < __specs.__width_) {
526 __specs.__alignment_ = __format_spec::__alignment::__right;
527 __specs.__fill_.__data[0] = _CharT('0');
530 __padding = __formatter::__padding_size(__size, __specs.__width_, __specs.__alignment_);
536 __out_it = __formatter::__fill(std::move(__out_it), __padding.__before_, __specs.__fill_);
577 return __formatter::__fill(std::move(__out_it), __padding.__after_, __specs.__fill_);
583 …_OutIt __out_it, __format_spec::__parsed_specifications<_CharT> __specs, bool __negative, bool __i…
585 char* __last = __formatter::__insert_sign(__buffer, __negative, __specs.__std_.__sign_);
[all …]
H A Dformatter_output.h236 __format_spec::__parsed_specifications<_ParserCharT> __specs,
238 if (__size >= __specs.__width_)
241 …__padding_size_result __padding = __formatter::__padding_size(__size, __specs.__width_, __specs.__…
242 … = __formatter::__fill(std::move(__out_it), __padding.__before_, __specs.__fill_);
244 return __formatter::__fill(std::move(__out_it), __padding.__after_, __specs.__fill_);
252 __format_spec::__parsed_specifications<_ParserCharT> __specs,
255 …return __formatter::__write(basic_string_view{__first, __last}, std::move(__out_it), __specs, __si…
266 __format_spec::__parsed_specifications<_ParserCharT> __specs) -> decltype(__out_it) {
268 return __formatter::__write(__first, __last, std::move(__out_it), __specs, __last - __first);
279 __format_spec::__parsed_specifications<_ParserCharT> __specs,
[all …]
H A Dwrite_escaped.h50 __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);
214 … __format_spec::__parsed_specifications<_CharT> __specs) -> decltype(__out_it) {
219 …er::__write(__str.data(), __str.data() + __str.size(), std::move(__out_it), __specs, __str.size());
226 … __format_spec::__parsed_specifications<_CharT> __specs) -> decltype(__out_it) {
231 return __formatter::__write_string(basic_string_view{__str}, std::move(__out_it), __specs);
H A Dformatter_pointer.h43 …__format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications… in format() local
44 __specs.__std_.__alternate_form_ = true; in format()
45 __specs.__std_.__type_ = in format()
46 __specs.__std_.__type_ == __format_spec::__type::__pointer_upper_case in format()
50 return __formatter::__format_integer(reinterpret_cast<uintptr_t>(__ptr), __ctx, __specs); in format()
H A Drange_formatter.h124 __format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications(__ctx); in format()
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 __format_range(_Rp&& __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()
123 __format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications(__ctx); format() local
H A Dformatter_string.h68 …__format_spec::__parsed_specifications<_CharT> __specs = _Base::__parser_.__get_parsed_std_specifi…
71 …eturn __formatter::__format_escaped_string(basic_string_view<_CharT>{__str}, __ctx.out(), __specs);
85 if (__specs.__has_width() || __specs.__has_precision())
86 return __formatter::__write_string(basic_string_view<_CharT>{__str}, __ctx.out(), __specs);
H A Dformatter_integer.h44 …__format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications… in format() local
46 if (__specs.__std_.__type_ == __format_spec::__type::__char) in format()
47 return __formatter::__format_char(__value, __ctx.out(), __specs); in format()
53 return __formatter::__format_integer(static_cast<_Type>(__value), __ctx, __specs); in format()
H A Dformatter_tuple.h90 …__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 Dformatter.h63 …__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 Dformatter.h617 __format_spec::__parsed_specifications<_CharT> __specs, in __format_chrono() argument
625 if (__specs.__chrono_.__locale_specific_form_) in __format_chrono()
646 __specs.__precision_ = -1; in __format_chrono()
649 if (__specs.__chrono_.__weekday_name_ && !__formatter::__weekday_name_ok(__value)) in __format_chrono()
652 if (__specs.__chrono_.__weekday_ && !__formatter::__weekday_ok(__value)) in __format_chrono()
655 if (__specs.__chrono_.__day_of_year_ && !__formatter::__date_ok(__value)) in __format_chrono()
658 if (__specs.__chrono_.__week_of_year_ && !__formatter::__date_ok(__value)) in __format_chrono()
661 if (__specs.__chrono_.__month_name_ && !__formatter::__month_name_ok(__value)) in __format_chrono()
680 if (__specs.__chrono_.__hour_ && __value.hours().count() > 23) in __format_chrono()
691 return __formatter::__write_string(__sstr.view(), __ctx.out(), __specs); in __format_chrono()