Home
last modified time | relevance | path

Searched refs:__ctx (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Drange_formatter.h56 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) { in parse()
57 auto __begin = __parser_.__parse(__ctx, __format_spec::__fields_range); in parse()
58 auto __end = __ctx.end(); in parse()
64 return __parse_empty_range_underlying_spec(__ctx, __begin); in parse()
72 return __parse_empty_range_underlying_spec(__ctx, __begin); in parse()
87 __ctx.advance_to(__begin); in parse()
88 __begin = __underlying_.parse(__ctx); in parse()
123 _LIBCPP_HIDE_FROM_ABI typename _FormatContext::iterator format(_Rp&& __range, _FormatContext& __ctx) const { in format()
124 __format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications(__ctx); in format()
127 return __format_range(__range, __ctx, __spec in format()
[all...]
H A Dformatter_string.h35 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) { in parse()
36 …typename _ParseContext::iterator __result = __parser_.__parse(__ctx, __format_spec::__fields_strin… in parse()
43 format(basic_string_view<_CharT> __str, _FormatContext& __ctx) const { in format()
46 …n __formatter::__format_escaped_string(__str, __ctx.out(), __parser_.__get_parsed_std_specificatio… in format()
49 …return __formatter::__write_string(__str, __ctx.out(), __parser_.__get_parsed_std_specifications(_… in format()
65 …OM_ABI typename _FormatContext::iterator format(const _CharT* __str, _FormatContext& __ctx) const {
68 …:__parsed_specifications<_CharT> __specs = _Base::__parser_.__get_parsed_std_specifications(__ctx);
71 …return __formatter::__format_escaped_string(basic_string_view<_CharT>{__str}, __ctx.out(), __specs…
86 return __formatter::__write_string(basic_string_view<_CharT>{__str}, __ctx.out(), __specs);
89 auto __out_it = __ctx.out();
[all …]
H A Dformatter_tuple.h50 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) { in parse()
51 auto __begin = __parser_.__parse(__ctx, __format_spec::__fields_tuple); in parse()
53 auto __end = __ctx.end(); in parse()
69 __ctx.advance_to(__begin); in parse()
76 __formatter.parse(__ctx); in parse()
89 _FormatContext& __ctx) const { in format()
90 …t_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications(__ctx); in format()
93 return __format_tuple(__tuple, __ctx); in format()
109 __buffer.__make_output_iterator(), __ctx}; in format()
113 …return __formatter::__write_string_no_precision(basic_string_view{__buffer.__view()}, __ctx.out(),… in format()
[all …]
H A Dformatter_char.h37 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) { in parse()
38 …typename _ParseContext::iterator __result = __parser_.__parse(__ctx, __format_spec::__fields_integ… in parse()
44 …DE_FROM_ABI typename _FormatContext::iterator format(_CharT __value, _FormatContext& __ctx) const { in format()
46 …return __formatter::__format_char(__value, __ctx.out(), __parser_.__get_parsed_std_specifications( in format()
50 …n __formatter::__format_escaped_char(__value, __ctx.out(), __parser_.__get_parsed_std_specificatio… in format()
56 __ctx, in format()
57 __parser_.__get_parsed_std_specifications(__ctx)); in format()
60 …static_cast<make_unsigned_t<_CharT>>(__value), __ctx, __parser_.__get_parsed_std_specifications(__… in format()
64 …P_HIDE_FROM_ABI typename _FormatContext::iterator format(char __value, _FormatContext& __ctx) const in format()
67 return format(static_cast<wchar_t>(static_cast<unsigned char>(__value)), __ctx); in format()
H A Drange_default_formatter.h111 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) {
112 return __underlying_.parse(__ctx);
117 format(__maybe_const_r& __range, _FormatContext& __ctx) const {
118 return __underlying_.format(__range, __ctx);
139 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) {
140 return __underlying_.parse(__ctx);
145 format(__maybe_const_map& __range, _FormatContext& __ctx) const {
146 return __underlying_.format(__range, __ctx);
163 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) {
164 return __underlying_.parse(__ctx);
[all...]
H A Dformatter_bool.h39 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) {
40 …typename _ParseContext::iterator __result = __parser_.__parse(__ctx, __format_spec::__fields_integ…
46 …HIDE_FROM_ABI typename _FormatContext::iterator format(bool __value, _FormatContext& __ctx) const {
50 …return __formatter::__format_bool(__value, __ctx, __parser_.__get_parsed_std_specifications(__ctx)…
61 static_cast<unsigned>(__value), __ctx, __parser_.__get_parsed_std_specifications(__ctx));
H A Dformat_functions.h90 _LIBCPP_HIDE_FROM_ABI constexpr void __parse(_ParseContext& __ctx) const { in __parse() argument
91 __parse_(__ctx); in __parse()
96 __parse_ = [](basic_format_parse_context<_CharT>& __ctx) { in __enable()
98 __ctx.advance_to(__f.parse(__ctx)); in __enable()
161 …ic_format_parse_context<_CharT>& __parse_ctx, __compile_time_basic_format_context<_CharT>& __ctx) { in __compile_time_validate_argument() argument
184 __validate_type(__ctx.arg(__formatter.__parser_.__width_)); in __compile_time_validate_argument()
188 __validate_type(__ctx.arg(__formatter.__parser_.__precision_)); in __compile_time_validate_argument()
195 __compile_time_basic_format_context<_CharT>& __ctx, in __compile_time_visit_format_arg() argument
201 return __format::__compile_time_validate_argument<_CharT, bool>(__parse_ctx, __ctx); in __compile_time_visit_format_arg()
203 return __format::__compile_time_validate_argument<_CharT, _CharT>(__parse_ctx, __ctx); in __compile_time_visit_format_arg()
[all …]
H A Dformatter_integral.h286 _FormatContext& __ctx, in __format_integer() argument
302 const auto& __np = std::use_facet<numpunct<_CharT>>(__ctx.locale()); in __format_integer()
311 __ctx.out(), in __format_integer()
320 auto __out_it = __ctx.out(); in __format_integer()
338 return __formatter::__write(__first, __last, __ctx.out(), __specs); in __format_integer()
340 …return __formatter::__write_transformed(__first, __last, __ctx.out(), __specs, __formatter::__hex_… in __format_integer()
346 _FormatContext& __ctx,
352 …return __formatter::__format_integer(__value, __ctx, __specs, __negative, __array.begin(), __array…
356 …return __formatter::__format_integer(__value, __ctx, __specs, __negative, __array.begin(), __array…
362 …__value, __ctx, __specs, __negative, __array.begin(), __array.end(), __value != 0 ? "0" : nullptr,…
[all …]
H A Dformatter_pointer.h35 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) { in parse()
36 …typename _ParseContext::iterator __result = __parser_.__parse(__ctx, __format_spec::__fields_point… in parse()
42 …FROM_ABI typename _FormatContext::iterator format(const void* __ptr, _FormatContext& __ctx) const { in format()
43 …t_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications(__ctx); in format()
50 return __formatter::__format_integer(reinterpret_cast<uintptr_t>(__ptr), __ctx, __specs); in format()
H A Dformatter_integer.h36 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) { in parse()
37 …typename _ParseContext::iterator __result = __parser_.__parse(__ctx, __format_spec::__fields_integ… in parse()
43 …_LIBCPP_HIDE_FROM_ABI typename _FormatContext::iterator format(_Tp __value, _FormatContext& __ctx)… in format()
44 …t_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications(__ctx); 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 Dparser_std_format_spec.h68 __parse_arg_id(_Iterator __begin, _Iterator __end, _ParseContext& __ctx) { in __parse_arg_id() argument
75 __format::__parse_number_result __r = __format::__parse_arg_id(__begin, __end, __ctx); in __parse_arg_id()
354 …_LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator __parse(_ParseContext& __ctx, __f…
355 auto __begin = __ctx.begin();
356 auto __end = __ctx.end();
384 if (__parse_width(__begin, __end, __ctx) && __begin == __end)
388 if (__parse_precision(__begin, __end, __ctx) && __begin == __end)
390 } else if (std::is_constant_evaluated() && __parse_precision(__begin, __end, __ctx)) {
496 …_LIBCPP_HIDE_FROM_ABI __parsed_specifications<_CharT> __get_parsed_std_specifications(auto& __ctx)…
503 .__width_{__get_width(__ctx)},
[all …]
H A Dcontainer_adaptor.h46 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) { in parse()
47 return __underlying_.parse(__ctx); in parse()
52 format(__maybe_const_adaptor& __adaptor, _FormatContext& __ctx) const { in format()
53 return __underlying_.format(__adaptor.__get_container(), __ctx); in format()
H A Dformatter_floating_point.h638 __format_floating_point(_Tp __value, _FormatContext& __ctx, __format_spec::__parsed_specifications<…
642 …return __formatter::__format_floating_point_non_finite(__ctx.out(), __specs, __negative, std::isna…
710 …return __formatter::__format_locale_specific_form(__ctx.out(), __buffer, __result, __ctx.locale(),…
721 … __formatter::__fill(__formatter::__copy(__buffer.begin(), __result.__exponent, __ctx.out()),
726 …__formatter::__copy(__buffer.begin(), __result.__last, __ctx.out()), __num_trailing_zeros, _CharT(…
729 auto __out_it = __ctx.out();
756 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) {
757 …typename _ParseContext::iterator __result = __parser_.__parse(__ctx, __format_spec::__fields_float…
763 …_LIBCPP_HIDE_FROM_ABI typename _FormatContext::iterator format(_Tp __value, _FormatContext& __ctx)…
764 …rn __formatter::__format_floating_point(__value, __ctx, __parser_.__get_parsed_std_specifications(
H A Dformat_context.h164 _LIBCPP_HIDE_FROM_ABI explicit basic_format_context(iterator __out_it, _Context& __ctx) in basic_format_context() argument
169 __ctx_(std::addressof(__ctx)),
206 std::locale (*__loc_)(void* __ctx);
210 basic_format_arg<basic_format_context> (*__arg_)(void* __ctx, size_t __id);
H A Dformat_arg.h217 …__format_([](basic_format_parse_context<_CharT>& __parse_ctx, _Context& __ctx, const void* __ptr) { in __handle()
224 __ctx.advance_to(__f.format(*const_cast<_Qp*>(static_cast<const _Dp*>(__ptr)), __ctx)); in __handle()
358 …E_FROM_ABI void format(basic_format_parse_context<char_type>& __parse_ctx, _Context& __ctx) const { in format() argument
359 __handle_.__format_(__parse_ctx, __ctx, __handle_.__ptr_); in format()
/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dformatter.h616 _FormatContext& __ctx, in __format_chrono() argument
626 __sstr.imbue(__ctx.locale()); in __format_chrono()
691 return __formatter::__write_string(__sstr.view(), __ctx.out(), __specs); in __format_chrono()
701 __parse(_ParseContext& __ctx, __format_spec::__fields __fields, __format_spec::__flags __flags) { in __parse()
702 return __parser_.__parse(__ctx, __fields, __flags); in __parse()
706 …ROM_ABI typename _FormatContext::iterator format(const _Tp& __value, _FormatContext& __ctx) const { in format()
708 …__value, __ctx, __parser_.__parser_.__get_parsed_chrono_specifications(__ctx), __parser_.__chrono_… in format()
720 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) {
721 return _Base::__parse(__ctx, __format_spec::__fields_chrono, __format_spec::__flags::__clock);
731 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) {
[all …]
H A Dparser_std_format_spec.h145 __parse(_ParseContext& __ctx, __fields __fields, __flags __flags) { in __parse() argument
146 _ConstIterator __begin = __parser_.__parse(__ctx, __fields); in __parse()
147 _ConstIterator __end = __ctx.end(); in __parse()
/freebsd/contrib/llvm-project/libcxx/include/__thread/
H A Dformatter.h40 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) {
41 return __parser_.__parse(__ctx, __format_spec::__fields_fill_align_width);
45 …_FROM_ABI typename _FormatContext::iterator format(__thread_id __id, _FormatContext& __ctx) const {
63 …t_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications(__ctx);
68 …return __formatter::__format_integer(reinterpret_cast<_Cp>(__get_underlying_id(__id)), __ctx, __sp…
/freebsd/contrib/llvm-project/libcxx/include/
H A Dvector2992 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) {
2993 return __underlying_.parse(__ctx);
2997 …_FROM_ABI typename _FormatContext::iterator format(const _Tp& __ref, _FormatContext& __ctx) const {
2998 return __underlying_.format(__ref, __ctx);