Home
last modified time | relevance | path

Searched refs:_CharT (Results 1 – 25 of 99) sorted by relevance

1234

/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dostream.h47 template <class _CharT, class _Traits, class _Duration>
49 _LIBCPP_HIDE_FROM_ABI basic_ostream<_CharT, _Traits>&
50 operator<<(basic_ostream<_CharT, _Traits>& __os, const sys_time<_Duration>& __tp) {
51 return __os << std::format(__os.getloc(), _LIBCPP_STATICALLY_WIDEN(_CharT, "{:L%F %T}"), __tp);
54 template <class _CharT, class _Traits>
55 _LIBCPP_HIDE_FROM_ABI basic_ostream<_CharT, _Traits>&
56 operator<<(basic_ostream<_CharT, _Traits>& __os, const sys_days& __dp) {
60 template <class _CharT, class _Traits, class _Duration>
61 _LIBCPP_HIDE_FROM_ABI basic_ostream<_CharT, _Traits>&
62 operator<<(basic_ostream<_CharT, _Traits>& __os, const file_time<_Duration> __tp) {
[all …]
H A Dparser_std_format_spec.h138 template <class _CharT>
140 using _ConstIterator = typename basic_format_parse_context<_CharT>::const_iterator;
152 __chrono_specs_ = basic_string_view<_CharT>{__begin, __last}; in __parse()
157 __parser<_CharT> __parser_;
158 basic_string_view<_CharT> __chrono_specs_;
167 if (*__begin != _CharT('%') && *__begin != _CharT('}')) in __parse_chrono_specs()
172 case _CharT('{'): in __parse_chrono_specs()
175 case _CharT('}'): in __parse_chrono_specs()
178 case _CharT(' in __parse_chrono_specs()
[all...]
H A Dformatter.h86 template <class _CharT, class _Rep, class _Period>
88 __format_sub_seconds(basic_stringstream<_CharT>& __sstr, const chrono::duration<_Rep, _Period>& __v… in __format_sub_seconds()
89 __sstr << std::use_facet<numpunct<_CharT>>(__sstr.getloc()).decimal_point(); in __format_sub_seconds()
110 std::format_to(std::ostreambuf_iterator<_CharT>{__sstr}, in __format_sub_seconds()
111 _LIBCPP_STATICALLY_WIDEN(_CharT, "{:0{}.0f}"), in __format_sub_seconds()
115 std::format_to(std::ostreambuf_iterator<_CharT>{__sstr}, in __format_sub_seconds()
116 _LIBCPP_STATICALLY_WIDEN(_CharT, "{:0{}}"), in __format_sub_seconds()
121 template <class _CharT, __is_time_point _Tp>
122 _LIBCPP_HIDE_FROM_ABI void __format_sub_seconds(basic_stringstream<_CharT>& __sstr, const _Tp& __va… in __format_sub_seconds()
126 template <class _CharT, class _Duration>
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Diomanip63 template <class _CharT, class _Traits>
64 friend _LIBCPP_HIDE_FROM_ABI basic_istream<_CharT, _Traits>&
65 operator>>(basic_istream<_CharT, _Traits>& __is, const __iom_t1& __x) {
70 template <class _CharT, class _Traits>
71 friend _LIBCPP_HIDE_FROM_ABI basic_ostream<_CharT, _Traits>&
72 operator<<(basic_ostream<_CharT, _Traits>& __os, const __iom_t1& __x) {
88 template <class _CharT, class _Traits>
89 friend _LIBCPP_HIDE_FROM_ABI basic_istream<_CharT, _Traits>&
90 operator>>(basic_istream<_CharT, _Traits>& __is, const __iom_t2& __x) {
95 template <class _CharT, class _Traits>
[all …]
H A Distream184 template <class _CharT, class _Traits>
185 class _LIBCPP_TEMPLATE_VIS basic_istream : virtual public basic_ios<_CharT, _Traits> {
195 typedef _CharT char_type;
300 template <class _CharT, class _Traits>
301 class _LIBCPP_TEMPLATE_VIS basic_istream<_CharT, _Traits>::sentry {
305 explicit sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false);
314 template <class _CharT, class _Traits>
315 basic_istream<_CharT, _Traits>::sentry::sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipw…
320 typedef istreambuf_iterator<_CharT, _Traits> _Ip;
321 const ctype<_CharT>& __ct = std::use_facet<ctype<_CharT> >(__is.getloc());
[all …]
H A Dregex994 template <class _CharT>
997 typedef _CharT char_type;
1083 template <class _CharT>
1084 const typename regex_traits<_CharT>::char_class_type regex_traits<_CharT>::__regex_word;
1086 template <class _CharT>
1087 regex_traits<_CharT>::regex_traits() {
1091 template <class _CharT>
1092 typename regex_traits<_CharT>::char_type regex_traits<_CharT>::translate_nocase(char_type __c) cons…
1096 template <class _CharT>
1098 typename regex_traits<_CharT>::string_type
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Dwrite_escaped.h46 template <class _CharT>
48 __write_string(basic_string_view<_CharT> __str,
49 output_iterator<const _CharT&> auto __out_it,
50 __format_spec::__parsed_specifications<_CharT> __specs) -> decltype(__out_it) {
64 template <class _CharT>
65 _LIBCPP_HIDE_FROM_ABI bool operator==(const _CharT* __cstr, __nul_terminator) {
66 return *__cstr == _CharT('\0');
69 template <class _CharT>
71 __write_escaped_code_unit(basic_string<_CharT>& __str, char32_t __value, const _CharT* __prefix) { in __write_escaped_code_unit()
80 __str += _CharT('}'); in __write_escaped_code_unit()
[all …]
H A Dformatter_integer.h32 template <__fmt_char_type _CharT>
44 …__format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications… in format()
56 __format_spec::__parser<_CharT> __parser_;
60 template <__fmt_char_type _CharT>
61 struct _LIBCPP_TEMPLATE_VIS formatter<signed char, _CharT> : public __formatter_integer<_CharT> {};
62 template <__fmt_char_type _CharT>
63 struct _LIBCPP_TEMPLATE_VIS formatter<short, _CharT> : public __formatter_integer<_CharT> {};
64 template <__fmt_char_type _CharT>
65 struct _LIBCPP_TEMPLATE_VIS formatter<int, _CharT> : public __formatter_integer<_CharT> {};
66 template <__fmt_char_type _CharT>
[all …]
H A Dformatter_string.h31 template <__fmt_char_type _CharT>
43 format(basic_string_view<_CharT> __str, _FormatContext& __ctx) const { in format()
56 __format_spec::__parser<_CharT> __parser_{.__alignment_ = __format_spec::__alignment::__left};
60 template <__fmt_char_type _CharT>
61 struct _LIBCPP_TEMPLATE_VIS formatter<const _CharT*, _CharT> : public __formatter_string<_CharT> {
62 using _Base = __formatter_string<_CharT>;
65 …_LIBCPP_HIDE_FROM_ABI typename _FormatContext::iterator format(const _CharT* __str, _FormatContext…
68 …__format_spec::__parsed_specifications<_CharT> __specs = _Base::__parser_.__get_parsed_std_specifi…
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);
[all …]
H A Dbuffer.h61 template <__fmt_char_type _CharT>
64 using value_type = _CharT;
67 _LIBCPP_HIDE_FROM_ABI explicit __output_buffer(_CharT* __ptr, size_t __capacity, _Tp* __obj) in __output_buffer()
70 __flush_([](_CharT* __p, size_t __n, void* __o) { static_cast<_Tp*>(__o)->__flush(__p, __n); }), in __output_buffer()
73 _LIBCPP_HIDE_FROM_ABI void __reset(_CharT* __ptr, size_t __capacity) { in __reset()
81 _LIBCPP_HIDE_FROM_ABI void push_back(_CharT __c) { in push_back()
93 /// conversion when _CharT is wchar_t.
161 _LIBCPP_HIDE_FROM_ABI void __fill(size_t __n, _CharT __value) { in __fill()
187 _CharT* __ptr_;
190 void (*__flush_)(_CharT*, size_
270 __flush(_CharT *,size_t __n) __flush() argument
[all...]
H A Dformatter_tuple.h38 template <__fmt_char_type _CharT, class _Tuple, formattable<_CharT>... _Args>
40 …_LIBCPP_HIDE_FROM_ABI constexpr void set_separator(basic_string_view<_CharT> __separator) noexcept… in set_separator()
44 …set_brackets(basic_string_view<_CharT> __opening_bracket, basic_string_view<_CharT> __closing_brac… in set_brackets()
57 else if (__begin != __end && *__begin == _CharT('m')) { in parse()
59 set_separator(_LIBCPP_STATICALLY_WIDEN(_CharT, ": ")); in parse()
66 if (__begin != __end && *__begin != _CharT('}')) in parse()
88 format(conditional_t<(formattable<const _Args, _CharT> && ...), const _Tuple&, _Tuple&> __tuple, in format()
90 …__format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications… in format()
107 __format::__retarget_buffer<_CharT> __buffer{8 * tuple_size_v<_Tuple>}; in format()
108 basic_format_context<typename __format::__retarget_buffer<_CharT>::__iterator, _CharT> __c{ in format()
[all …]
H A Drange_formatter.h40 template <class _Tp, class _CharT = char>
41 requires same_as<remove_cvref_t<_Tp>, _Tp> && formattable<_Tp, _CharT>
43 _LIBCPP_HIDE_FROM_ABI constexpr void set_separator(basic_string_view<_CharT> __separator) noexcept { in set_separator()
47 set_brackets(basic_string_view<_CharT> __opening_bracket, basic_string_view<_CharT> __closing_bracket) noexcept { in set_brackets()
52 _LIBCPP_HIDE_FROM_ABI constexpr formatter<_Tp, _CharT>& underlying() noexcept { return __underlying_; } in underlying()
53 _LIBCPP_HIDE_FROM_ABI constexpr const formatter<_Tp, _CharT>& underlying() const noexcept { return __underlying_; }
74 bool __has_range_underlying_spec = *__begin == _CharT(':'); in parse()
79 } else if (__begin != __end && *__begin != _CharT('}')) in parse()
97 if (__begin != __end && *__begin != _CharT('}')) in parse()
[all...]
H A Drange_default_formatter.h38 template <class _Rp, class _CharT>
40 ranges::input_range<const _Rp> && formattable<ranges::range_reference_t<const _Rp>, _CharT>;
42 template <class _Rp, class _CharT>
43 using __fmt_maybe_const = conditional_t<__const_formattable_range<_Rp, _CharT>, const _Rp, _Rp>;
90 template <range_format _Kp, ranges::input_range _Rp, class _CharT>
95 template <ranges::input_range _Rp, class _CharT>
96 struct _LIBCPP_TEMPLATE_VIS __range_default_formatter<range_format::sequence, _Rp, _CharT> {
98 using __maybe_const_r = __fmt_maybe_const<_Rp, _CharT>;
99 range_formatter<remove_cvref_t<ranges::range_reference_t<__maybe_const_r>>, _CharT> __underlying_;
102 _LIBCPP_HIDE_FROM_ABI constexpr void set_separator(basic_string_view<_CharT> __separato
[all...]
H A Dformat_functions.h86 template <class _CharT>
96 __parse_ = [](basic_format_parse_context<_CharT>& __ctx) { in __enable()
97 formatter<_Tp, _CharT> __f; in __enable()
105 …: __parse_([](basic_format_parse_context<_CharT>&) { std::__throw_format_error("Not a handle"); })… in __compile_time_handle()
108 void (*__parse_)(basic_format_parse_context<_CharT>&);
113 template <class _CharT>
116 using char_type = _CharT;
119 const __arg_t* __args, const __compile_time_handle<_CharT>* __handles, size_t __size) in __compile_time_basic_format_context()
125 _LIBCPP_HIDE_FROM_ABI constexpr iterator& operator=(_CharT) { return *this; }
136 _LIBCPP_HIDE_FROM_ABI constexpr const __compile_time_handle<_CharT>& __handle(size_t __id) const { in __handle()
[all …]
H A Dformatter_output.h102 template <__fmt_char_type _CharT, __fmt_char_type _OutCharT = _CharT>
104 __copy(basic_string_view<_CharT> __str, output_iterator<const _OutCharT&> auto __out_it) -> decltyp…
117 __fmt_char_type _CharT = typename iterator_traits<_Iterator>::value_type,
118 __fmt_char_type _OutCharT = _CharT>
125 __fmt_char_type _CharT = typename iterator_traits<_Iterator>::value_type,
126 __fmt_char_type _OutCharT = _CharT>
136 __fmt_char_type _CharT = typename iterator_traits<_Iterator>::value_type,
137 __fmt_char_type _OutCharT = _CharT,
158 template <__fmt_char_type _CharT, output_iterator<const _CharT&> _OutIt>
159 _LIBCPP_HIDE_FROM_ABI _OutIt __fill(_OutIt __out_it, size_t __n, _CharT __value) { in __fill()
[all …]
H A Dcontainer_adaptor.h37 template <class _Adaptor, class _CharT>
40 using __maybe_const_container = __fmt_maybe_const<typename _Adaptor::container_type, _CharT>;
42 formatter<ranges::ref_view<__maybe_const_container>, _CharT> __underlying_;
57 template <class _CharT, class _Tp, formattable<_CharT> _Container>
58 struct _LIBCPP_TEMPLATE_VIS formatter<queue<_Tp, _Container>, _CharT>
59 : public __formatter_container_adaptor<queue<_Tp, _Container>, _CharT> {};
61 template <class _CharT, class _Tp, class _Container, class _Compare>
62 struct _LIBCPP_TEMPLATE_VIS formatter<priority_queue<_Tp, _Container, _Compare>, _CharT>
63 : public __formatter_container_adaptor<priority_queue<_Tp, _Container, _Compare>, _CharT> {};
65 template <class _CharT, class _Tp, formattable<_CharT> _Container>
[all …]
H A Dparser_std_format_spec.h69 using _CharT = iter_value_t<_Iterator>; in __parse_arg_id() local
77 if (__r.__last == __end || *__r.__last != _CharT('}')) in __parse_arg_id()
263 template <class _CharT>
287 template <class _CharT>
313 __code_point<_CharT> __fill_;
337 template <class _CharT>
357 …if (__begin == __end || *__begin == _CharT('}') || (__fields.__use_range_fill_ && *__begin == _Cha…
414 if (__begin != __end && *__begin != _CharT('}'))
496 …_LIBCPP_HIDE_FROM_ABI __parsed_specifications<_CharT> __get_parsed_std_specifications(auto& __ctx)…
497 return __parsed_specifications<_CharT>{
[all …]
H A Dformat_string.h92 using _CharT = iter_value_t<_Iterator>;
102 uint32_t __value = *__begin - _CharT('0'); in __parse_number()
104 if (*__begin < _CharT('0') || *__begin > _CharT('9')) in __parse_number()
107 __value = __value * 10 + *__begin - _CharT('0'); in __parse_number()
110 if (__begin != __end_input && *__begin >= _CharT('0') && *__begin <= _CharT('9')) { in __parse_number()
117 uint64_t __v = uint64_t(__value) * 10 + *__begin++ - _CharT('0'); in __parse_number()
118 if (__v > __number_max || (__begin != __end_input && *__begin >= _CharT('0') && *__begin <= _CharT(' in __parse_number()
95 using _CharT = iter_value_t<_Iterator>; __parse_number() local
144 using _CharT = iter_value_t<_Iterator>; __parse_arg_id() local
[all...]
H A Dformatter_pointer.h31 template <__fmt_char_type _CharT>
43 …__format_spec::__parsed_specifications<_CharT> __specs = __parser_.__get_parsed_std_specifications… in format()
53 __format_spec::__parser<_CharT> __parser_;
61 template <__fmt_char_type _CharT>
62 struct _LIBCPP_TEMPLATE_VIS formatter<nullptr_t, _CharT> : public __formatter_pointer<_CharT> {};
63 template <__fmt_char_type _CharT>
64 struct _LIBCPP_TEMPLATE_VIS formatter<void*, _CharT> : public __formatter_pointer<_CharT> {};
65 template <__fmt_char_type _CharT>
66 struct _LIBCPP_TEMPLATE_VIS formatter<const void*, _CharT> : public __formatter_pointer<_CharT> {};
H A Dformatter_integral.h125 template <__fmt_char_type _CharT>
128 output_iterator<const _CharT&> auto __out_it,
129 __format_spec::__parsed_specifications<_CharT> __specs) -> decltype(__out_it) {
131 if constexpr (!same_as<_CharT, _Tp>) {
133 if constexpr (signed_integral<_CharT> == signed_integral<_Tp>) {
134 if (__value < numeric_limits<_CharT>::min() || __value > numeric_limits<_CharT>::max())
136 } else if constexpr (signed_integral<_CharT>) {
138 if (__value > static_cast<make_unsigned_t<_CharT>>(numeric_limits<_CharT>::max()))
142 if (__value < 0 || static_cast<make_unsigned_t<_Tp>>(__value) > numeric_limits<_CharT>::max())
147 const auto __c = static_cast<_CharT>(__value);
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__ostream/
H A Dbasic_ostream.h39 template <class _CharT, class _Traits>
40 class _LIBCPP_TEMPLATE_VIS basic_ostream : virtual public basic_ios<_CharT, _Traits> {
43 typedef _CharT char_type;
130 template <class _CharT, class _Traits>
131 class _LIBCPP_TEMPLATE_VIS basic_ostream<_CharT, _Traits>::sentry {
133 basic_ostream<_CharT, _Traits>& __os_;
136 explicit sentry(basic_ostream<_CharT, _Traits>& __os);
144 template <class _CharT, class _Traits>
145 basic_ostream<_CharT, _Traits>::sentry::sentry(basic_ostream<_CharT, _Traits>& __os) : __ok_(false)… in sentry() argument
153 template <class _CharT, class _Traits>
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__fwd/
H A Dsstream.h22 template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
25 template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
27 template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
29 template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
44 template <class _CharT, class _Traits, class _Allocator>
46 template <class _CharT, class _Traits, class _Allocator>
49 template <class _CharT, class _Traits, class _Allocator>
52 template <class _CharT, class _Traits, class _Allocator>
/freebsd/contrib/llvm-project/libcxx/include/__string/
H A Dchar_traits.h44 template <class _CharT>
173 template <class _CharT, class _IntT, _IntT _EOFVal>
175 using char_type = _CharT;
354 template <class _CharT, class _SizeT, class _Traits, _SizeT __npos>
356 __str_find(const _CharT* __p, _SizeT __sz, _CharT __c, _SizeT __pos) _NOEXCEPT {
359 const _CharT* __r = _Traits::find(__p + __pos, __sz - __pos, __c);
365 template <class _CharT, class _Traits>
366 _LIBCPP_HIDE_FROM_ABI inline _LIBCPP_CONSTEXPR_SINCE_CXX14 const _CharT* __search_substring(
367 …const _CharT* __first1, const _CharT* __last1, const _CharT* __first2, const _CharT* __last2) _NOE…
379 _CharT __f2 = *__first2;
[all …]
/freebsd/contrib/llvm-project/libcxx/src/
H A Dstd_stream.h32 template <class _CharT>
33 class _LIBCPP_HIDDEN __stdinbuf : public basic_streambuf<_CharT, char_traits<_CharT> > {
35 typedef _CharT char_type;
60 static constexpr bool __is_win32api_wide_char = !is_same_v<_CharT, char>;
71 template <class _CharT>
72 __stdinbuf<_CharT>::__stdinbuf(FILE* __fp, state_type* __st)
83 template <class _CharT> in __stdinbuf()
84 void __stdinbuf<_CharT>::imbue(const locale& __loc) { in __stdinbuf()
92 template <class _CharT>
[all...]
/freebsd/contrib/llvm-project/libcxx/include/__iterator/
H A Distreambuf_iterator.h27 template <class _CharT, class _Traits>
30 : public iterator<input_iterator_tag, _CharT, typename _Traits::off_type, _CharT*, _CharT>
37 typedef _CharT value_type;
39 typedef _CharT* pointer;
40 typedef _CharT reference;
41 typedef _CharT char_type;
44 typedef basic_streambuf<_CharT, _Traits> streambuf_type;
45 typedef basic_istream<_CharT, _Trait
[all...]

1234