• Home
  • Raw
  • Download

Lines Matching refs:__pos

281     const_reference operator[](size_type __pos) const _NOEXCEPT {
282 return _LIBCPP_ASSERT(__pos < size(), "string_view[] index out of bounds"), __data[__pos];
286 const_reference at(size_type __pos) const
288 return __pos >= size()
290 : __data[__pos];
337 size_type copy(_CharT* __s, size_type __n, size_type __pos = 0) const
339 if (__pos > size())
341 size_type __rlen = _VSTD::min(__n, size() - __pos);
342 _Traits::copy(__s, data() + __pos, __rlen);
347 basic_string_view substr(size_type __pos = 0, size_type __n = npos) const
349 return __pos > size()
351 : basic_string_view(data() + __pos, _VSTD::min(__n, size() - __pos));
396 size_type find(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT
400 (data(), size(), __s.data(), __pos, __s.size());
404 size_type find(_CharT __c, size_type __pos = 0) const _NOEXCEPT
407 (data(), size(), __c, __pos);
411 size_type find(const _CharT* __s, size_type __pos, size_type __n) const
415 (data(), size(), __s, __pos, __n);
419 size_type find(const _CharT* __s, size_type __pos = 0) const
423 (data(), size(), __s, __pos, traits_type::length(__s));
428 size_type rfind(basic_string_view __s, size_type __pos = npos) const _NOEXCEPT
432 (data(), size(), __s.data(), __pos, __s.size());
436 size_type rfind(_CharT __c, size_type __pos = npos) const _NOEXCEPT
439 (data(), size(), __c, __pos);
443 size_type rfind(const _CharT* __s, size_type __pos, size_type __n) const
447 (data(), size(), __s, __pos, __n);
451 size_type rfind(const _CharT* __s, size_type __pos=npos) const
455 (data(), size(), __s, __pos, traits_type::length(__s));
460 size_type find_first_of(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT
464 (data(), size(), __s.data(), __pos, __s.size());
468 size_type find_first_of(_CharT __c, size_type __pos = 0) const _NOEXCEPT
469 { return find(__c, __pos); }
472 size_type find_first_of(const _CharT* __s, size_type __pos, size_type __n) const
476 (data(), size(), __s, __pos, __n);
480 size_type find_first_of(const _CharT* __s, size_type __pos=0) const
484 (data(), size(), __s, __pos, traits_type::length(__s));
489 size_type find_last_of(basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
493 (data(), size(), __s.data(), __pos, __s.size());
497 size_type find_last_of(_CharT __c, size_type __pos = npos) const _NOEXCEPT
498 { return rfind(__c, __pos); }
501 size_type find_last_of(const _CharT* __s, size_type __pos, size_type __n) const
505 (data(), size(), __s, __pos, __n);
509 size_type find_last_of(const _CharT* __s, size_type __pos=npos) const
513 (data(), size(), __s, __pos, traits_type::length(__s));
518 size_type find_first_not_of(basic_string_view __s, size_type __pos=0) const _NOEXCEPT
522 (data(), size(), __s.data(), __pos, __s.size());
526 size_type find_first_not_of(_CharT __c, size_type __pos=0) const _NOEXCEPT
529 (data(), size(), __c, __pos);
533 size_type find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const
537 (data(), size(), __s, __pos, __n);
541 size_type find_first_not_of(const _CharT* __s, size_type __pos=0) const
545 (data(), size(), __s, __pos, traits_type::length(__s));
550 size_type find_last_not_of(basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
554 (data(), size(), __s.data(), __pos, __s.size());
558 size_type find_last_not_of(_CharT __c, size_type __pos=npos) const _NOEXCEPT
561 (data(), size(), __c, __pos);
565 size_type find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const
569 (data(), size(), __s, __pos, __n);
573 size_type find_last_not_of(const _CharT* __s, size_type __pos=npos) const
577 (data(), size(), __s, __pos, traits_type::length(__s));