Home | History | Annotate | Download | only in bits

Lines Matching refs:__pos

316       _M_check(size_type __pos, const char* __s) const
318 if (__pos > this->size())
320 return __pos;
330 // NB: _M_limit doesn't check for a bad __pos value.
332 _M_limit(size_type __pos, size_type __off) const
334 const bool __testoff = __off < this->size() - __pos;
335 return __testoff ? __off : this->size() - __pos;
415 _M_mutate(size_type __pos, size_type __len1, size_type __len2);
457 basic_string(const basic_string& __str, size_type __pos,
466 basic_string(const basic_string& __str, size_type __pos,
818 operator[] (size_type __pos) const
820 _GLIBCXX_DEBUG_ASSERT(__pos <= size());
821 return _M_data()[__pos];
835 operator[](size_type __pos)
838 _GLIBCXX_DEBUG_ASSERT(__pos <= size());
840 _GLIBCXX_DEBUG_PEDASSERT(__pos < size());
842 return _M_data()[__pos];
980 append(const basic_string& __str, size_type __pos, size_type __n);
1090 assign(const basic_string& __str, size_type __pos, size_type __n)
1092 + __str._M_check(__pos, "basic_string::assign"),
1093 __str._M_limit(__pos, __n)); }
1265 insert(size_type __pos, const _CharT* __s, size_type __n);
1283 insert(size_type __pos, const _CharT* __s)
1286 return this->insert(__pos, __s, traits_type::length(__s));
1306 insert(size_type __pos, size_type __n, _CharT __c)
1307 { return _M_replace_aux(_M_check(__pos, "basic_string::insert"),
1326 const size_type __pos = __p - _M_ibegin();
1327 _M_replace_aux(__pos, size_type(0), size_type(1), __c);
1329 return iterator(_M_data() + __pos);
1347 erase(size_type __pos = 0, size_type __n = npos)
1349 _M_mutate(_M_check(__pos, "basic_string::erase"),
1350 _M_limit(__pos, __n), size_type(0));
1367 const size_type __pos = __position - _M_ibegin();
1368 _M_mutate(__pos, size_type(1), size_type(0));
1370 return iterator(_M_data() + __pos);
1402 replace(size_type __pos, size_type __n, const basic_string& __str)
1403 { return this->replace(__pos, __n, __str._M_data(), __str.size()); }
1448 replace(size_type __pos, size_type __n1, const _CharT* __s,
1467 replace(size_type __pos, size_type __n1, const _CharT* __s)
1470 return this->replace(__pos, __n1, __s, traits_type::length(__s));
1490 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c)
1491 { return _M_replace_aux(_M_check(__pos, "basic_string::replace"),
1492 _M_limit(__pos, __n1), __n2, __c); }
1746 copy(_CharT* __s, size_type __n, size_type __pos = 0) const;
1798 find(const _CharT* __s, size_type __pos, size_type __n) const;
1811 find(const basic_string& __str, size_type __pos = 0) const
1812 { return this->find(__str.data(), __pos, __str.size()); }
1825 find(const _CharT* __s, size_type __pos = 0) const
1828 return this->find(__s, __pos, traits_type::length(__s));
1842 __pos = 0) const;
1855 rfind(const basic_string& __str, size_type __pos = npos) const
1856 { return this->rfind(__str.data(), __pos, __str.size()); }
1870 rfind(const _CharT* __s, size_type __pos, size_type __n) const;
1883 rfind(const _CharT* __s, size_type __pos = npos) const
1886 return this->rfind(__s, __pos, traits_type::length(__s));
1900 rfind(_CharT __c, size_type __pos = npos) const;
1913 find_first_of(const basic_string& __str, size_type __pos = 0) const
1914 { return this->find_first_of(__str.data(), __pos, __str.size()); }
1928 find_first_of(const _CharT* __s, size_type __pos, size_type __n) const;
1941 find_first_of(const _CharT* __s, size_type __pos = 0) const
1944 return this->find_first_of(__s, __pos, traits_type::length(__s));
1960 find_first_of(_CharT __c, size_type __pos = 0) const
1961 { return this->find(__c, __pos); }
1974 find_last_of(const basic_string& __str, size_type __pos = npos) const
1975 { return this->find_last_of(__str.data(), __pos, __str.size()); }
1989 find_last_of(const _CharT* __s, size_type __pos, size_type __n) const;
2002 find_last_of(const _CharT* __s, size_type __pos = npos) const
2005 return this->find_last_of(__s, __pos, traits_type::length(__s));
2021 find_last_of(_CharT __c, size_type __pos = npos) const
2022 { return this->rfind(__c, __pos); }
2035 find_first_not_of(const basic_string& __str, size_type __pos = 0) const
2036 { return this->find_first_not_of(__str.data(), __pos, __str.size()); }
2050 find_first_not_of(const _CharT* __s, size_type __pos,
2064 find_first_not_of(const _CharT* __s, size_type __pos = 0) const
2067 return this->find_first_not_of(__s, __pos, traits_type::length(__s));
2081 find_first_not_of(_CharT __c, size_type __pos = 0) const;
2094 find_last_not_of(const basic_string& __str, size_type __pos = npos) const
2095 { return this->find_last_not_of(__str.data(), __pos, __str.size()); }
2110 find_last_not_of(const _CharT* __s, size_type __pos,
2123 find_last_not_of(const _CharT* __s, size_type __pos = npos) const
2126 return this->find_last_not_of(__s, __pos, traits_type::length(__s));
2140 find_last_not_of(_CharT __c, size_type __pos = npos) const;
2155 substr(size_type __pos = 0, size_type __n = npos) const
2157 _M_check(__pos, "basic_string::substr"), __n); }
2203 compare(size_type __pos, size_type __n, const basic_string& __str) const;
2268 compare(size_type __pos, size_type __n1, const _CharT* __s) const;
2293 compare(size_type __pos, size_type __n1, const _CharT* __s,