Home | History | Annotate | Download | only in bits

Lines Matching refs:__pos

301       _M_check(size_type __pos, const char* __s) const
303 if (__pos > this->size())
305 return __pos;
315 // NB: _M_limit doesn't check for a bad __pos value.
317 _M_limit(size_type __pos, size_type __off) const
319 const bool __testoff = __off < this->size() - __pos;
320 return __testoff ? __off : this->size() - __pos;
400 _M_mutate(size_type __pos, size_type __len1, size_type __len2);
438 basic_string(const basic_string& __str, size_type __pos,
447 basic_string(const basic_string& __str, size_type __pos,
718 operator[] (size_type __pos) const
720 _GLIBCXX_DEBUG_ASSERT(__pos <= size());
721 return _M_data()[__pos];
735 operator[](size_type __pos)
738 _GLIBCXX_DEBUG_ASSERT(__pos <= size());
740 _GLIBCXX_DEBUG_PEDASSERT(__pos < size());
742 return _M_data()[__pos];
846 append(const basic_string& __str, size_type __pos, size_type __n);
939 assign(const basic_string& __str, size_type __pos, size_type __n)
941 + __str._M_check(__pos, "basic_string::assign"),
942 __str._M_limit(__pos, __n)); }
1111 insert(size_type __pos, const _CharT* __s, size_type __n);
1129 insert(size_type __pos, const _CharT* __s)
1132 return this->insert(__pos, __s, traits_type::length(__s));
1152 insert(size_type __pos, size_type __n, _CharT __c)
1153 { return _M_replace_aux(_M_check(__pos, "basic_string::insert"),
1172 const size_type __pos = __p - _M_ibegin();
1173 _M_replace_aux(__pos, size_type(0), size_type(1), __c);
1175 return iterator(_M_data() + __pos);
1193 erase(size_type __pos = 0, size_type __n = npos)
1195 _M_mutate(_M_check(__pos, "basic_string::erase"),
1196 _M_limit(__pos, __n), size_type(0));
1213 const size_type __pos = __position - _M_ibegin();
1214 _M_mutate(__pos, size_type(1), size_type(0));
1216 return iterator(_M_data() + __pos);
1233 const size_type __pos = __first - _M_ibegin();
1234 _M_mutate(__pos, __last - __first, size_type(0));
1236 return iterator(_M_data() + __pos);
1256 replace(size_type __pos, size_type __n, const basic_string& __str)
1257 { return this->replace(__pos, __n, __str._M_data(), __str.size()); }
1302 replace(size_type __pos, size_type __n1, const _CharT* __s,
1321 replace(size_type __pos, size_type __n1, const _CharT* __s)
1324 return this->replace(__pos, __n1, __s, traits_type::length(__s));
1344 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c)
1345 { return _M_replace_aux(_M_check(__pos, "basic_string::replace"),
1346 _M_limit(__pos, __n1), __n2, __c); }
1595 copy(_CharT* __s, size_type __n, size_type __pos = 0) const;
1647 find(const _CharT* __s, size_type __pos, size_type __n) const;
1660 find(const basic_string& __str, size_type __pos = 0) const
1661 { return this->find(__str.data(), __pos, __str.size()); }
1674 find(const _CharT* __s, size_type __pos = 0) const
1677 return this->find(__s, __pos, traits_type::length(__s));
1691 find(_CharT __c, size_type __pos = 0) const;
1704 rfind(const basic_string& __str, size_type __pos = npos) const
1705 { return this->rfind(__str.data(), __pos, __str.size()); }
1719 rfind(const _CharT* __s, size_type __pos, size_type __n) const;
1732 rfind(const _CharT* __s, size_type __pos = npos) const
1735 return this->rfind(__s, __pos, traits_type::length(__s));
1749 rfind(_CharT __c, size_type __pos = npos) const;
1762 find_first_of(const basic_string& __str, size_type __pos = 0) const
1763 { return this->find_first_of(__str.data(), __pos, __str.size()); }
1777 find_first_of(const _CharT* __s, size_type __pos, size_type __n) const;
1790 find_first_of(const _CharT* __s, size_type __pos = 0) const
1793 __pos, traits_type::length(__s));
1809 find_first_of(_CharT __c, size_type __pos = 0) const
1810 { return this->find(__c, __pos); }
1823 find_last_of(const basic_string& __str, size_type __pos = npos) const
1824 { return this->find_last_of(__str.data(), __pos, __str.size()); }
1838 find_last_of(const _CharT* __s, size_type __pos, size_type __n) const;
1851 find_last_of(const _CharT* __s, size_type __pos = npos) const
1854 return this->find_last_of(__s, __pos, traits_type::length(__s));
1870 find_last_of(_CharT __c, size_type __pos = npos) const
1871 { return this->rfind(__c, __pos); }
1884 find_first_not_of(const basic_string& __str, size_type __pos = 0) const
1885 { return this->find_first_not_of(__str.data(), __pos, __str.size()); }
1899 find_first_not_of(const _CharT* __s, size_type __pos,
1913 find_first_not_of(const _CharT* __s, size_type __pos = 0) const
1916 return this->find_first_not_of(__s, __pos, traits_type::length(__s));
1930 find_first_not_of(_CharT __c, size_type __pos = 0) const;
1943 find_last_not_of(const basic_string& __str, size_type __pos = npos) const
1944 { return this->find_last_not_of(__str.data(), __pos, __str.size()); }
1959 find_last_not_of(const _CharT* __s, size_type __pos,
1972 find_last_not_of(const _CharT* __s, size_type __pos = npos) const
1975 return this->find_last_not_of(__s, __pos, traits_type::length(__s));
1989 find_last_not_of(_CharT __c, size_type __pos = npos) const;
2004 substr(size_type __pos = 0, size_type __n = npos) const
2006 _M_check(__pos, "basic_string::substr"), __n); }
2052 compare(size_type __pos, size_type __n, const basic_string& __str) const;
2117 compare(size_type __pos, size_type __n1, const _CharT* __s) const;
2142 compare(size_type __pos, size_type __n1, const _CharT* __s,