Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/include/__format/
H A Dformatter_string.h42 …_FROM_ABI auto format(basic_string_view<_CharT> __str, auto& __ctx) const -> decltype(__ctx.out())…
43 …return __formatter::__write_string(__str, __ctx.out(), __parser_.__get_parsed_std_specifications(_…
55 …_LIBCPP_HIDE_FROM_ABI auto format(const _CharT* __str, auto& __ctx) const -> decltype(__ctx.out())…
75 auto __out_it = __ctx.out();
88 _LIBCPP_HIDE_FROM_ABI auto format(_CharT* __str, auto& __ctx) const -> decltype(__ctx.out()) {
89 return _Base::format(__str, __ctx);
99 …_LIBCPP_HIDE_FROM_ABI auto format(_CharT __str[_Size], auto& __ctx) const -> decltype(__ctx.out())…
100 return _Base::format(basic_string_view<_CharT>(__str, _Size), __ctx);
110 …_LIBCPP_HIDE_FROM_ABI auto format(const _CharT __str[_Size], auto& __ctx) const -> decltype(__ctx.…
122 -> decltype(__ctx.out()) {
[all …]
H A Dformatter_char.h43 _LIBCPP_HIDE_FROM_ABI auto format(_CharT __value, auto& __ctx) const -> decltype(__ctx.out()) {
45 …return __formatter::__format_char(__value, __ctx.out(), __parser_.__get_parsed_std_specifications(…
52 __ctx,
53 __parser_.__get_parsed_std_specifications(__ctx));
55 …return __formatter::__format_integer(__value, __ctx, __parser_.__get_parsed_std_specifications(__c…
58 _LIBCPP_HIDE_FROM_ABI auto format(char __value, auto& __ctx) const -> decltype(__ctx.out())
61 return format(static_cast<wchar_t>(__value), __ctx);
H A Dformatter_integral.h203 auto& __ctx,
209 int __base) -> decltype(__ctx.out()) {
219 const auto& __np = use_facet<numpunct<_CharT>>(__ctx.locale());
228 __ctx.out(),
237 auto __out_it = __ctx.out();
255 return __formatter::__write(__first, __last, __ctx.out(), __specs);
263 -> decltype(__ctx.out()) {
302 -> decltype(__ctx.out()) {
314 return __formatter::__format_integer(__r, __ctx, __specs, __negative);
341 -> decltype(__ctx.out()) {
[all …]
H A Dformatter_bool.h48 _LIBCPP_HIDE_FROM_ABI auto format(bool __value, auto& __ctx) const -> decltype(__ctx.out()) {
52 …return __formatter::__format_bool(__value, __ctx, __parser_.__get_parsed_std_specifications(__ctx)…
63 static_cast<unsigned>(__value), __ctx, __parser_.__get_parsed_std_specifications(__ctx));
H A Dformatter_pointer.h44 _LIBCPP_HIDE_FROM_ABI auto format(const void* __ptr, auto& __ctx) const -> decltype(__ctx.out()) {
45 …t_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications(__ctx);
48 return __formatter::__format_integer(reinterpret_cast<uintptr_t>(__ptr), __ctx, __specs);
H A Dformatter_integer.h45 _LIBCPP_HIDE_FROM_ABI auto format(_Tp __value, auto& __ctx) const -> decltype(__ctx.out()) {
46 …t_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications(__ctx);
49 return __formatter::__format_char(__value, __ctx.out(), __specs);
55 return __formatter::__format_integer(static_cast<_Type>(__value), __ctx, __specs);
H A Dformatter_floating_point.h604 __format_floating_point(_Tp __value, auto& __ctx, __format_spec::__parsed_specifications<_CharT> __…
605 -> decltype(__ctx.out()) {
609 …return __formatter::__format_floating_point_non_finite(__ctx.out(), __specs, __negative, _VSTD::is…
646 …return __formatter::__format_locale_specific_form(__ctx.out(), __buffer, __result, __ctx.locale(),…
658 …_VSTD::copy(__buffer.begin(), __result.__exponent, __ctx.out()), __num_trailing_zeros, _CharT('0')…
661 … _VSTD::copy(__buffer.begin(), __result.__last, __ctx.out()), __num_trailing_zeros, _CharT('0'));
664 auto __out_it = __ctx.out();
698 _LIBCPP_HIDE_FROM_ABI auto format(_Tp __value, auto& __ctx) const -> decltype(__ctx.out()) {
699 …rn __formatter::__format_floating_point(__value, __ctx, __parser_.__get_parsed_std_specifications(…
H A Dformat_arg.h152 …__format_([](basic_format_parse_context<_CharT>& __parse_ctx, _Context& __ctx, const void* __ptr) { in __handle()
163 __ctx.advance_to(__f.format(*const_cast<_Qp*>(static_cast<const _Dp*>(__ptr)), __ctx)); in __handle()
257 void format(basic_format_parse_context<char_type>& __parse_ctx, _Context& __ctx) const { in format() argument
258 __handle_.__format_(__parse_ctx, __ctx, __handle_.__ptr_); in format()
H A Dparser_std_format_spec.h289 __parsed_specifications<_CharT> __get_parsed_std_specifications(auto& __ctx) const { in __get_parsed_std_specifications() argument
297 .__width_{__get_width(__ctx)}, in __get_parsed_std_specifications()
298 .__precision_{__get_precision(__ctx)}, in __get_parsed_std_specifications()
533 int32_t __get_width(auto& __ctx) const { in __get_width() argument
537 int32_t __result = __format_spec::__substitute_arg_id(__ctx.arg(__width_)); in __get_width()
544 int32_t __get_precision(auto& __ctx) const { in __get_precision() argument
548 return __format_spec::__substitute_arg_id(__ctx.arg(__precision_)); in __get_precision()
/llvm-project-15.0.7/libcxx/include/
H A Dformat383 _ParseCtx& __parse_ctx, _Ctx& __ctx) {
403 __arg_t __type = __ctx.arg(__r.__value);
405 __ctx.__handle(__r.__value).__parse(__parse_ctx);
414 __arg.format(__parse_ctx, __ctx);
419 __ctx.advance_to(__formatter.format(__arg, __ctx));
422 __ctx.arg(__r.__value));
433 __vformat_to(_ParseCtx&& __parse_ctx, _Ctx&& __ctx) {
439 typename _Ctx::iterator __out_it = __ctx.out();
448 __ctx.advance_to(_VSTD::move(__out_it));
450 __handle_replacement_field(__begin, __end, __parse_ctx, __ctx);
[all …]