Lines Matching refs:__str

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);
847 basic_string(const basic_string& __str, size_type __pos, size_type __n,
850 basic_string(const basic_string& __str, size_type __pos,
884 basic_string& operator=(const basic_string& __str);
892 basic_string& operator=(basic_string&& __str)
982 …IBCPP_INLINE_VISIBILITY basic_string& operator+=(const basic_string& __str) {return append(__str);}
999 basic_string& append(const basic_string& __str);
1009 basic_string& append(const basic_string& __str, size_type __pos, size_type __n=npos);
1078 basic_string& assign(const basic_string& __str) { return *this = __str; }
1081 basic_string& assign(basic_string&& __str)
1083 {*this = _VSTD::move(__str); return *this;}
1085 basic_string& assign(const basic_string& __str, size_type __pos, size_type __n=npos);
1121 basic_string& insert(size_type __pos1, const basic_string& __str);
1141 …basic_string& insert(size_type __pos1, const basic_string& __str, size_type __pos2, size_type __n=…
1179 basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str);
1189 …basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos…
1202 basic_string& replace(const_iterator __i1, const_iterator __i2, const basic_string& __str);
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)
1582 {__copy_assign_alloc(__str, integral_constant<bool,
1586 void __copy_assign_alloc(const basic_string& __str, true_type)
1588 if (__alloc() == __str.__alloc())
1589 __alloc() = __str.__alloc();
1592 if (!__str.__is_long())
1595 __alloc() = __str.__alloc();
1599 allocator_type __a = __str.__alloc();
1600 pointer __p = __alloc_traits::allocate(__a, __str.__get_long_cap());
1604 __set_long_cap(__str.__get_long_cap());
1605 __set_long_size(__str.size());
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)
1633 {__move_assign_alloc(__str, integral_constant<bool,
1841 basic_string<_CharT, _Traits, _Allocator>::basic_string(const basic_string& __str)
1842 : __r_(__second_tag(), __alloc_traits::select_on_container_copy_construction(__str.__alloc()))
1844 if (!__str.__is_long())
1845 __r_.first().__r = __str.__r_.first().__r;
1847 __init(_VSTD::__to_raw_pointer(__str.__get_long_pointer()), __str.__get_long_size());
1855 const basic_string& __str, const allocator_type& __a)
1858 if (!__str.__is_long())
1859 __r_.first().__r = __str.__r_.first().__r;
1861 __init(_VSTD::__to_raw_pointer(__str.__get_long_pointer()), __str.__get_long_size());
1871 basic_string<_CharT, _Traits, _Allocator>::basic_string(basic_string&& __str)
1877 : __r_(_VSTD::move(__str.__r_))
1879 __str.__zero();
1883 __get_db()->swap(this, &__str);
1889 basic_string<_CharT, _Traits, _Allocator>::basic_string(basic_string&& __str, const allocator_type&…
1892 if (__str.__is_long() && __a != __str.__alloc()) // copy, not move
1893 __init(_VSTD::__to_raw_pointer(__str.__get_long_pointer()), __str.__get_long_size());
1896 __r_.first().__r = __str.__r_.first().__r;
1897 __str.__zero();
1902 __get_db()->swap(this, &__str);
1956 basic_string<_CharT, _Traits, _Allocator>::basic_string(const basic_string& __str,
1961 size_type __str_sz = __str.size();
1964 __init(__str.data() + __pos, _VSTD::min(__n, __str_sz - __pos));
1972 basic_string<_CharT, _Traits, _Allocator>::basic_string(const basic_string& __str, size_type __pos,
1976 size_type __str_sz = __str.size();
1979 __init(__str.data() + __pos, __str_sz - __pos);
2269 basic_string<_CharT, _Traits, _Allocator>::operator=(const basic_string& __str)
2271 if (this != &__str)
2273 __copy_assign_alloc(__str);
2274 assign(__str.data(), __str.size());
2284 basic_string<_CharT, _Traits, _Allocator>::__move_assign(basic_string& __str, false_type)
2287 if (__alloc() != __str.__alloc())
2288 assign(__str);
2290 __move_assign(__str, true_type());
2296 basic_string<_CharT, _Traits, _Allocator>::__move_assign(basic_string& __str, true_type)
2304 __r_.first() = __str.__r_.first();
2305 __move_assign_alloc(__str);
2306 __str.__zero();
2312 basic_string<_CharT, _Traits, _Allocator>::operator=(basic_string&& __str)
2315 __move_assign(__str, integral_constant<bool,
2366 basic_string<_CharT, _Traits, _Allocator>::assign(const basic_string& __str, size_type __pos, size_…
2368 size_type __sz = __str.size();
2371 return assign(__str.data() + __pos, _VSTD::min(__n, __sz - __pos));
2546 basic_string<_CharT, _Traits, _Allocator>::append(const basic_string& __str)
2548 return append(__str.data(), __str.size());
2553 basic_string<_CharT, _Traits, _Allocator>::append(const basic_string& __str, size_type __pos, size_…
2555 size_type __sz = __str.size();
2558 return append(__str.data() + __pos, _VSTD::min(__n, __sz - __pos));
2723 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos1, const basic_string& __str)
2725 return insert(__pos1, __str.data(), __str.size());
2730 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos1, const basic_string& __str,
2733 size_type __str_sz = __str.size();
2736 return insert(__pos1, __str.data() + __pos2, _VSTD::min(__n, __str_sz - __pos2));
2913 …<_CharT, _Traits, _Allocator>::replace(size_type __pos1, size_type __n1, const basic_string& __str)
2915 return replace(__pos1, __n1, __str.data(), __str.size());
2920 …<_CharT, _Traits, _Allocator>::replace(size_type __pos1, size_type __n1, const basic_string& __str,
2923 size_type __str_sz = __str.size();
2926 return replace(__pos1, __n1, __str.data() + __pos2, _VSTD::min(__n2, __str_sz - __pos2));
2957 … _Traits, _Allocator>::replace(const_iterator __i1, const_iterator __i2, const basic_string& __str)
2960 __str.data(), __str.size());
3297 basic_string<_CharT, _Traits, _Allocator>::swap(basic_string& __str)
3308 if (!__str.__is_long())
3309 __get_db()->__invalidate_all(&__str);
3310 __get_db()->swap(this, &__str);
3315 __alloc() == __str.__alloc(), "swapping non-equal allocators");
3316 _VSTD::swap(__r_.first(), __str.__r_.first());
3317 __swap_allocator(__alloc(), __str.__alloc());
3345 basic_string<_CharT, _Traits, _Allocator>::find(const basic_string& __str,
3349 (data(), size(), __str.data(), __pos, __str.size());
3403 basic_string<_CharT, _Traits, _Allocator>::rfind(const basic_string& __str,
3407 (data(), size(), __str.data(), __pos, __str.size());
3461 basic_string<_CharT, _Traits, _Allocator>::find_first_of(const basic_string& __str,
3465 (data(), size(), __str.data(), __pos, __str.size());
3519 basic_string<_CharT, _Traits, _Allocator>::find_last_of(const basic_string& __str,
3523 (data(), size(), __str.data(), __pos, __str.size());
3577 basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(const basic_string& __str,
3581 (data(), size(), __str.data(), __pos, __str.size());
3636 basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(const basic_string& __str,
3640 (data(), size(), __str.data(), __pos, __str.size());
3707 basic_string<_CharT, _Traits, _Allocator>::compare(const basic_string& __str) const _NOEXCEPT
3709 return compare(__self_view(__str));
3755 const basic_string& __str) const
3757 return compare(__pos1, __n1, __str.data(), __str.size());
3781 const basic_string& __str,
3785 return compare(__pos1, __n1, __self_view(__str), __pos2, __n2);
4187 _LIBCPP_FUNC_VIS int stoi (const string& __str, size_t* __idx = 0, int __base = 10);
4188 _LIBCPP_FUNC_VIS long stol (const string& __str, size_t* __idx = 0, int __base = 10);
4189 _LIBCPP_FUNC_VIS unsigned long stoul (const string& __str, size_t* __idx = 0, int __base = 10);
4190 _LIBCPP_FUNC_VIS long long stoll (const string& __str, size_t* __idx = 0, int __base = 10);
4191 _LIBCPP_FUNC_VIS unsigned long long stoull(const string& __str, size_t* __idx = 0, int __base = 10);
4193 _LIBCPP_FUNC_VIS float stof (const string& __str, size_t* __idx = 0);
4194 _LIBCPP_FUNC_VIS double stod (const string& __str, size_t* __idx = 0);
4195 _LIBCPP_FUNC_VIS long double stold(const string& __str, size_t* __idx = 0);
4207 _LIBCPP_FUNC_VIS int stoi (const wstring& __str, size_t* __idx = 0, int __base = 10…
4208 _LIBCPP_FUNC_VIS long stol (const wstring& __str, size_t* __idx = 0, int __base = 10…
4209 _LIBCPP_FUNC_VIS unsigned long stoul (const wstring& __str, size_t* __idx = 0, int __base = 10…
4210 _LIBCPP_FUNC_VIS long long stoll (const wstring& __str, size_t* __idx = 0, int __base = 10…
4211 _LIBCPP_FUNC_VIS unsigned long long stoull(const wstring& __str, size_t* __idx = 0, int __base = 10…
4213 _LIBCPP_FUNC_VIS float stof (const wstring& __str, size_t* __idx = 0);
4214 _LIBCPP_FUNC_VIS double stod (const wstring& __str, size_t* __idx = 0);
4215 _LIBCPP_FUNC_VIS long double stold(const wstring& __str, size_t* __idx = 0);
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)
4288 { __str.erase(_VSTD::remove(__str.begin(), __str.end(), __v), __str.end()); }
4292 void erase_if(basic_string<_CharT, _Traits, _Allocator>& __str, _Predicate __pred)
4293 { __str.erase(_VSTD::remove_if(__str.begin(), __str.end(), __pred), __str.end()); }
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);