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, size_type n = npos,
103 basic_string(const value_type* s, const allocator_type& a = allocator_type());
104 basic_string(const value_type* s, size_type n, const allocator_type& a = allocator_type());
105 basic_string(size_type n, value_type c, const allocator_type& a = allocator_type());
107 basic_string(InputIterator begin, InputIterator end,
109 basic_string(initializer_list<value_type>, const Allocator& = Allocator());
110 basic_string(const basic_string&, const Allocator&);
111 basic_string(basic_string&&, const Allocator&);
113 ~basic_string();
115 basic_string& operator=(const basic_string& str);
116 basic_string& operator=(basic_string&& str)
120 basic_string& operator=(const value_type* s);
121 basic_string& operator=(value_type c);
122 basic_string& operator=(initializer_list<value_type>);
158 basic_string& operator+=(const basic_string& str);
159 basic_string& operator+=(const value_type* s);
160 basic_string& operator+=(value_type c);
161 basic_string& operator+=(initializer_list<value_type>);
163 basic_string& append(const basic_string& str);
164 basic_string& append(const basic_string& str, size_type pos, size_type n=npos); //C++14
165 basic_string& append(const value_type* s, size_type n);
166 basic_string& append(const value_type* s);
167 basic_string& append(size_type n, value_type c);
169 basic_string& append(InputIterator first, InputIterator last);
170 basic_string& append(initializer_list<value_type>);
179 basic_string& assign(const basic_string& str);
180 basic_string& assign(basic_string&& str);
181 basic_string& assign(const basic_string& str, size_type pos, size_type n=npos); // C++14
182 basic_string& assign(const value_type* s, size_type n);
183 basic_string& assign(const value_type* s);
184 basic_string& assign(size_type n, value_type c);
186 basic_string& assign(InputIterator first, InputIterator last);
187 basic_string& assign(initializer_list<value_type>);
189 basic_string& insert(size_type pos1, const basic_string& str);
190 basic_string& insert(size_type pos1, const basic_string& str,
192 basic_string& insert(size_type pos, const value_type* s, size_type n=npos); //C++14
193 basic_string& insert(size_type pos, const value_type* s);
194 basic_string& insert(size_type pos, size_type n, value_type c);
201 basic_string& erase(size_type pos = 0, size_type n = npos);
205 basic_string& replace(size_type pos1, size_type n1, const basic_string& str);
206 basic_string& replace(size_type pos1, size_type n1, const basic_string& str,
208 basic_string& replace(size_type pos, size_type n1, const value_type* s, size_type n2);
209 basic_string& replace(size_type pos, size_type n1, const value_type* s);
210 basic_string& replace(size_type pos, size_type n1, size_type n2, value_type c);
211 basic_string& replace(const_iterator i1, const_iterator i2, const basic_string& str);
212 basic_string& replace(const_iterator i1, const_iterator i2, const value_type* s, size_type n);
213 basic_string& replace(const_iterator i1, const_iterator i2, const value_type* s);
214 basic_string& replace(const_iterator i1, const_iterator i2, size_type n, value_type c);
216basic_string& replace(const_iterator i1, const_iterator i2, InputIterator j1, InputIterator j2);
217 basic_string& replace(const_iterator i1, const_iterator i2, initializer_list<value_type>);
220 basic_string substr(size_type pos = 0, size_type n = npos) const;
222 void swap(basic_string& str)
231 size_type find(const basic_string& str, size_type pos = 0) const noexcept;
236 size_type rfind(const basic_string& str, size_type pos = npos) const noexcept;
241 size_type find_first_of(const basic_string& str, size_type pos = 0) const noexcept;
246 size_type find_last_of(const basic_string& str, size_type pos = npos) const noexcept;
251 size_type find_first_not_of(const basic_string& str, size_type pos = 0) const noexcept;
256 size_type find_last_not_of(const basic_string& str, size_type pos = npos) const noexcept;
261 int compare(const basic_string& str) const noexcept;
262 int compare(size_type pos1, size_type n1, const basic_string& str) const;
263 int compare(size_type pos1, size_type n1, const basic_string& str,
273 basic_string<charT, traits, Allocator>
274 operator+(const basic_string<charT, traits, Allocator>& lhs,
275 const basic_string<charT, traits, Allocator>& rhs);
278 basic_string<charT, traits, Allocator>
279 operator+(const charT* lhs , const basic_string<charT,traits,Allocator>&rhs);
282 basic_string<charT, traits, Allocator>
283 operator+(charT lhs, const basic_string<charT,traits,Allocator>& rhs);
286 basic_string<charT, traits, Allocator>
287 operator+(const basic_string<charT, traits, Allocator>& lhs, const charT* rhs);
290 basic_string<charT, traits, Allocator>
291 operator+(const basic_string<charT, traits, Allocator>& lhs, charT rhs);
294 bool operator==(const basic_string<charT, traits, Allocator>& lhs,
295 const basic_string<charT, traits, Allocator>& rhs) noexcept;
298 bool operator==(const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
301 bool operator==(const basic_string<charT,traits,Allocator>& lhs, const charT* rhs) noexcept;
304 bool operator!=(const basic_string<charT,traits,Allocator>& lhs,
305 const basic_string<charT, traits, Allocator>& rhs) noexcept;
308 bool operator!=(const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
311 bool operator!=(const basic_string<charT, traits, Allocator>& lhs, const charT* rhs) noexcept;
314 bool operator< (const basic_string<charT, traits, Allocator>& lhs,
315 const basic_string<charT, traits, Allocator>& rhs) noexcept;
318 bool operator< (const basic_string<charT, traits, Allocator>& lhs, const charT* rhs) noexcept;
321 bool operator< (const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
324 bool operator> (const basic_string<charT, traits, Allocator>& lhs,
325 const basic_string<charT, traits, Allocator>& rhs) noexcept;
328 bool operator> (const basic_string<charT, traits, Allocator>& lhs, const charT* rhs) noexcept;
331 bool operator> (const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
334 bool operator<=(const basic_string<charT, traits, Allocator>& lhs,
335 const basic_string<charT, traits, Allocator>& rhs) noexcept;
338 bool operator<=(const basic_string<charT, traits, Allocator>& lhs, const charT* rhs) noexcept;
341 bool operator<=(const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
344 bool operator>=(const basic_string<charT, traits, Allocator>& lhs,
345 const basic_string<charT, traits, Allocator>& rhs) noexcept;
348 bool operator>=(const basic_string<charT, traits, Allocator>& lhs, const charT* rhs) noexcept;
351 bool operator>=(const charT* lhs, const basic_string<charT, traits, Allocator>& rhs) noexcept;
354 void swap(basic_string<charT, traits, Allocator>& lhs,
355 basic_string<charT, traits, Allocator>& rhs)
360 operator>>(basic_istream<charT, traits>& is, basic_string<charT, traits, Allocator>& str);
364 operator<<(basic_ostream<charT, traits>& os, const basic_string<charT, traits, Allocator>& str);
368 getline(basic_istream<charT, traits>& is, basic_string<charT, traits, Allocator>& str,
373 getline(basic_istream<charT, traits>& is, basic_string<charT, traits, Allocator>& str);
375 typedef basic_string<char> string;
376 typedef basic_string<wchar_t> wstring;
377 typedef basic_string<char16_t> u16string;
378 typedef basic_string<char32_t> u32string;
425 basic_string<char> operator "" s( const char *str, size_t len ); // C++14
426 basic_string<wchar_t> operator "" s( const wchar_t *str, size_t len ); // C++14
427 basic_string<char16_t> operator "" s( const char16_t *str, size_t len ); // C++14
428 basic_string<char32_t> operator "" s( const char32_t *str, size_t len ); // C++14
991 // helper fns for basic_string
1174 // basic_string
1177 basic_string<_CharT, _Traits, _Allocator>
1178 operator+(const basic_string<_CharT, _Traits, _Allocator>& __x,
1179 const basic_string<_CharT, _Traits, _Allocator>& __y);
1182 basic_string<_CharT, _Traits, _Allocator>
1183 operator+(const _CharT* __x, const basic_string<_CharT,_Traits,_Allocator>& __y);
1186 basic_string<_CharT, _Traits, _Allocator>
1187 operator+(_CharT __x, const basic_string<_CharT,_Traits,_Allocator>& __y);
1190 basic_string<_CharT, _Traits, _Allocator>
1191 operator+(const basic_string<_CharT, _Traits, _Allocator>& __x, const _CharT* __y);
1194 basic_string<_CharT, _Traits, _Allocator>
1195 operator+(const basic_string<_CharT, _Traits, _Allocator>& __x, _CharT __y);
1210 throw length_error("basic_string");
1212 assert(!"basic_string length_error");
1221 throw out_of_range("basic_string");
1223 assert(!"basic_string out_of_range");
1252 class _LIBCPP_TYPE_VIS_ONLY basic_string
1256 typedef basic_string __self;
1268 static_assert(is_pod<value_type>::value, "Character type of basic_string must be a POD");
1371 _LIBCPP_INLINE_VISIBILITY_EXCEPT_GCC49 basic_string()
1373 _LIBCPP_INLINE_VISIBILITY_EXCEPT_GCC49 explicit basic_string(const allocator_type& __a);
1374 basic_string(const basic_string& __str);
1375 basic_string(const basic_string& __str, const allocator_type& __a);
1378 basic_string(basic_string&& __str)
1381 basic_string(basic_string&& __str, const allocator_type& __a);
1383 _LIBCPP_INLINE_VISIBILITY_EXCEPT_GCC49 basic_string(const value_type* __s);
1385 basic_string(const value_type* __s, const allocator_type& __a);
1387 basic_string(const value_type* __s, size_type __n);
1389 basic_string(const value_type* __s, size_type __n, const allocator_type& __a);
1391 basic_string(size_type __n, value_type __c);
1393 basic_string(size_type __n, value_type __c, const allocator_type& __a);
1394 basic_string(const basic_string& __str, size_type __pos, size_type __n = npos,
1398 basic_string(_InputIterator __first, _InputIterator __last);
1401 basic_string(_InputIterator __first, _InputIterator __last, const allocator_type& __a);
1404 basic_string(initializer_list<value_type> __il);
1406 basic_string(initializer_list<value_type> __il, const allocator_type& __a);
1409 ~basic_string();
1411 basic_string& operator=(const basic_string& __str);
1414 basic_string& operator=(basic_string&& __str)
1418 _LIBCPP_INLINE_VISIBILITY basic_string& operator=(const value_type* __s) {return assign(__s);}
1419 basic_string& operator=(value_type __c);
1422basic_string& operator=(initializer_list<value_type> __il) {return assign(__il.begin(), __il.size(…
1501 …_LIBCPP_INLINE_VISIBILITY basic_string& operator+=(const basic_string& __str) {return append(__str…
1502 …_LIBCPP_INLINE_VISIBILITY basic_string& operator+=(const value_type* __s) {return append(_…
1503 …_LIBCPP_INLINE_VISIBILITY basic_string& operator+=(value_type __c) {push_back(__c); ret…
1505 …_LIBCPP_INLINE_VISIBILITY basic_string& operator+=(initializer_list<value_type> __il) {return appe…
1509 basic_string& append(const basic_string& __str);
1510 basic_string& append(const basic_string& __str, size_type __pos, size_type __n=npos);
1511 basic_string& append(const value_type* __s, size_type __n);
1512 basic_string& append(const value_type* __s);
1513 basic_string& append(size_type __n, value_type __c);
1519 basic_string&
1526 basic_string&
1531basic_string& append(initializer_list<value_type> __il) {return append(__il.begin(), __il.size());}
1543 basic_string& assign(const basic_string& __str);
1546 basic_string& assign(basic_string&& str)
1549 basic_string& assign(const basic_string& __str, size_type __pos, size_type __n=npos);
1550 basic_string& assign(const value_type* __s, size_type __n);
1551 basic_string& assign(const value_type* __s);
1552 basic_string& assign(size_type __n, value_type __c);
1558 basic_string&
1565 basic_string&
1570basic_string& assign(initializer_list<value_type> __il) {return assign(__il.begin(), __il.size());}
1574 basic_string& insert(size_type __pos1, const basic_string& __str);
1575basic_string& insert(size_type __pos1, const basic_string& __str, size_type __pos2, size_type __n=…
1576 basic_string& insert(size_type __pos, const value_type* __s, size_type __n);
1577 basic_string& insert(size_type __pos, const value_type* __s);
1578 basic_string& insert(size_type __pos, size_type __n, value_type __c);
1603 basic_string& erase(size_type __pos = 0, size_type __n = npos);
1610 basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str);
1611basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos…
1612 basic_string& replace(size_type __pos, size_type __n1, const value_type* __s, size_type __n2);
1613 basic_string& replace(size_type __pos, size_type __n1, const value_type* __s);
1614 basic_string& replace(size_type __pos, size_type __n1, size_type __n2, value_type __c);
1616 basic_string& replace(const_iterator __i1, const_iterator __i2, const basic_string& __str);
1618basic_string& replace(const_iterator __i1, const_iterator __i2, const value_type* __s, size_type _…
1620 basic_string& replace(const_iterator __i1, const_iterator __i2, const value_type* __s);
1622 basic_string& replace(const_iterator __i1, const_iterator __i2, size_type __n, value_type __c);
1627 basic_string&
1632basic_string& replace(const_iterator __i1, const_iterator __i2, initializer_list<value_type> __il)
1638 basic_string substr(size_type __pos = 0, size_type __n = npos) const;
1641 void swap(basic_string& __str)
1654 size_type find(const basic_string& __str, size_type __pos = 0) const _NOEXCEPT;
1661 size_type rfind(const basic_string& __str, size_type __pos = npos) const _NOEXCEPT;
1668 size_type find_first_of(const basic_string& __str, size_type __pos = 0) const _NOEXCEPT;
1676 size_type find_last_of(const basic_string& __str, size_type __pos = npos) const _NOEXCEPT;
1684 size_type find_first_not_of(const basic_string& __str, size_type __pos = 0) const _NOEXCEPT;
1692 size_type find_last_not_of(const basic_string& __str, size_type __pos = npos) const _NOEXCEPT;
1700 int compare(const basic_string& __str) const _NOEXCEPT;
1702 int compare(size_type __pos1, size_type __n1, const basic_string& __str) const;
1703 …int compare(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_ty…
1858 void __copy_assign_alloc(const basic_string& __str)
1863 void __copy_assign_alloc(const basic_string& __str, true_type)
1874 void __copy_assign_alloc(const basic_string&, false_type) _NOEXCEPT
1879 void __move_assign(basic_string& __str, false_type);
1881 void __move_assign(basic_string& __str, true_type)
1887 __move_assign_alloc(basic_string& __str)
1895 void __move_assign_alloc(basic_string& __c, true_type)
1902 void __move_assign_alloc(basic_string&, false_type)
1927 friend basic_string operator+<>(const basic_string&, const basic_string&);
1928 friend basic_string operator+<>(const value_type*, const basic_string&);
1929 friend basic_string operator+<>(value_type, const basic_string&);
1930 friend basic_string operator+<>(const basic_string&, const value_type*);
1931 friend basic_string operator+<>(const basic_string&, value_type);
1937 basic_string<_CharT, _Traits, _Allocator>::__invalidate_all_iterators()
1947 basic_string<_CharT, _Traits, _Allocator>::__invalidate_iterators_past(size_type
1976 basic_string<_CharT, _Traits, _Allocator>::basic_string()
1987 basic_string<_CharT, _Traits, _Allocator>::basic_string(const allocator_type& __a)
1998 basic_string<_CharT, _Traits, _Allocator>::__init(const value_type* __s, size_type __sz, size_type …
2022 basic_string<_CharT, _Traits, _Allocator>::__init(const value_type* __s, size_type __sz)
2046 basic_string<_CharT, _Traits, _Allocator>::basic_string(const value_type* __s)
2048 _LIBCPP_ASSERT(__s != nullptr, "basic_string(const char*) detected nullptr");
2057 basic_string<_CharT, _Traits, _Allocator>::basic_string(const value_type* __s, const allocator_type…
2060 _LIBCPP_ASSERT(__s != nullptr, "basic_string(const char*, allocator) detected nullptr");
2069 basic_string<_CharT, _Traits, _Allocator>::basic_string(const value_type* __s, size_type __n)
2071 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "basic_string(const char*, n) detected nullptr");
2080 basic_string<_CharT, _Traits, _Allocator>::basic_string(const value_type* __s, size_type __n, const…
2083 …_LIBCPP_ASSERT(__n == 0 || __s != nullptr, "basic_string(const char*, n, allocator) detected nullp…
2091 basic_string<_CharT, _Traits, _Allocator>::basic_string(const basic_string& __str)
2104 basic_string<_CharT, _Traits, _Allocator>::basic_string(const basic_string& __str, const allocator_…
2120 basic_string<_CharT, _Traits, _Allocator>::basic_string(basic_string&& __str)
2134 basic_string<_CharT, _Traits, _Allocator>::basic_string(basic_string&& __str, const allocator_type&…
2153 basic_string<_CharT, _Traits, _Allocator>::__init(size_type __n, value_type __c)
2177 basic_string<_CharT, _Traits, _Allocator>::basic_string(size_type __n, value_type __c)
2187 basic_string<_CharT, _Traits, _Allocator>::basic_string(size_type __n, value_type __c, const alloca…
2197 basic_string<_CharT, _Traits, _Allocator>::basic_string(const basic_string& __str, size_type __pos,…
2218 basic_string<_CharT, _Traits, _Allocator>::__init(_InputIterator __first, _InputIterator __last)
2245 basic_string<_CharT, _Traits, _Allocator>::__init(_ForwardIterator __first, _ForwardIterator __last)
2272 basic_string<_CharT, _Traits, _Allocator>::basic_string(_InputIterator __first, _InputIterator __la…
2283 basic_string<_CharT, _Traits, _Allocator>::basic_string(_InputIterator __first, _InputIterator __la…
2297 basic_string<_CharT, _Traits, _Allocator>::basic_string(initializer_list<value_type> __il)
2307 basic_string<_CharT, _Traits, _Allocator>::basic_string(initializer_list<value_type> __il, const al…
2319 basic_string<_CharT, _Traits, _Allocator>::~basic_string()
2330 basic_string<_CharT, _Traits, _Allocator>::__grow_by_and_replace
2363 basic_string<_CharT, _Traits, _Allocator>::__grow_by(size_type __old_cap, size_type __delta_cap, si…
2392 basic_string<_CharT, _Traits, _Allocator>&
2393 basic_string<_CharT, _Traits, _Allocator>::assign(const value_type* __s, size_type __n)
2414 basic_string<_CharT, _Traits, _Allocator>&
2415 basic_string<_CharT, _Traits, _Allocator>::assign(size_type __n, value_type __c)
2433 basic_string<_CharT, _Traits, _Allocator>&
2434 basic_string<_CharT, _Traits, _Allocator>::operator=(value_type __c)
2454 basic_string<_CharT, _Traits, _Allocator>&
2455 basic_string<_CharT, _Traits, _Allocator>::operator=(const basic_string& __str)
2470 basic_string<_CharT, _Traits, _Allocator>::__move_assign(basic_string& __str, false_type)
2481 basic_string<_CharT, _Traits, _Allocator>::__move_assign(basic_string& __str, true_type)
2493 basic_string<_CharT, _Traits, _Allocator>&
2494 basic_string<_CharT, _Traits, _Allocator>::operator=(basic_string&& __str)
2511 basic_string<_CharT, _Traits, _Allocator>&
2513 basic_string<_CharT, _Traits, _Allocator>::assign(_InputIterator __first, _InputIterator __last)
2526 basic_string<_CharT, _Traits, _Allocator>&
2528 basic_string<_CharT, _Traits, _Allocator>::assign(_ForwardIterator __first, _ForwardIterator __last)
2549 basic_string<_CharT, _Traits, _Allocator>&
2550 basic_string<_CharT, _Traits, _Allocator>::assign(const basic_string& __str)
2556 basic_string<_CharT, _Traits, _Allocator>&
2557 basic_string<_CharT, _Traits, _Allocator>::assign(const basic_string& __str, size_type __pos, size_…
2566 basic_string<_CharT, _Traits, _Allocator>&
2567 basic_string<_CharT, _Traits, _Allocator>::assign(const value_type* __s)
2576 basic_string<_CharT, _Traits, _Allocator>&
2577 basic_string<_CharT, _Traits, _Allocator>::append(const value_type* __s, size_type __n)
2599 basic_string<_CharT, _Traits, _Allocator>&
2600 basic_string<_CharT, _Traits, _Allocator>::append(size_type __n, value_type __c)
2619 basic_string<_CharT, _Traits, _Allocator>::push_back(value_type __c)
2660 basic_string<_CharT, _Traits, _Allocator>&
2662 basic_string<_CharT, _Traits, _Allocator>::append(_InputIterator __first, _InputIterator __last)
2674 basic_string<_CharT, _Traits, _Allocator>&
2676 basic_string<_CharT, _Traits, _Allocator>::append(_ForwardIterator __first, _ForwardIterator __last)
2696 basic_string<_CharT, _Traits, _Allocator>&
2697 basic_string<_CharT, _Traits, _Allocator>::append(const basic_string& __str)
2703 basic_string<_CharT, _Traits, _Allocator>&
2704 basic_string<_CharT, _Traits, _Allocator>::append(const basic_string& __str, size_type __pos, size_…
2713 basic_string<_CharT, _Traits, _Allocator>&
2714 basic_string<_CharT, _Traits, _Allocator>::append(const value_type* __s)
2723 basic_string<_CharT, _Traits, _Allocator>&
2724 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos, const value_type* __s, size_type…
2755 basic_string<_CharT, _Traits, _Allocator>&
2756 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos, size_type __n, value_type __c)
2791 typename basic_string<_CharT, _Traits, _Allocator>::iterator
2793 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, _InputIterator __first, _In…
2818 typename basic_string<_CharT, _Traits, _Allocator>::iterator
2820 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, _ForwardIterator __first, _…
2857 basic_string<_CharT, _Traits, _Allocator>&
2858 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos1, const basic_string& __str)
2864 basic_string<_CharT, _Traits, _Allocator>&
2865 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos1, const basic_string& __str,
2875 basic_string<_CharT, _Traits, _Allocator>&
2876 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos, const value_type* __s)
2883 typename basic_string<_CharT, _Traits, _Allocator>::iterator
2884 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, value_type __c)
2910 typename basic_string<_CharT, _Traits, _Allocator>::iterator
2911 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, size_type __n, value_type _…
2926 basic_string<_CharT, _Traits, _Allocator>&
2927 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, const value_typ…
2978 basic_string<_CharT, _Traits, _Allocator>&
2979 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, size_type __n2,…
3015 basic_string<_CharT, _Traits, _Allocator>&
3017 basic_string<_CharT, _Traits, _Allocator>::replace(const_iterator __i1, const_iterator __i2,
3040 basic_string<_CharT, _Traits, _Allocator>&
3041 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos1, size_type __n1, const basic_st…
3047 basic_string<_CharT, _Traits, _Allocator>&
3048 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos1, size_type __n1, const basic_st…
3058 basic_string<_CharT, _Traits, _Allocator>&
3059 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, const value_typ…
3067 basic_string<_CharT, _Traits, _Allocator>&
3068 basic_string<_CharT, _Traits, _Allocator>::replace(const_iterator __i1, const_iterator __i2, const
3076 basic_string<_CharT, _Traits, _Allocator>&
3077 basic_string<_CharT, _Traits, _Allocator>::replace(const_iterator __i1, const_iterator __i2, const …
3084 basic_string<_CharT, _Traits, _Allocator>&
3085 basic_string<_CharT, _Traits, _Allocator>::replace(const_iterator __i1, const_iterator __i2, const …
3092 basic_string<_CharT, _Traits, _Allocator>&
3093 basic_string<_CharT, _Traits, _Allocator>::replace(const_iterator __i1, const_iterator __i2, size_t…
3101 basic_string<_CharT, _Traits, _Allocator>&
3102 basic_string<_CharT, _Traits, _Allocator>::erase(size_type __pos, size_type __n)
3124 typename basic_string<_CharT, _Traits, _Allocator>::iterator
3125 basic_string<_CharT, _Traits, _Allocator>::erase(const_iterator __pos)
3142 typename basic_string<_CharT, _Traits, _Allocator>::iterator
3143 basic_string<_CharT, _Traits, _Allocator>::erase(const_iterator __first, const_iterator __last)
3160 basic_string<_CharT, _Traits, _Allocator>::pop_back()
3182 basic_string<_CharT, _Traits, _Allocator>::clear() _NOEXCEPT
3200 basic_string<_CharT, _Traits, _Allocator>::__erase_to_end(size_type __pos)
3217 basic_string<_CharT, _Traits, _Allocator>::resize(size_type __n, value_type __c)
3228 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3229 basic_string<_CharT, _Traits, _Allocator>::max_size() const _NOEXCEPT
3241 basic_string<_CharT, _Traits, _Allocator>::reserve(size_type __res_arg)
3304 typename basic_string<_CharT, _Traits, _Allocator>::const_reference
3305 basic_string<_CharT, _Traits, _Allocator>::operator[](size_type __pos) const
3313 typename basic_string<_CharT, _Traits, _Allocator>::reference
3314 basic_string<_CharT, _Traits, _Allocator>::operator[](size_type __pos)
3321 typename basic_string<_CharT, _Traits, _Allocator>::const_reference
3322 basic_string<_CharT, _Traits, _Allocator>::at(size_type __n) const
3330 typename basic_string<_CharT, _Traits, _Allocator>::reference
3331 basic_string<_CharT, _Traits, _Allocator>::at(size_type __n)
3340 typename basic_string<_CharT, _Traits, _Allocator>::reference
3341 basic_string<_CharT, _Traits, _Allocator>::front()
3349 typename basic_string<_CharT, _Traits, _Allocator>::const_reference
3350 basic_string<_CharT, _Traits, _Allocator>::front() const
3358 typename basic_string<_CharT, _Traits, _Allocator>::reference
3359 basic_string<_CharT, _Traits, _Allocator>::back()
3367 typename basic_string<_CharT, _Traits, _Allocator>::const_reference
3368 basic_string<_CharT, _Traits, _Allocator>::back() const
3375 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3376 basic_string<_CharT, _Traits, _Allocator>::copy(value_type* __s, size_type __n, size_type __pos) co…
3388 basic_string<_CharT, _Traits, _Allocator>
3389 basic_string<_CharT, _Traits, _Allocator>::substr(size_type __pos, size_type __n) const
3391 return basic_string(*this, __pos, __n, __alloc());
3397 basic_string<_CharT, _Traits, _Allocator>::swap(basic_string& __str)
3424 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3425 basic_string<_CharT, _Traits, _Allocator>::find(const value_type* __s,
3436 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3437 basic_string<_CharT, _Traits, _Allocator>::find(const basic_string& __str,
3446 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3447 basic_string<_CharT, _Traits, _Allocator>::find(const value_type* __s,
3456 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3457 basic_string<_CharT, _Traits, _Allocator>::find(value_type __c,
3467 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3468 basic_string<_CharT, _Traits, _Allocator>::rfind(const value_type* __s,
3479 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3480 basic_string<_CharT, _Traits, _Allocator>::rfind(const basic_string& __str,
3489 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3490 basic_string<_CharT, _Traits, _Allocator>::rfind(const value_type* __s,
3499 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3500 basic_string<_CharT, _Traits, _Allocator>::rfind(value_type __c,
3510 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3511 basic_string<_CharT, _Traits, _Allocator>::find_first_of(const value_type* __s,
3522 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3523 basic_string<_CharT, _Traits, _Allocator>::find_first_of(const basic_string& __str,
3532 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3533 basic_string<_CharT, _Traits, _Allocator>::find_first_of(const value_type* __s,
3543 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3544 basic_string<_CharT, _Traits, _Allocator>::find_first_of(value_type __c,
3553 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3554 basic_string<_CharT, _Traits, _Allocator>::find_last_of(const value_type* __s,
3565 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3566 basic_string<_CharT, _Traits, _Allocator>::find_last_of(const basic_string& __str,
3575 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3576 basic_string<_CharT, _Traits, _Allocator>::find_last_of(const value_type* __s,
3586 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3587 basic_string<_CharT, _Traits, _Allocator>::find_last_of(value_type __c,
3596 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3597 basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(const value_type* __s,
3608 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3609 basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(const basic_string& __str,
3618 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3619 basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(const value_type* __s,
3629 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3630 basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(value_type __c,
3640 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3641 basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(const value_type* __s,
3652 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3653 basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(const basic_string& __str,
3662 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3663 basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(const value_type* __s,
3673 typename basic_string<_CharT, _Traits, _Allocator>::size_type
3674 basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(value_type __c,
3686 basic_string<_CharT, _Traits, _Allocator>::compare(const basic_string& __str) const _NOEXCEPT
3704 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
3706 const basic_string& __str) const
3713 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
3715 const basic_string& __str,
3728 basic_string<_CharT, _Traits, _Allocator>::compare(const value_type* __s) const _NOEXCEPT
3736 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
3746 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
3772 basic_string<_CharT, _Traits, _Allocator>::__invariants() const
3790 operator==(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3791 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3802 operator==(const basic_string<char, char_traits<char>, _Allocator>& __lhs,
3803 const basic_string<char, char_traits<char>, _Allocator>& __rhs) _NOEXCEPT
3822 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3830 operator==(const basic_string<_CharT,_Traits,_Allocator>& __lhs,
3841 operator!=(const basic_string<_CharT,_Traits,_Allocator>& __lhs,
3842 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3851 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3859 operator!=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3870 operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3871 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3879 operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3889 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3899 operator> (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3900 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3908 operator> (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3918 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3928 operator<=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3929 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3937 operator<=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3947 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3957 operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3958 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3966 operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3976 const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT
3984 basic_string<_CharT, _Traits, _Allocator>
3985 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3986 const basic_string<_CharT, _Traits, _Allocator>& __rhs)
3988 basic_string<_CharT, _Traits, _Allocator> __r(__lhs.get_allocator());
3989 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = __lhs.size();
3990 typename basic_string<_CharT, _Traits, _Allocator>::size_type __rhs_sz = __rhs.size();
3997 basic_string<_CharT, _Traits, _Allocator>
3998 operator+(const _CharT* __lhs , const basic_string<_CharT,_Traits,_Allocator>& __rhs)
4000 basic_string<_CharT, _Traits, _Allocator> __r(__rhs.get_allocator());
4001 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = _Traits::length(__lhs);
4002 typename basic_string<_CharT, _Traits, _Allocator>::size_type __rhs_sz = __rhs.size();
4009 basic_string<_CharT, _Traits, _Allocator>
4010 operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Allocator>& __rhs)
4012 basic_string<_CharT, _Traits, _Allocator> __r(__rhs.get_allocator());
4013 typename basic_string<_CharT, _Traits, _Allocator>::size_type __rhs_sz = __rhs.size();
4020 basic_string<_CharT, _Traits, _Allocator>
4021 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs)
4023 basic_string<_CharT, _Traits, _Allocator> __r(__lhs.get_allocator());
4024 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = __lhs.size();
4025 typename basic_string<_CharT, _Traits, _Allocator>::size_type __rhs_sz = _Traits::length(__rhs);
4032 basic_string<_CharT, _Traits, _Allocator>
4033 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, _CharT __rhs)
4035 basic_string<_CharT, _Traits, _Allocator> __r(__lhs.get_allocator());
4036 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = __lhs.size();
4046 basic_string<_CharT, _Traits, _Allocator>
4047 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const basic_string<_CharT, _Traits, _A…
4054 basic_string<_CharT, _Traits, _Allocator>
4055 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, basic_string<_CharT, _Traits, _Al…
4062 basic_string<_CharT, _Traits, _Allocator>
4063 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, basic_string<_CharT, _Traits, _Allocat…
4070 basic_string<_CharT, _Traits, _Allocator>
4071 operator+(const _CharT* __lhs , basic_string<_CharT,_Traits,_Allocator>&& __rhs)
4078 basic_string<_CharT, _Traits, _Allocator>
4079 operator+(_CharT __lhs, basic_string<_CharT,_Traits,_Allocator>&& __rhs)
4087 basic_string<_CharT, _Traits, _Allocator>
4088 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const _CharT* __rhs)
4095 basic_string<_CharT, _Traits, _Allocator>
4096 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, _CharT __rhs)
4109 swap(basic_string<_CharT, _Traits, _Allocator>& __lhs,
4110 basic_string<_CharT, _Traits, _Allocator>& __rhs)
4118 typedef basic_string<char16_t> u16string;
4119 typedef basic_string<char32_t> u32string;
4164 const typename basic_string<_CharT, _Traits, _Allocator>::size_type
4165 basic_string<_CharT, _Traits, _Allocator>::npos;
4168 struct _LIBCPP_TYPE_VIS_ONLY hash<basic_string<_CharT, _Traits, _Allocator> >
4169 : public unary_function<basic_string<_CharT, _Traits, _Allocator>, size_t>
4172 operator()(const basic_string<_CharT, _Traits, _Allocator>& __val) const _NOEXCEPT;
4177 hash<basic_string<_CharT, _Traits, _Allocator> >::operator()(
4178 const basic_string<_CharT, _Traits, _Allocator>& __val) const _NOEXCEPT
4186 const basic_string<_CharT, _Traits, _Allocator>& __str);
4191 basic_string<_CharT, _Traits, _Allocator>& __str);
4196 basic_string<_CharT, _Traits, _Allocator>& __str, _CharT __dlm);
4202 basic_string<_CharT, _Traits, _Allocator>& __str);
4210 basic_string<_CharT, _Traits, _Allocator>& __str, _CharT __dlm);
4216 basic_string<_CharT, _Traits, _Allocator>& __str);
4224 basic_string<_CharT, _Traits, _Allocator>::__dereferenceable(const const_iterator* __i) const
4232 basic_string<_CharT, _Traits, _Allocator>::__decrementable(const const_iterator* __i) const
4240 basic_string<_CharT, _Traits, _Allocator>::__addable(const const_iterator* __i, ptrdiff_t __n) const
4248 basic_string<_CharT, _Traits, _Allocator>::__subscriptable(const const_iterator* __i, ptrdiff_t __n…
4257 // Literal suffixes for basic_string [basic.string.literals]
4263 basic_string<char> operator "" s( const char *__str, size_t __len )
4265 return basic_string<char> (__str, __len);
4269 basic_string<wchar_t> operator "" s( const wchar_t *__str, size_t __len )
4271 return basic_string<wchar_t> (__str, __len);
4275 basic_string<char16_t> operator "" s( const char16_t *__str, size_t __len )
4277 return basic_string<char16_t> (__str, __len);
4281 basic_string<char32_t> operator "" s( const char32_t *__str, size_t __len )
4283 return basic_string<char32_t> (__str, __len);
4289 _LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_TYPE_VIS basic_string<char>)
4290 _LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_TYPE_VIS basic_string<wchar_t>)