• Home
  • Raw
  • Download

Lines Matching refs:basic_string

75 class basic_string
95 basic_string()
97 explicit basic_string(const allocator_type& a);
98 basic_string(const basic_string& str);
99 basic_string(basic_string&& str)
101 basic_string(const basic_string& str, size_type pos,
103 basic_string(const basic_string& str, size_type pos, size_type n,
106basic_string(const T& t, size_type pos, size_type n, const Allocator& a = Allocator()); // C++17
108 explicit basic_string(const T& t, const Allocator& a = Allocator()); // C++17
109 basic_string(const value_type* s, const allocator_type& a = allocator_type());
110 basic_string(const value_type* s, size_type n, const allocator_type& a = allocator_type());
111 basic_string(size_type n, value_type c, const allocator_type& a = allocator_type());
113 basic_string(InputIterator begin, InputIterator end,
115 basic_string(initializer_list<value_type>, const Allocator& = Allocator());
116 basic_string(const basic_string&, const Allocator&);
117 basic_string(basic_string&&, const Allocator&);
119 ~basic_string();
123 basic_string& operator=(const basic_string& str);
125 basic_string& operator=(const T& t); // C++17
126 basic_string& operator=(basic_string&& str)
130 basic_string& operator=(const value_type* s);
131 basic_string& operator=(value_type c);
132 basic_string& operator=(initializer_list<value_type>);
168 basic_string& operator+=(const basic_string& str);
170 basic_string& operator+=(const T& t); // C++17
171 basic_string& operator+=(const value_type* s);
172 basic_string& operator+=(value_type c);
173 basic_string& operator+=(initializer_list<value_type>);
175 basic_string& append(const basic_string& str);
177 basic_string& append(const T& t); // C++17
178 basic_string& append(const basic_string& str, size_type pos, size_type n=npos); //C++14
180 basic_string& append(const T& t, size_type pos, size_type n=npos); // C++17
181 basic_string& append(const value_type* s, size_type n);
182 basic_string& append(const value_type* s);
183 basic_string& append(size_type n, value_type c);
185 basic_string& append(InputIterator first, InputIterator last);
186 basic_string& append(initializer_list<value_type>);
195 basic_string& assign(const basic_string& str);
197 basic_string& assign(const T& t); // C++17
198 basic_string& assign(basic_string&& str);
199 basic_string& assign(const basic_string& str, size_type pos, size_type n=npos); // C++14
201 basic_string& assign(const T& t, size_type pos, size_type n=npos); // C++17
202 basic_string& assign(const value_type* s, size_type n);
203 basic_string& assign(const value_type* s);
204 basic_string& assign(size_type n, value_type c);
206 basic_string& assign(InputIterator first, InputIterator last);
207 basic_string& assign(initializer_list<value_type>);
209 basic_string& insert(size_type pos1, const basic_string& str);
211 basic_string& insert(size_type pos1, const T& t);
212 basic_string& insert(size_type pos1, const basic_string& str,
215 basic_string& insert(size_type pos1, const T& t, size_type pos2, size_type n); // C++17
216 basic_string& insert(size_type pos, const value_type* s, size_type n=npos); //C++14
217 basic_string& insert(size_type pos, const value_type* s);
218 basic_string& insert(size_type pos, size_type n, value_type c);
225 basic_string& erase(size_type pos = 0, size_type n = npos);
229 basic_string& replace(size_type pos1, size_type n1, const basic_string& str);
231 basic_string& replace(size_type pos1, size_type n1, const T& t); // C++17
232 basic_string& replace(size_type pos1, size_type n1, const basic_string& str,
235 basic_string& replace(size_type pos1, size_type n1, const T& t,
237 basic_string& replace(size_type pos, size_type n1, const value_type* s, size_type n2);
238 basic_string& replace(size_type pos, size_type n1, const value_type* s);
239 basic_string& replace(size_type pos, size_type n1, size_type n2, value_type c);
240 basic_string& replace(const_iterator i1, const_iterator i2, const basic_string& str);
242 basic_string& replace(const_iterator i1, const_iterator i2, const T& t); // C++17
243 basic_string& replace(const_iterator i1, const_iterator i2, const value_type* s, size_type n);
244 basic_string& replace(const_iterator i1, const_iterator i2, const value_type* s);
245 basic_string& replace(const_iterator i1, const_iterator i2, size_type n, value_type c);
247basic_string& replace(const_iterator i1, const_iterator i2, InputIterator j1, InputIterator j2);
248 basic_string& replace(const_iterator i1, const_iterator i2, initializer_list<value_type>);
251 basic_string substr(size_type pos = 0, size_type n = npos) const;
253 void swap(basic_string& str)
263 size_type find(const basic_string& str, size_type pos = 0) const noexcept;
270 size_type rfind(const basic_string& str, size_type pos = npos) const noexcept;
277 size_type find_first_of(const basic_string& str, size_type pos = 0) const noexcept;
284 size_type find_last_of(const basic_string& str, size_type pos = npos) const noexcept;
291 size_type find_first_not_of(const basic_string& str, size_type pos = 0) const noexcept;
298 size_type find_last_not_of(const basic_string& str, size_type pos = npos) const noexcept;
305 int compare(const basic_string& str) const noexcept;
308 int compare(size_type pos1, size_type n1, const basic_string& str) const;
311 int compare(size_type pos1, size_type n1, const basic_string& str,
332 basic_string(InputIterator, InputIterator, Allocator = Allocator())
333 -> basic_string<typename iterator_traits<InputIterator>::value_type,
338 basic_string<charT, traits, Allocator>
339 operator+(const basic_string<charT, traits, Allocator>& lhs,
340 const basic_string<charT, traits, Allocator>& rhs);
343 basic_string<charT, traits, Allocator>
344 operator+(const charT* lhs , const basic_string<charT,traits,Allocator>&rhs);
347 basic_string<charT, traits, Allocator>
348 operator+(charT lhs, const basic_string<charT,traits,Allocator>& rhs);
351 basic_string<charT, traits, Allocator>
352 operator+(const basic_string<charT, traits, Allocator>& lhs, const charT* rhs);
355 basic_string<charT, traits, Allocator>
356 operator+(const basic_string<charT, traits, Allocator>& lhs, charT rhs);
359 bool operator==(const basic_string<charT, traits, Allocator>& lhs,
360 const basic_string<charT, traits, Allocator>& rhs) noexcept;
363 bool operator==(const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
366 bool operator==(const basic_string<charT,traits,Allocator>& lhs, const charT* rhs) noexcept;
369 bool operator!=(const basic_string<charT,traits,Allocator>& lhs,
370 const basic_string<charT, traits, Allocator>& rhs) noexcept;
373 bool operator!=(const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
376 bool operator!=(const basic_string<charT, traits, Allocator>& lhs, const charT* rhs) noexcept;
379 bool operator< (const basic_string<charT, traits, Allocator>& lhs,
380 const basic_string<charT, traits, Allocator>& rhs) noexcept;
383 bool operator< (const basic_string<charT, traits, Allocator>& lhs, const charT* rhs) noexcept;
386 bool operator< (const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
389 bool operator> (const basic_string<charT, traits, Allocator>& lhs,
390 const basic_string<charT, traits, Allocator>& rhs) noexcept;
393 bool operator> (const basic_string<charT, traits, Allocator>& lhs, const charT* rhs) noexcept;
396 bool operator> (const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
399 bool operator<=(const basic_string<charT, traits, Allocator>& lhs,
400 const basic_string<charT, traits, Allocator>& rhs) noexcept;
403 bool operator<=(const basic_string<charT, traits, Allocator>& lhs, const charT* rhs) noexcept;
406 bool operator<=(const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
409 bool operator>=(const basic_string<charT, traits, Allocator>& lhs,
410 const basic_string<charT, traits, Allocator>& rhs) noexcept;
413 bool operator>=(const basic_string<charT, traits, Allocator>& lhs, const charT* rhs) noexcept;
416 bool operator>=(const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
419 void swap(basic_string<charT, traits, Allocator>& lhs,
420 basic_string<charT, traits, Allocator>& rhs)
425 operator>>(basic_istream<charT, traits>& is, basic_string<charT, traits, Allocator>& str);
429 operator<<(basic_ostream<charT, traits>& os, const basic_string<charT, traits, Allocator>& str);
433 getline(basic_istream<charT, traits>& is, basic_string<charT, traits, Allocator>& str,
438 getline(basic_istream<charT, traits>& is, basic_string<charT, traits, Allocator>& str);
441 void erase(basic_string<charT, traits, Allocator>& c, const U& value); // C++20
443 void erase_if(basic_string<charT, traits, Allocator>& c, Predicate pred); // C++20
445 typedef basic_string<char> string;
446 typedef basic_string<wchar_t> wstring;
447 typedef basic_string<char16_t> u16string;
448 typedef basic_string<char32_t> u32string;
495 basic_string<char> operator "" s( const char *str, size_t len ); // C++14
496 basic_string<wchar_t> operator "" s( const wchar_t *str, size_t len ); // C++14
497 basic_string<char16_t> operator "" s( const char16_t *str, size_t len ); // C++14
498 basic_string<char32_t> operator "" s( const char32_t *str, size_t len ); // C++14
572 // basic_string
575 basic_string<_CharT, _Traits, _Allocator>
576 operator+(const basic_string<_CharT, _Traits, _Allocator>& __x,
577 const basic_string<_CharT, _Traits, _Allocator>& __y);
580 basic_string<_CharT, _Traits, _Allocator>
581 operator+(const _CharT* __x, const basic_string<_CharT,_Traits,_Allocator>& __y);
584 basic_string<_CharT, _Traits, _Allocator>
585 operator+(_CharT __x, const basic_string<_CharT,_Traits,_Allocator>& __y);
589 basic_string<_CharT, _Traits, _Allocator>
590 operator+(const basic_string<_CharT, _Traits, _Allocator>& __x, const _CharT* __y);
593 basic_string<_CharT, _Traits, _Allocator>
594 operator+(const basic_string<_CharT, _Traits, _Allocator>& __x, _CharT __y);
610 _VSTD::__throw_length_error("basic_string");
617 _VSTD::__throw_out_of_range("basic_string");
667 class _LIBCPP_TEMPLATE_VIS basic_string
671 typedef basic_string __self;
684 …static_assert((!is_array<value_type>::value), "Character type of basic_string must not be an array…
685 …static_assert(( is_standard_layout<value_type>::value), "Character type of basic_string must be st…
686 … static_assert(( is_trivial<value_type>::value), "Character type of basic_string must be trivial");
790 _LIBCPP_INLINE_VISIBILITY basic_string()
793 _LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type& __a)
800 basic_string(const basic_string& __str);
801 basic_string(const basic_string& __str, const allocator_type& __a);
805 basic_string(basic_string&& __str)
813 basic_string(basic_string&& __str, const allocator_type& __a);
820 basic_string(const _CharT* __s) {
821 _LIBCPP_ASSERT(__s != nullptr, "basic_string(const char*) detected nullptr");
832 basic_string(const _CharT* __s, const _Allocator& __a);
835 basic_string(const _CharT* __s, size_type __n);
837 basic_string(const _CharT* __s, size_type __n, const _Allocator& __a);
839 basic_string(size_type __n, _CharT __c);
845 basic_string(size_type __n, _CharT __c, const _Allocator& __a);
847 basic_string(const basic_string& __str, size_type __pos, size_type __n,
850 basic_string(const basic_string& __str, size_type __pos,
855 basic_string(const _Tp& __t, size_type __pos, size_type __n,
860 explicit basic_string(const _Tp& __t);
864 explicit basic_string(const _Tp& __t, const allocator_type& __a);
868 basic_string(_InputIterator __first, _InputIterator __last);
871 basic_string(_InputIterator __first, _InputIterator __last, const allocator_type& __a);
874 basic_string(initializer_list<_CharT> __il);
876 basic_string(initializer_list<_CharT> __il, const _Allocator& __a);
879 inline ~basic_string();
884 basic_string& operator=(const basic_string& __str);
887 basic_string& operator=(const _Tp& __t)
892 basic_string& operator=(basic_string&& __str)
895basic_string& operator=(initializer_list<value_type> __il) {return assign(__il.begin(), __il.size(…
897 _LIBCPP_INLINE_VISIBILITY basic_string& operator=(const value_type* __s) {return assign(__s);}
898 basic_string& operator=(value_type __c);
982 …_LIBCPP_INLINE_VISIBILITY basic_string& operator+=(const basic_string& __str) {return append(__str…
989 basic_string&
992 …_LIBCPP_INLINE_VISIBILITY basic_string& operator+=(const value_type* __s) {return append(__s);}
993 …_LIBCPP_INLINE_VISIBILITY basic_string& operator+=(value_type __c) {push_back(__c); ret…
995 …_LIBCPP_INLINE_VISIBILITY basic_string& operator+=(initializer_list<value_type> __il) {return appe…
999 basic_string& append(const basic_string& __str);
1006 basic_string&
1009 basic_string& append(const basic_string& __str, size_type __pos, size_type __n=npos);
1016 basic_string&
1019 basic_string& append(const value_type* __s, size_type __n);
1020 basic_string& append(const value_type* __s);
1021 basic_string& append(size_type __n, value_type __c);
1028 basic_string& __append_forward_unsafe(_ForwardIterator, _ForwardIterator);
1035 basic_string&
1039 const basic_string __temp (__first, __last, __alloc());
1049 basic_string&
1058basic_string& append(initializer_list<value_type> __il) {return append(__il.begin(), __il.size());}
1074 basic_string&
1078 basic_string& assign(const basic_string& __str) { return *this = __str; }
1081 basic_string& assign(basic_string&& __str)
1085 basic_string& assign(const basic_string& __str, size_type __pos, size_type __n=npos);
1091 basic_string&
1094 basic_string& assign(const value_type* __s, size_type __n);
1095 basic_string& assign(const value_type* __s);
1096 basic_string& assign(size_type __n, value_type __c);
1103 basic_string&
1112 basic_string&
1117basic_string& assign(initializer_list<value_type> __il) {return assign(__il.begin(), __il.size());}
1121 basic_string& insert(size_type __pos1, const basic_string& __str);
1128 basic_string&
1138 basic_string&
1141basic_string& insert(size_type __pos1, const basic_string& __str, size_type __pos2, size_type __n=…
1142 basic_string& insert(size_type __pos, const value_type* __s, size_type __n);
1143 basic_string& insert(size_type __pos, const value_type* __s);
1144 basic_string& insert(size_type __pos, size_type __n, value_type __c);
1172 basic_string& erase(size_type __pos = 0, size_type __n = npos);
1179 basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str);
1186 basic_string&
1189basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos…
1195 basic_string&
1198 basic_string& replace(size_type __pos, size_type __n1, const value_type* __s, size_type __n2);
1199 basic_string& replace(size_type __pos, size_type __n1, const value_type* __s);
1200 basic_string& replace(size_type __pos, size_type __n1, size_type __n2, value_type __c);
1202 basic_string& replace(const_iterator __i1, const_iterator __i2, const basic_string& __str);
1209 basic_string&
1214basic_string& replace(const_iterator __i1, const_iterator __i2, const value_type* __s, size_type _…
1216 basic_string& replace(const_iterator __i1, const_iterator __i2, const value_type* __s);
1218 basic_string& replace(const_iterator __i1, const_iterator __i2, size_type __n, value_type __c);
1224 basic_string&
1229basic_string& replace(const_iterator __i1, const_iterator __i2, initializer_list<value_type> __il)
1235 basic_string substr(size_type __pos = 0, size_type __n = npos) const;
1238 void swap(basic_string& __str)
1259 size_type find(const basic_string& __str, size_type __pos = 0) const _NOEXCEPT;
1275 size_type rfind(const basic_string& __str, size_type __pos = npos) const _NOEXCEPT;
1291 size_type find_first_of(const basic_string& __str, size_type __pos = 0) const _NOEXCEPT;
1308 size_type find_last_of(const basic_string& __str, size_type __pos = npos) const _NOEXCEPT;
1325 size_type find_first_not_of(const basic_string& __str, size_type __pos = 0) const _NOEXCEPT;
1342 size_type find_last_not_of(const basic_string& __str, size_type __pos = npos) const _NOEXCEPT;
1359 int compare(const basic_string& __str) const _NOEXCEPT;
1380 int compare(size_type __pos1, size_type __n1, const basic_string& __str) const;
1381 …int compare(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_ty…
1581 void __copy_assign_alloc(const basic_string& __str)
1586 void __copy_assign_alloc(const basic_string& __str, true_type)
1611 void __copy_assign_alloc(const basic_string&, false_type) _NOEXCEPT
1616 void __move_assign(basic_string& __str, false_type)
1619 void __move_assign(basic_string& __str, true_type)
1629 __move_assign_alloc(basic_string& __str)
1637 void __move_assign_alloc(basic_string& __c, true_type)
1644 void __move_assign_alloc(basic_string&, false_type)
1651 friend basic_string operator+<>(const basic_string&, const basic_string&);
1652 friend basic_string operator+<>(const value_type*, const basic_string&);
1653 friend basic_string operator+<>(value_type, const basic_string&);
1654 friend basic_string operator+<>(const basic_string&, const value_type*);
1655 friend basic_string operator+<>(const basic_string&, value_type);
1665 basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator())
1666 -> basic_string<_CharT, char_traits<_CharT>, _Allocator>;
1673 explicit basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator())
1674 -> basic_string<_CharT, _Traits, _Allocator>;
1682 basic_string(basic_string_view<_CharT, _Traits>, _Sz, _Sz, const _Allocator& = _Allocator())
1683 -> basic_string<_CharT, _Traits, _Allocator>;
1690 basic_string<_CharT, _Traits, _Allocator>::__invalidate_all_iterators()
1700 basic_string<_CharT, _Traits, _Allocator>::__invalidate_iterators_past(size_type
1729 basic_string<_CharT, _Traits, _Allocator>::basic_string()
1740 basic_string<_CharT, _Traits, _Allocator>::basic_string(const allocator_type& __a)
1755 void basic_string<_CharT, _Traits, _Allocator>::__init(const value_type* __s,
1781 basic_string<_CharT, _Traits, _Allocator>::__init(const value_type* __s, size_type __sz)
1807 basic_string<_CharT, _Traits, _Allocator>::basic_string(const _CharT* __s, const _Allocator& __a)
1810 _LIBCPP_ASSERT(__s != nullptr, "basic_string(const char*, allocator) detected nullptr");
1819 basic_string<_CharT, _Traits, _Allocator>::basic_string(const _CharT* __s, size_type __n)
1821 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "basic_string(const char*, n) detected nullptr");
1830 basic_string<_CharT, _Traits, _Allocator>::basic_string(const _CharT* __s, size_type __n, const _Al…
1833 …_LIBCPP_ASSERT(__n == 0 || __s != nullptr, "basic_string(const char*, n, allocator) detected nullp…
1841 basic_string<_CharT, _Traits, _Allocator>::basic_string(const basic_string& __str)
1854 basic_string<_CharT, _Traits, _Allocator>::basic_string(
1855 const basic_string& __str, const allocator_type& __a)
1871 basic_string<_CharT, _Traits, _Allocator>::basic_string(basic_string&& __str)
1889 basic_string<_CharT, _Traits, _Allocator>::basic_string(basic_string&& __str, const allocator_type&…
1910 basic_string<_CharT, _Traits, _Allocator>::__init(size_type __n, value_type __c)
1934 basic_string<_CharT, _Traits, _Allocator>::basic_string(size_type __n, _CharT __c)
1946 basic_string<_CharT, _Traits, _Allocator>::basic_string(size_type __n, _CharT __c, const _Allocator…
1956 basic_string<_CharT, _Traits, _Allocator>::basic_string(const basic_string& __str,
1972 basic_string<_CharT, _Traits, _Allocator>::basic_string(const basic_string& __str, size_type __pos,
1987 basic_string<_CharT, _Traits, _Allocator>::basic_string(
2001 basic_string<_CharT, _Traits, _Allocator>::basic_string(const _Tp & __t)
2012 basic_string<_CharT, _Traits, _Allocator>::basic_string(const _Tp & __t, const _Allocator& __a)
2029 basic_string<_CharT, _Traits, _Allocator>::__init(_InputIterator __first, _InputIterator __last)
2056 basic_string<_CharT, _Traits, _Allocator>::__init(_ForwardIterator __first, _ForwardIterator __last)
2083 basic_string<_CharT, _Traits, _Allocator>::basic_string(_InputIterator __first, _InputIterator __la…
2094 basic_string<_CharT, _Traits, _Allocator>::basic_string(_InputIterator __first, _InputIterator __la…
2108 basic_string<_CharT, _Traits, _Allocator>::basic_string(
2120 basic_string<_CharT, _Traits, _Allocator>::basic_string(
2133 basic_string<_CharT, _Traits, _Allocator>::~basic_string()
2144 basic_string<_CharT, _Traits, _Allocator>::__grow_by_and_replace
2177 basic_string<_CharT, _Traits, _Allocator>::__grow_by(size_type __old_cap, size_type __delta_cap, si…
2206 basic_string<_CharT, _Traits, _Allocator>&
2207 basic_string<_CharT, _Traits, _Allocator>::assign(const value_type* __s, size_type __n)
2228 basic_string<_CharT, _Traits, _Allocator>&
2229 basic_string<_CharT, _Traits, _Allocator>::assign(size_type __n, value_type __c)
2247 basic_string<_CharT, _Traits, _Allocator>&
2248 basic_string<_CharT, _Traits, _Allocator>::operator=(value_type __c)
2268 basic_string<_CharT, _Traits, _Allocator>&
2269 basic_string<_CharT, _Traits, _Allocator>::operator=(const basic_string& __str)
2284 basic_string<_CharT, _Traits, _Allocator>::__move_assign(basic_string& __str, false_type)
2296 basic_string<_CharT, _Traits, _Allocator>::__move_assign(basic_string& __str, true_type)
2311 basic_string<_CharT, _Traits, _Allocator>&
2312 basic_string<_CharT, _Traits, _Allocator>::operator=(basic_string&& __str)
2328 basic_string<_CharT, _Traits, _Allocator>&
2330 basic_string<_CharT, _Traits, _Allocator>::assign(_InputIterator __first, _InputIterator __last)
2332 const basic_string __temp(__first, __last, __alloc());
2343 basic_string<_CharT, _Traits, _Allocator>&
2345 basic_string<_CharT, _Traits, _Allocator>::assign(_ForwardIterator __first, _ForwardIterator __last)
2365 basic_string<_CharT, _Traits, _Allocator>&
2366 basic_string<_CharT, _Traits, _Allocator>::assign(const basic_string& __str, size_type __pos, size_…
2379 basic_string<_CharT, _Traits, _Allocator>&
2381 basic_string<_CharT, _Traits, _Allocator>::assign(const _Tp & __t, size_type __pos, size_type __n)
2392 basic_string<_CharT, _Traits, _Allocator>&
2393 basic_string<_CharT, _Traits, _Allocator>::assign(const value_type* __s)
2402 basic_string<_CharT, _Traits, _Allocator>&
2403 basic_string<_CharT, _Traits, _Allocator>::append(const value_type* __s, size_type __n)
2425 basic_string<_CharT, _Traits, _Allocator>&
2426 basic_string<_CharT, _Traits, _Allocator>::append(size_type __n, value_type __c)
2445 basic_string<_CharT, _Traits, _Allocator>::__append_default_init(size_type __n)
2462 basic_string<_CharT, _Traits, _Allocator>::push_back(value_type __c)
2511 basic_string<_CharT, _Traits, _Allocator>&
2512 basic_string<_CharT, _Traits, _Allocator>::__append_forward_unsafe(
2526 const basic_string __temp (__first, __last, __alloc());
2545 basic_string<_CharT, _Traits, _Allocator>&
2546 basic_string<_CharT, _Traits, _Allocator>::append(const basic_string& __str)
2552 basic_string<_CharT, _Traits, _Allocator>&
2553 basic_string<_CharT, _Traits, _Allocator>::append(const basic_string& __str, size_type __pos, size_…
2566 basic_string<_CharT, _Traits, _Allocator>&
2568 basic_string<_CharT, _Traits, _Allocator>::append(const _Tp & __t, size_type __pos, size_type __n)
2578 basic_string<_CharT, _Traits, _Allocator>&
2579 basic_string<_CharT, _Traits, _Allocator>::append(const value_type* __s)
2588 basic_string<_CharT, _Traits, _Allocator>&
2589 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos, const value_type* __s, size_type…
2620 basic_string<_CharT, _Traits, _Allocator>&
2621 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos, size_type __n, value_type __c)
2656 typename basic_string<_CharT, _Traits, _Allocator>::iterator
2658 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, _InputIterator __first, _In…
2665 const basic_string __temp(__first, __last, __alloc());
2675 typename basic_string<_CharT, _Traits, _Allocator>::iterator
2677 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, _ForwardIterator __first, _…
2692 const basic_string __temp(__first, __last, __alloc());
2722 basic_string<_CharT, _Traits, _Allocator>&
2723 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos1, const basic_string& __str)
2729 basic_string<_CharT, _Traits, _Allocator>&
2730 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos1, const basic_string& __str,
2744 basic_string<_CharT, _Traits, _Allocator>&
2746 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos1, const _Tp& __t,
2757 basic_string<_CharT, _Traits, _Allocator>&
2758 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos, const value_type* __s)
2765 typename basic_string<_CharT, _Traits, _Allocator>::iterator
2766 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, value_type __c)
2792 typename basic_string<_CharT, _Traits, _Allocator>::iterator
2793 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, size_type __n, value_type _…
2808 basic_string<_CharT, _Traits, _Allocator>&
2809 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, const value_typ…
2863 basic_string<_CharT, _Traits, _Allocator>&
2864 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, size_type __n2,…
2901 basic_string<_CharT, _Traits, _Allocator>&
2903 basic_string<_CharT, _Traits, _Allocator>::replace(const_iterator __i1, const_iterator __i2,
2906 const basic_string __temp(__j1, __j2, __alloc());
2912 basic_string<_CharT, _Traits, _Allocator>&
2913 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos1, size_type __n1, const basic_st…
2919 basic_string<_CharT, _Traits, _Allocator>&
2920 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos1, size_type __n1, const basic_st…
2934 basic_string<_CharT, _Traits, _Allocator>&
2936 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos1, size_type __n1, const _Tp& __t,
2947 basic_string<_CharT, _Traits, _Allocator>&
2948 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, const value_typ…
2956 basic_string<_CharT, _Traits, _Allocator>&
2957 basic_string<_CharT, _Traits, _Allocator>::replace(const_iterator __i1, const_iterator __i2, const
2965 basic_string<_CharT, _Traits, _Allocator>&
2966 basic_string<_CharT, _Traits, _Allocator>::replace(const_iterator __i1, const_iterator __i2, const …
2973 basic_string<_CharT, _Traits, _Allocator>&
2974 basic_string<_CharT, _Traits, _Allocator>::replace(const_iterator __i1, const_iterator __i2, const …
2981 basic_string<_CharT, _Traits, _Allocator>&
2982 basic_string<_CharT, _Traits, _Allocator>::replace(const_iterator __i1, const_iterator __i2, size_t…
2990 basic_string<_CharT, _Traits, _Allocator>&
2991 basic_string<_CharT, _Traits, _Allocator>::erase(size_type __pos, size_type __n)
3013 typename basic_string<_CharT, _Traits, _Allocator>::iterator
3014 basic_string<_CharT, _Traits, _Allocator>::erase(const_iterator __pos)
3031 typename basic_string<_CharT, _Traits, _Allocator>::iterator
3032 basic_string<_CharT, _Traits, _Allocator>::erase(const_iterator __first, const_iterator __last)
3049 basic_string<_CharT, _Traits, _Allocator>::pop_back()
3071 basic_string<_CharT, _Traits, _Allocator>::clear() _NOEXCEPT
3089 basic_string<_CharT, _Traits, _Allocator>::__erase_to_end(size_type __pos)
3106 basic_string<_CharT, _Traits, _Allocator>::resize(size_type __n, value_type __c)
3117 basic_string<_CharT, _Traits, _Allocator>::__resize_default_init(size_type __n)
3128 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3129 basic_string<_CharT, _Traits, _Allocator>::max_size() const _NOEXCEPT
3141 basic_string<_CharT, _Traits, _Allocator>::reserve(size_type __res_arg)
3204 typename basic_string<_CharT, _Traits, _Allocator>::const_reference
3205 basic_string<_CharT, _Traits, _Allocator>::operator[](size_type __pos) const _NOEXCEPT
3213 typename basic_string<_CharT, _Traits, _Allocator>::reference
3214 basic_string<_CharT, _Traits, _Allocator>::operator[](size_type __pos) _NOEXCEPT
3221 typename basic_string<_CharT, _Traits, _Allocator>::const_reference
3222 basic_string<_CharT, _Traits, _Allocator>::at(size_type __n) const
3230 typename basic_string<_CharT, _Traits, _Allocator>::reference
3231 basic_string<_CharT, _Traits, _Allocator>::at(size_type __n)
3240 typename basic_string<_CharT, _Traits, _Allocator>::reference
3241 basic_string<_CharT, _Traits, _Allocator>::front()
3249 typename basic_string<_CharT, _Traits, _Allocator>::const_reference
3250 basic_string<_CharT, _Traits, _Allocator>::front() const
3258 typename basic_string<_CharT, _Traits, _Allocator>::reference
3259 basic_string<_CharT, _Traits, _Allocator>::back()
3267 typename basic_string<_CharT, _Traits, _Allocator>::const_reference
3268 basic_string<_CharT, _Traits, _Allocator>::back() const
3275 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3276 basic_string<_CharT, _Traits, _Allocator>::copy(value_type* __s, size_type __n, size_type __pos) co…
3288 basic_string<_CharT, _Traits, _Allocator>
3289 basic_string<_CharT, _Traits, _Allocator>::substr(size_type __pos, size_type __n) const
3291 return basic_string(*this, __pos, __n, __alloc());
3297 basic_string<_CharT, _Traits, _Allocator>::swap(basic_string& __str)
3332 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3333 basic_string<_CharT, _Traits, _Allocator>::find(const value_type* __s,
3344 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3345 basic_string<_CharT, _Traits, _Allocator>::find(const basic_string& __str,
3357 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3359 basic_string<_CharT, _Traits, _Allocator>::find(const _Tp &__t,
3369 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3370 basic_string<_CharT, _Traits, _Allocator>::find(const value_type* __s,
3379 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3380 basic_string<_CharT, _Traits, _Allocator>::find(value_type __c,
3390 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3391 basic_string<_CharT, _Traits, _Allocator>::rfind(const value_type* __s,
3402 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3403 basic_string<_CharT, _Traits, _Allocator>::rfind(const basic_string& __str,
3415 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3417 basic_string<_CharT, _Traits, _Allocator>::rfind(const _Tp& __t,
3427 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3428 basic_string<_CharT, _Traits, _Allocator>::rfind(const value_type* __s,
3437 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3438 basic_string<_CharT, _Traits, _Allocator>::rfind(value_type __c,
3448 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3449 basic_string<_CharT, _Traits, _Allocator>::find_first_of(const value_type* __s,
3460 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3461 basic_string<_CharT, _Traits, _Allocator>::find_first_of(const basic_string& __str,
3473 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3475 basic_string<_CharT, _Traits, _Allocator>::find_first_of(const _Tp& __t,
3485 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3486 basic_string<_CharT, _Traits, _Allocator>::find_first_of(const value_type* __s,
3496 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3497 basic_string<_CharT, _Traits, _Allocator>::find_first_of(value_type __c,
3506 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3507 basic_string<_CharT, _Traits, _Allocator>::find_last_of(const value_type* __s,
3518 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3519 basic_string<_CharT, _Traits, _Allocator>::find_last_of(const basic_string& __str,
3531 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3533 basic_string<_CharT, _Traits, _Allocator>::find_last_of(const _Tp& __t,
3543 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3544 basic_string<_CharT, _Traits, _Allocator>::find_last_of(const value_type* __s,
3554 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3555 basic_string<_CharT, _Traits, _Allocator>::find_last_of(value_type __c,
3564 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3565 basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(const value_type* __s,
3576 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3577 basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(const basic_string& __str,
3589 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3591 basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(const _Tp& __t,
3601 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3602 basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(const value_type* __s,
3612 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3613 basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(value_type __c,
3623 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3624 basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(const value_type* __s,
3635 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3636 basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(const basic_string& __str,
3648 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3650 basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(const _Tp& __t,
3660 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3661 basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(const value_type* __s,
3671 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3672 basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(value_type __c,
3688 basic_string<_CharT, _Traits, _Allocator>::compare(const _Tp& __t) const
3707 basic_string<_CharT, _Traits, _Allocator>::compare(const basic_string& __str) const _NOEXCEPT
3714 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
3742 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
3753 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
3755 const basic_string& __str) const
3767 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
3779 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
3781 const basic_string& __str,
3790 basic_string<_CharT, _Traits, _Allocator>::compare(const value_type* __s) const _NOEXCEPT
3798 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
3811 basic_string<_CharT, _Traits, _Allocator>::__invariants() const
3829 basic_string<_CharT, _Traits, _Allocator>::__clear_and_shrink() _NOEXCEPT
3845 operator==(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3846 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3857 operator==(const basic_string<char, char_traits<char>, _Allocator>& __lhs,
3858 const basic_string<char, char_traits<char>, _Allocator>& __rhs) _NOEXCEPT
3877 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3879 typedef basic_string<_CharT, _Traits, _Allocator> _String;
3880 _LIBCPP_ASSERT(__lhs != nullptr, "operator==(char*, basic_string): received nullptr");
3889 operator==(const basic_string<_CharT,_Traits,_Allocator>& __lhs,
3892 typedef basic_string<_CharT, _Traits, _Allocator> _String;
3893 _LIBCPP_ASSERT(__rhs != nullptr, "operator==(basic_string, char*): received nullptr");
3902 operator!=(const basic_string<_CharT,_Traits,_Allocator>& __lhs,
3903 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3912 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3920 operator!=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3931 operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3932 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3940 operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3950 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3960 operator> (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3961 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3969 operator> (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3979 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3989 operator<=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3990 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3998 operator<=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
4008 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
4018 operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
4019 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
4027 operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
4037 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
4045 basic_string<_CharT, _Traits, _Allocator>
4046 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
4047 const basic_string<_CharT, _Traits, _Allocator>& __rhs)
4049 basic_string<_CharT, _Traits, _Allocator> __r(__lhs.get_allocator());
4050 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = __lhs.size();
4051 typename basic_string<_CharT, _Traits, _Allocator>::size_type __rhs_sz = __rhs.size();
4058 basic_string<_CharT, _Traits, _Allocator>
4059 operator+(const _CharT* __lhs , const basic_string<_CharT,_Traits,_Allocator>& __rhs)
4061 basic_string<_CharT, _Traits, _Allocator> __r(__rhs.get_allocator());
4062 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = _Traits::length(__lhs);
4063 typename basic_string<_CharT, _Traits, _Allocator>::size_type __rhs_sz = __rhs.size();
4070 basic_string<_CharT, _Traits, _Allocator>
4071 operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Allocator>& __rhs)
4073 basic_string<_CharT, _Traits, _Allocator> __r(__rhs.get_allocator());
4074 typename basic_string<_CharT, _Traits, _Allocator>::size_type __rhs_sz = __rhs.size();
4082 basic_string<_CharT, _Traits, _Allocator>
4083 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs)
4085 basic_string<_CharT, _Traits, _Allocator> __r(__lhs.get_allocator());
4086 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = __lhs.size();
4087 typename basic_string<_CharT, _Traits, _Allocator>::size_type __rhs_sz = _Traits::length(__rhs);
4094 basic_string<_CharT, _Traits, _Allocator>
4095 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, _CharT __rhs)
4097 basic_string<_CharT, _Traits, _Allocator> __r(__lhs.get_allocator());
4098 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = __lhs.size();
4108 basic_string<_CharT, _Traits, _Allocator>
4109 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const basic_string<_CharT, _Traits, _A…
4116 basic_string<_CharT, _Traits, _Allocator>
4117 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, basic_string<_CharT, _Traits, _Al…
4124 basic_string<_CharT, _Traits, _Allocator>
4125 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, basic_string<_CharT, _Traits, _Allocat…
4132 basic_string<_CharT, _Traits, _Allocator>
4133 operator+(const _CharT* __lhs , basic_string<_CharT,_Traits,_Allocator>&& __rhs)
4140 basic_string<_CharT, _Traits, _Allocator>
4141 operator+(_CharT __lhs, basic_string<_CharT,_Traits,_Allocator>&& __rhs)
4149 basic_string<_CharT, _Traits, _Allocator>
4150 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const _CharT* __rhs)
4157 basic_string<_CharT, _Traits, _Allocator>
4158 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, _CharT __rhs)
4171 swap(basic_string<_CharT, _Traits, _Allocator>& __lhs,
4172 basic_string<_CharT, _Traits, _Allocator>& __rhs)
4179 typedef basic_string<char8_t> u8string;
4183 typedef basic_string<char16_t> u16string;
4184 typedef basic_string<char32_t> u32string;
4228 const typename basic_string<_CharT, _Traits, _Allocator>::size_type
4229 basic_string<_CharT, _Traits, _Allocator>::npos;
4232 struct _LIBCPP_TEMPLATE_VIS hash<basic_string<_CharT, _Traits, _Allocator> >
4233 : public unary_function<basic_string<_CharT, _Traits, _Allocator>, size_t>
4236 operator()(const basic_string<_CharT, _Traits, _Allocator>& __val) const _NOEXCEPT;
4241 hash<basic_string<_CharT, _Traits, _Allocator> >::operator()(
4242 const basic_string<_CharT, _Traits, _Allocator>& __val) const _NOEXCEPT
4250 const basic_string<_CharT, _Traits, _Allocator>& __str);
4255 basic_string<_CharT, _Traits, _Allocator>& __str);
4260 basic_string<_CharT, _Traits, _Allocator>& __str, _CharT __dlm);
4266 basic_string<_CharT, _Traits, _Allocator>& __str);
4274 basic_string<_CharT, _Traits, _Allocator>& __str, _CharT __dlm);
4280 basic_string<_CharT, _Traits, _Allocator>& __str);
4287 void erase(basic_string<_CharT, _Traits, _Allocator>& __str, const _Up& __v)
4292 void erase_if(basic_string<_CharT, _Traits, _Allocator>& __str, _Predicate __pred)
4300 basic_string<_CharT, _Traits, _Allocator>::__dereferenceable(const const_iterator* __i) const
4308 basic_string<_CharT, _Traits, _Allocator>::__decrementable(const const_iterator* __i) const
4316 basic_string<_CharT, _Traits, _Allocator>::__addable(const const_iterator* __i, ptrdiff_t __n) const
4324 basic_string<_CharT, _Traits, _Allocator>::__subscriptable(const const_iterator* __i, ptrdiff_t __n…
4332 _LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_string<char>)
4333 _LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_string<wchar_t>)
4336 // Literal suffixes for basic_string [basic.string.literals]
4342 basic_string<char> operator "" s( const char *__str, size_t __len )
4344 return basic_string<char> (__str, __len);
4348 basic_string<wchar_t> operator "" s( const wchar_t *__str, size_t __len )
4350 return basic_string<wchar_t> (__str, __len);
4355 basic_string<char8_t> operator "" s(const char8_t *__str, size_t __len) _NOEXCEPT
4357 return basic_string<char8_t> (__str, __len);
4362 basic_string<char16_t> operator "" s( const char16_t *__str, size_t __len )
4364 return basic_string<char16_t> (__str, __len);
4368 basic_string<char32_t> operator "" s( const char32_t *__str, size_t __len )
4370 return basic_string<char32_t> (__str, __len);