Lines Matching refs:__str

143        *  @param  __str  Source string.
145 __versa_string(const __versa_string& __str)
146 : __vstring_base(__str) { }
151 * @param __str Source string.
157 __versa_string(__versa_string&& __str)
158 : __vstring_base(std::forward<__vstring_base>(__str)) { }
172 * @param __str Source string.
176 __versa_string(const __versa_string& __str, size_type __pos,
178 : __vstring_base(__str._M_data()
179 + __str._M_check(__pos,
181 __str._M_data() + __str._M_limit(__pos, __n)
186 * @param __str Source string.
191 __versa_string(const __versa_string& __str, size_type __pos,
193 : __vstring_base(__str._M_data()
194 + __str._M_check(__pos,
196 __str._M_data() + __str._M_limit(__pos, __n)
248 * @param __str Source string.
251 operator=(const __versa_string& __str)
252 { return this->assign(__str); }
257 * @param __str Source string.
259 * The contents of @a __str are moved into this string (without
260 * copying). @a __str is a valid, but unspecified string.
263 operator=(__versa_string&& __str)
266 this->swap(__str);
631 * @param __str The string to append.
635 operator+=(const __versa_string& __str)
636 { return this->append(__str); }
672 * @param __str The string to append.
676 append(const __versa_string& __str)
677 { return _M_append(__str._M_data(), __str.size()); }
681 * @param __str The string to append.
687 * This function appends @a __n characters from @a __str
689 * than the number of available characters in @a __str, the
690 * remainder of @a __str is appended.
693 append(const __versa_string& __str, size_type __pos, size_type __n)
694 { return _M_append(__str._M_data()
695 + __str._M_check(__pos, "__versa_string::append"),
696 __str._M_limit(__pos, __n)); }
778 * @param __str Source string to use.
782 assign(const __versa_string& __str)
784 this->_M_assign(__str);
791 * @param __str Source string to use.
794 * This function sets this string to the exact contents of @a __str.
795 * @a __str is a valid, but unspecified string.
798 assign(__versa_string&& __str)
800 this->swap(__str);
807 * @param __str The string to use.
813 * This function sets this string to the substring of @a __str
816 * __str, the remainder of @a __str is used.
819 assign(const __versa_string& __str, size_type __pos, size_type __n)
820 { return _M_replace(size_type(0), this->size(), __str._M_data()
821 + __str._M_check(__pos, "__versa_string::assign"),
822 __str._M_limit(__pos, __n)); }
946 * @param __str The string to insert.
950 * Inserts value of @a __str starting at @a __pos1. If adding
956 insert(size_type __pos1, const __versa_string& __str)
958 __str._M_data(), __str.size()); }
963 * @param __str The string to insert.
969 * @a __pos2 > @a __str.size().
971 * Starting at @a __pos1, insert @a __n character of @a __str
975 * beyond the end of @a __str, out_of_range is thrown. The
979 insert(size_type __pos1, const __versa_string& __str,
981 { return this->replace(__pos1, size_type(0), __str._M_data()
982 + __str._M_check(__pos2, "__versa_string::insert"),
983 __str._M_limit(__pos2, __n)); }
1139 * @param __str String to insert.
1146 * string. In place, the value of @a __str is inserted. If @a
1153 replace(size_type __pos, size_type __n, const __versa_string& __str)
1154 { return this->replace(__pos, __n, __str._M_data(), __str.size()); }
1160 * @param __str String to insert.
1169 * this string. In place, the value of @a __str is inserted.
1176 replace(size_type __pos1, size_type __n1, const __versa_string& __str,
1179 return this->replace(__pos1, __n1, __str._M_data()
1180 + __str._M_check(__pos2,
1182 __str._M_limit(__pos2, __n2));
1260 * @param __str String value to insert.
1265 * value of @a __str is inserted. If the length of result
1270 replace(iterator __i1, iterator __i2, const __versa_string& __str)
1271 { return this->replace(__i1, __i2, __str._M_data(), __str.size()); }
1522 * @param __str String to locate.
1527 * __str within this string. If found, returns the index where
1531 find(const __versa_string& __str, size_type __pos = 0) const
1532 { return this->find(__str.data(), __pos, __str.size()); }
1566 * @param __str String to locate.
1571 * __str within this string. If found, returns the index where
1575 rfind(const __versa_string& __str, size_type __pos = npos) const
1576 { return this->rfind(__str.data(), __pos, __str.size()); }
1625 * @param __str String containing characters to locate.
1630 * @a __str within this string. If found, returns the index where it was
1634 find_first_of(const __versa_string& __str, size_type __pos = 0) const
1635 { return this->find_first_of(__str.data(), __pos, __str.size()); }
1687 * @param __str String containing characters to locate.
1692 * characters of @a __str within this string. If found,
1697 find_last_of(const __versa_string& __str, size_type __pos = npos) const
1698 { return this->find_last_of(__str.data(), __pos, __str.size()); }
1750 * @param __str String containing characters to avoid.
1755 * contained in @a __str within this string. If found, returns
1759 find_first_not_of(const __versa_string& __str, size_type __pos = 0) const
1760 { return this->find_first_not_of(__str.data(), __pos, __str.size()); }
1810 * @param __str String containing characters to avoid.
1815 * not contained in @a __str within this string. If found,
1820 find_last_not_of(const __versa_string& __str,
1822 { return this->find_last_not_of(__str.data(), __pos, __str.size()); }
1891 * @param __str String to compare against.
1895 * __str, 0 if their values are equivalent, or > 0 if this
1896 * string is ordered after @a __str. Determines the effective
1904 compare(const __versa_string& __str) const
1906 if (this->_M_compare(__str))
1910 const size_type __osize = __str.size();
1913 int __r = traits_type::compare(this->_M_data(), __str.data(), __len);
1923 * @param __str String to compare against.
1928 * substring is ordered before @a __str, 0 if their values are
1930 * __str. Determines the effective length rlen of the strings
1932 * and @a __str.size(). The function then compares the two
1940 const __versa_string& __str) const;
1946 * @param __str String to compare against.
1953 * __str from the @a __n2 characters starting at @a __pos2.
1955 * the substring of @a __str, 0 if their values are equivalent,
1957 * @a __str. Determines the effective length rlen of the
1966 compare(size_type __pos1, size_type __n1, const __versa_string& __str,
2373 * @param __str Buffer to store into.
2376 * Stores characters from @a __is into @a __str until whitespace is
2379 * number of characters stored into @a __str. Any previous
2380 * contents of @a __str are erased.
2387 _Alloc, _Base>& __str);
2392 * @param __str String to write out.
2395 * Output characters of @a __str into os following the same rules as for
2403 _Base>& __str)
2407 return __ostream_insert(__os, __str.data(), __str.size());
2413 * @param __str Buffer to store into.
2417 * Stores characters from @a __is into @a __str until @a __delim is
2420 * number of characters stored into @a __str. Any previous
2421 * contents of @a __str are erased. If @a delim was encountered,
2422 * it is extracted but not stored into @a __str.
2428 __gnu_cxx::__versa_string<_CharT, _Traits, _Alloc, _Base>& __str,
2434 * @param __str Buffer to store into.
2437 * Stores characters from is into @a __str until &apos;\n&apos; is
2440 * number of characters stored into @a __str. Any previous
2441 * contents of @a __str are erased. If end of line was
2442 * encountered, it is extracted but not stored into @a __str.
2448 __gnu_cxx::__versa_string<_CharT, _Traits, _Alloc, _Base>& __str)
2449 { return getline(__is, __str, __is.widen('\n')); }
2461 stoi(const __vstring& __str, std::size_t* __idx = 0, int __base = 10)
2462 { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
2466 stol(const __vstring& __str, std::size_t* __idx = 0, int __base = 10)
2467 { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(),
2471 stoul(const __vstring& __str, std::size_t* __idx = 0, int __base = 10)
2472 { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(),
2476 stoll(const __vstring& __str, std::size_t* __idx = 0, int __base = 10)
2477 { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(),
2481 stoull(const __vstring& __str, std::size_t* __idx, int __base = 10)
2482 { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(),
2487 stof(const __vstring& __str, std::size_t* __idx = 0)
2488 { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
2491 stod(const __vstring& __str, std::size_t* __idx = 0)
2492 { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
2495 stold(const __vstring& __str, std::size_t* __idx = 0)
2496 { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
2563 stoi(const __wvstring& __str, std::size_t* __idx = 0, int __base = 10)
2564 { return __gnu_cxx::__stoa<long, int>(&std::wcstol, "stoi", __str.c_str(),
2568 stol(const __wvstring& __str, std::size_t* __idx = 0, int __base = 10)
2569 { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(),
2573 stoul(const __wvstring& __str, std::size_t* __idx = 0, int __base = 10)
2574 { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(),
2578 stoll(const __wvstring& __str, std::size_t* __idx = 0, int __base = 10)
2579 { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(),
2583 stoull(const __wvstring& __str, std::size_t* __idx = 0, int __base = 10)
2584 { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(),
2589 stof(const __wvstring& __str, std::size_t* __idx = 0)
2590 { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
2593 stod(const __wvstring& __str, std::size_t* __idx = 0)
2594 { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
2597 stold(const __wvstring& __str, std::size_t* __idx = 0)
2598 { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }