• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/libstdc++/include/ext/

Lines Matching refs:__pos

82       _M_check(size_type __pos, const char* __s) const
84 if (__pos > this->size())
86 return __pos;
96 // NB: _M_limit doesn't check for a bad __pos value.
98 _M_limit(size_type __pos, size_type __off) const
100 const bool __testoff = __off < this->size() - __pos;
101 return __testoff ? __off : this->size() - __pos;
155 __versa_string(const __versa_string& __str, size_type __pos,
158 + __str._M_check(__pos,
160 __str._M_data() + __str._M_limit(__pos, __n)
161 + __pos, _Alloc()) { }
170 __versa_string(const __versa_string& __str, size_type __pos,
173 + __str._M_check(__pos,
175 __str._M_data() + __str._M_limit(__pos, __n)
176 + __pos, __a) { }
431 operator[] (size_type __pos) const
433 _GLIBCXX_DEBUG_ASSERT(__pos <= this->size());
434 return this->_M_data()[__pos];
448 operator[](size_type __pos)
451 _GLIBCXX_DEBUG_ASSERT(__pos <= this->size());
453 _GLIBCXX_DEBUG_PEDASSERT(__pos < this->size());
455 return this->_M_data()[__pos];
549 append(const __versa_string& __str, size_type __pos, size_type __n)
551 + __str._M_check(__pos, "__versa_string::append"),
552 __str._M_limit(__pos, __n)); }
646 assign(const __versa_string& __str, size_type __pos, size_type __n)
648 + __str._M_check(__pos, "__versa_string::assign"),
649 __str._M_limit(__pos, __n)); }
801 insert(size_type __pos, const _CharT* __s, size_type __n)
802 { return this->replace(__pos, size_type(0), __s, __n); }
820 insert(size_type __pos, const _CharT* __s)
823 return this->replace(__pos, size_type(0), __s,
844 insert(size_type __pos, size_type __n, _CharT __c)
845 { return _M_replace_aux(_M_check(__pos, "__versa_string::insert"),
864 const size_type __pos = __p - _M_ibegin();
865 _M_replace_aux(__pos, size_type(0), size_type(1), __c);
867 return iterator(this->_M_data() + __pos);
885 erase(size_type __pos = 0, size_type __n = npos)
887 this->_M_erase(_M_check(__pos, "__versa_string::erase"),
888 _M_limit(__pos, __n));
905 const size_type __pos = __position - _M_ibegin();
906 this->_M_erase(__pos, size_type(1));
908 return iterator(this->_M_data() + __pos);
925 const size_type __pos = __first - _M_ibegin();
926 this->_M_erase(__pos, __last - __first);
928 return iterator(this->_M_data() + __pos);
948 replace(size_type __pos, size_type __n, const __versa_string& __str)
949 { return this->replace(__pos, __n, __str._M_data(), __str.size()); }
997 replace(size_type __pos, size_type __n1, const _CharT* __s,
1001 return _M_replace(_M_check(__pos, "__versa_string::replace"),
1002 _M_limit(__pos, __n1), __s, __n2);
1021 replace(size_type __pos, size_type __n1, const _CharT* __s)
1024 return this->replace(__pos, __n1, __s, traits_type::length(__s));
1044 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c)
1045 { return _M_replace_aux(_M_check(__pos, "__versa_string::replace"),
1046 _M_limit(__pos, __n1), __n2, __c); }
1216 _M_replace(size_type __pos, size_type __len1, const _CharT* __s,
1236 copy(_CharT* __s, size_type __n, size_type __pos = 0) const;
1289 find(const _CharT* __s, size_type __pos, size_type __n) const;
1302 find(const __versa_string& __str, size_type __pos = 0) const
1303 { return this->find(__str.data(), __pos, __str.size()); }
1316 find(const _CharT* __s, size_type __pos = 0) const
1319 return this->find(__s, __pos, traits_type::length(__s));
1333 find(_CharT __c, size_type __pos = 0) const;
1346 rfind(const __versa_string& __str, size_type __pos = npos) const
1347 { return this->rfind(__str.data(), __pos, __str.size()); }
1361 rfind(const _CharT* __s, size_type __pos, size_type __n) const;
1374 rfind(const _CharT* __s, size_type __pos = npos) const
1377 return this->rfind(__s, __pos, traits_type::length(__s));
1391 rfind(_CharT __c, size_type __pos = npos) const;
1404 find_first_of(const __versa_string& __str, size_type __pos = 0) const
1405 { return this->find_first_of(__str.data(), __pos, __str.size()); }
1419 find_first_of(const _CharT* __s, size_type __pos, size_type __n) const;
1432 find_first_of(const _CharT* __s, size_type __pos = 0) const
1435 return this->find_first_of(__s, __pos, traits_type::length(__s));
1451 find_first_of(_CharT __c, size_type __pos = 0) const
1452 { return this->find(__c, __pos); }
1465 find_last_of(const __versa_string& __str, size_type __pos = npos) const
1466 { return this->find_last_of(__str.data(), __pos, __str.size()); }
1480 find_last_of(const _CharT* __s, size_type __pos, size_type __n) const;
1493 find_last_of(const _CharT* __s, size_type __pos = npos) const
1496 return this->find_last_of(__s, __pos, traits_type::length(__s));
1512 find_last_of(_CharT __c, size_type __pos = npos) const
1513 { return this->rfind(__c, __pos); }
1526 find_first_not_of(const __versa_string& __str, size_type __pos = 0) const
1527 { return this->find_first_not_of(__str.data(), __pos, __str.size()); }
1541 find_first_not_of(const _CharT* __s, size_type __pos,
1555 find_first_not_of(const _CharT* __s, size_type __pos = 0) const
1558 return this->find_first_not_of(__s, __pos, traits_type::length(__s));
1572 find_first_not_of(_CharT __c, size_type __pos = 0) const;
1586 size_type __pos = npos) const
1587 { return this->find_last_not_of(__str.data(), __pos, __str.size()); }
1602 find_last_not_of(const _CharT* __s, size_type __pos,
1615 find_last_not_of(const _CharT* __s, size_type __pos = npos) const
1618 return this->find_last_not_of(__s, __pos, traits_type::length(__s));
1632 find_last_not_of(_CharT __c, size_type __pos = npos) const;
1647 substr(size_type __pos = 0, size_type __n = npos) const
1649 return __versa_string(*this, _M_check(__pos, "__versa_string::substr"),
1700 compare(size_type __pos, size_type __n,
1766 compare(size_type __pos, size_type __n1, const _CharT* __s) const;
1791 compare(size_type __pos, size_type __n1, const _CharT* __s,