/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | string_view | 23 // 7.2, Class template basic_string_view 25 class basic_string_view; 28 inline constexpr bool ranges::enable_view<basic_string_view<charT, traits>> = true; 31 …inline constexpr bool ranges::enable_borrowed_range<basic_string_view<charT, traits>> = true; // … 33 // 7.9, basic_string_view non-member comparison functions 35 constexpr bool operator==(basic_string_view<charT, traits> x, 36 basic_string_view<charT, traits> y) noexcept; 38 constexpr bool operator!=(basic_string_view<charT, traits> x, 39 basic_string_view<charT, traits> y) noexcept; 41 constexpr bool operator< (basic_string_view<charT, traits> x, [all …]
|
H A D | sstream | 74 basic_string_view<char_type, traits_type> view() const noexcept; // C++20 154 basic_string_view<char_type, traits_type> view() const noexcept; // C++20 223 basic_string_view<char_type, traits_type> view() const noexcept; // C++20 293 basic_string_view<char_type, traits_type> view() const noexcept; // C++20 404 requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>> 410 requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>> 415 requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>> 418 basic_string_view<_CharT, _Traits> __sv = __t; 457 const basic_string_view<_CharT, _Traits> __view = view(); 476 _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept; [all …]
|
H A D | bitset | 50 typename basic_string_view<charT>::size_type n = basic_string_view<charT>::npos, 54 const basic_string_view<charT,traits>& str, 55 typename basic_string_view<charT,traits>::size_type pos = 0, 56 … typename basic_string_view<charT,traits>::size_type n = basic_string_view<charT,traits>::npos, 627 typename basic_string_view<_CharT>::size_type __n = basic_string_view<_CharT>::npos, 635 __init_from_string_view(basic_string_view<_CharT>(__str, __rlen), __zero, __one); 640 basic_string_view<_CharT, _Traits> __str, 641 typename basic_string_view<_CharT, _Traits>::size_type __pos = 0, 642 …typename basic_string_view<_CharT, _Traits>::size_type __n = basic_string_view<_CharT, _Traits>:… 649 …__init_from_string_view(basic_string_view<_CharT, _Traits>(__str.data() + __pos, __rlen), __zero, … [all …]
|
H A D | format | 30 basic_string_view<charT> str; // exposition only 36 constexpr basic_string_view<charT> get() const noexcept { return str; } 47 basic_string_view<charT> str; // exposition-only 50 runtime-format-string(basic_string_view<charT> s) noexcept : str(s) {}
|
H A D | string | 137 …operator basic_string_view<charT, traits>() const noexcept; // con… 350 …constexpr bool starts_with(basic_string_view<charT, traits> sv) const noexcept; // C++… 353 …constexpr bool ends_with(basic_string_view<charT, traits> sv) const noexcept; // C++… 357 …constexpr bool contains(basic_string_view<charT, traits> sv) const noexcept; // C++… 378 explicit basic_string(basic_string_view<charT, traits>, const Allocator& = Allocator()) 384 basic_string(basic_string_view<charT, traits>, 413 … type_identity_t<basic_string_view<charT, traits>> rhs); // Since C++26 417 … type_identity_t<basic_string_view<charT, traits>> rhs); // Since C++26 420 operator+(type_identity_t<basic_string_view<charT, traits>> lhs, 424 operator+(type_identity_t<basic_string_view<charT, traits>> lhs, [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__fwd/ |
H A D | string_view.h | 23 class _LIBCPP_TEMPLATE_VIS basic_string_view; variable 25 typedef basic_string_view<char> string_view; 27 typedef basic_string_view<char8_t> u8string_view; 29 typedef basic_string_view<char16_t> u16string_view; 30 typedef basic_string_view<char32_t> u32string_view; 32 typedef basic_string_view<wchar_t> wstring_view; 46 basic_string_view;
|
/freebsd/contrib/llvm-project/libcxx/include/__format/ |
H A D | formatter_string.h | 43 format(basic_string_view<_CharT> __str, _FormatContext& __ctx) const { in format() 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); 115 return _Base::format(basic_string_view<_CharT>(__str, _Size), __ctx); 129 return _Base::format(basic_string_view<_CharT>(__str.data(), __str.size()), __ctx); 135 struct _LIBCPP_TEMPLATE_VIS formatter<basic_string_view<_CharT, _Traits>, _CharT> : public __format… 140 format(basic_string_view<_CharT, _Traits> __str, _FormatContext& __ctx) const { 142 return _Base::format(basic_string_view<_CharT>(__str.data(), __str.size()), __ctx);
|
H A D | formatter_tuple.h | 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() 113 …return __formatter::__write_string_no_precision(basic_string_view{__buffer.__view()}, __ctx.out(),… in format() 133 basic_string_view<_CharT> __separator_ = _LIBCPP_STATICALLY_WIDEN(_CharT, ", "); 134 basic_string_view<_CharT> __opening_bracket_ = _LIBCPP_STATICALLY_WIDEN(_CharT, "("); 135 basic_string_view<_CharT> __closing_bracket_ = _LIBCPP_STATICALLY_WIDEN(_CharT, ")");
|
H A D | range_formatter.h | 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() 171 // When the range is contiguous use a basic_string_view instead to avoid a in __format_as_string() 172 // copy of the underlying data. The basic_string_view formatter in __format_as_string() 175 std::formatter<basic_string_view<_CharT>, _CharT> __formatter; in __format_as_string() 179 basic_string_view<_CharT>{ in __format_as_string() 255 basic_string_view<_CharT> __separator_ = _LIBCPP_STATICALLY_WIDEN(_CharT, ", "); in __parse_empty_range_underlying_spec() 256 basic_string_view<_CharT> __opening_bracket_ = _LIBCPP_STATICALLY_WIDEN(_CharT, "["); in __parse_empty_range_underlying_spec() 257 basic_string_view<_Char in __parse_empty_range_underlying_spec() [all...] |
H A D | range_default_formatter.h | 102 _LIBCPP_HIDE_FROM_ABI constexpr void set_separator(basic_string_view<_CharT> __separator) noexcept { 106 set_brackets(basic_string_view<_CharT> __opening_bracket, basic_string_view<_CharT> __closing_bracket) noexcept { 182 formatter<basic_string_view<_CharT>, _CharT> __underlying_; 196 // When the range is contiguous use a basic_string_view instead to avoid a 197 // copy of the underlying data. The basic_string_view formatter 200 return __underlying_.format(basic_string_view<_CharT>{ranges::data(__range), ranges::size(__range)}, __ctx);
|
H A D | formatter_output.h | 104 __copy(basic_string_view<_CharT> __str, output_iterator<const _OutCharT&> auto __out_it) -> decltyp… 121 return __formatter::__copy(basic_string_view{__first, __last}, std::move(__out_it)); 129 return __formatter::__copy(basic_string_view{std::to_address(__first), __n}, std::move(__out_it)); 234 __write(basic_string_view<_CharT> __str, 255 …return __formatter::__write(basic_string_view{__first, __last}, std::move(__out_it), __specs, __si… 301 basic_string_view<_CharT> __str, 320 _LIBCPP_HIDE_FROM_ABI int __truncate(basic_string_view<_CharT>& __str, int __precision) { in __truncate() 323 __str = basic_string_view<_CharT>{__str.begin(), __result.__last_}; in __truncate()
|
H A D | write_escaped.h | 48 __write_string(basic_string_view<_CharT> __str, 187 __escape(basic_string<_CharT>& __str, basic_string_view<_CharT> __values, __escape_quotation_mark _… in __escape() 217 …__formatter::__escape(__str, basic_string_view{std::addressof(__value), 1}, __escape_quotation_mar… 224 __format_escaped_string(basic_string_view<_CharT> __values, 231 return __formatter::__write_string(basic_string_view{__str}, std::move(__out_it), __specs);
|
H A D | format_functions.h | 235 …return __format::__compile_time_validate_argument<_CharT, basic_string_view<_CharT>, true>(__parse… in __compile_time_visit_format_arg() 345 basic_string_view<_CharT> __str_; 351 …_LIBCPP_HIDE_FROM_ABI __runtime_format_string(basic_string_view<_CharT> __s) noexcept : __str_(__s… in __runtime_format_string() 368 requires convertible_to<const _Tp&, basic_string_view<_CharT>> 374 _LIBCPP_HIDE_FROM_ABI constexpr basic_string_view<_CharT> get() const noexcept { return __str_; } in get() 380 basic_string_view<_CharT> __str_; 408 basic_string_view<_CharT> __fmt, in requires() 490 basic_string_view<_CharT> __fmt, in __vformat_to_n() 513 _LIBCPP_HIDE_FROM_ABI size_t __vformatted_size(basic_string_view<_CharT> __fmt, auto __args) { in __vformatted_size() 541 basic_string_view<_CharT> __fmt, in requires() [all …]
|
H A D | format_parse_context.h | 30 using const_iterator = typename basic_string_view<_CharT>::const_iterator; 34 basic_string_view<_CharT> __fmt, size_t __num_args = 0) noexcept
|
H A D | unicode.h | 126 using _Iterator = basic_string_view<char>::const_iterator; 252 using _Iterator = typename basic_string_view<wchar_t>::const_iterator; 530 using _Iterator = typename basic_string_view<_CharT>::const_iterator; 575 using _Iterator = typename basic_string_view<_CharT>::const_iterator;
|
H A D | format_arg_store.h | 120 same_as<_Tp, basic_string_view<typename _Tp::value_type, typename _Tp::traits_type>>) in requires() 193 __arg, basic_string_view<typename _Context::char_type>{__value, extent_v<_Dp> - 1}}; in __create_format_arg() 198 __arg, basic_string_view<typename _Context::char_type>{__value.data(), __value.size()}}; in __create_format_arg()
|
H A D | parser_std_format_spec.h | 1105 template <class _CharT, class _Iterator = typename basic_string_view<_CharT>::const_iterator> 1107 … basic_string_view<_CharT> __str, size_t __maximum, __column_width_rounding __rounding) noexcept { 1153 _LIBCPP_HIDE_FROM_ABI constexpr __column_width_result<typename basic_string_view<_CharT>::const_ite… 1154 __estimate_column_width(basic_string_view<_CharT> __str, size_t __maximum, __column_width_rounding)…
|
H A D | buffer.h | 95 _LIBCPP_HIDE_FROM_ABI void __copy(basic_string_view<_InCharT> __str) { in __copy() 585 _LIBCPP_HIDE_FROM_ABI void __copy(basic_string_view<_InCharT> __str) { 620 _LIBCPP_HIDE_FROM_ABI basic_string_view<_CharT> __view() { return {__ptr_, __size_}; }
|
H A D | formatter_integral.h | 429 …return __formatter::__write_string_no_precision(basic_string_view<_CharT>{__str}, __ctx.out(), __s… 432 basic_string_view<_CharT> __str =
|
H A D | format_arg.h | 247 basic_string_view<_CharT> __string_view_; 271 _LIBCPP_HIDE_FROM_ABI __basic_format_arg_value(basic_string_view<_CharT> __value) noexcept in __basic_format_arg_value()
|
/freebsd/contrib/llvm-project/libcxx/modules/std/ |
H A D | string_view.cppm |
|
/freebsd/contrib/llvm-project/libcxx/include/__ranges/ |
H A D | take_view.h | 217 inline constexpr bool __is_passthrough_specialization<basic_string_view<_CharT, _Traits>> = true; 237 struct __passthrough_type<basic_string_view<_CharT, _Traits>> { 238 using type = basic_string_view<_CharT, _Traits>;
|
H A D | drop_view.h | 167 inline constexpr bool __is_passthrough_specialization<basic_string_view<_CharT, _Traits>> = true; 192 struct __passthrough_type<basic_string_view<_CharT, _Traits>> { 193 using type = basic_string_view<_CharT, _Traits>;
|
/freebsd/contrib/llvm-project/libcxx/include/__chrono/ |
H A D | parser_std_format_spec.h | 152 __chrono_specs_ = basic_string_view<_CharT>{__begin, __last}; in __parse() 158 basic_string_view<_CharT> __chrono_specs_;
|
/freebsd/contrib/llvm-project/libcxx/include/__filesystem/ |
H A D | path.h | 117 struct __is_pathable_string< basic_string_view<_ECharT, _Traits>, 120 using _Str = basic_string_view<_ECharT, _Traits>; 400 typedef basic_string_view<value_type> __string_view; 586 _PathCVT<_ECharT>::__append_source(__pn_, basic_string_view<_ECharT>(&__x, 1));
|