Lines Matching refs:__s
226 basic_string_view(const _CharT* __s, size_type __len) _NOEXCEPT
227 : __data(__s), __size(__len)
230 // _LIBCPP_ASSERT(__len == 0 || __s != nullptr, "string_view::string_view(_CharT *, size_t)…
235 basic_string_view(const _CharT* __s)
236 : __data(__s), __size(_Traits::length(__s)) {}
332 size_type copy(_CharT* __s, size_type __n, size_type __pos = 0) const
337 _Traits::copy(__s, data() + __pos, __rlen);
372 int compare(const _CharT* __s) const _NOEXCEPT
374 return compare(basic_string_view(__s));
378 int compare(size_type __pos1, size_type __n1, const _CharT* __s) const
380 return substr(__pos1, __n1).compare(basic_string_view(__s));
384 int compare(size_type __pos1, size_type __n1, const _CharT* __s, size_type __n2) const
386 return substr(__pos1, __n1).compare(basic_string_view(__s, __n2));
391 size_type find(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT
393 … _LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find(): received nullptr");
395 (data(), size(), __s.data(), __pos, __s.size());
406 size_type find(const _CharT* __s, size_type __pos, size_type __n) const
408 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find(): received nullptr");
410 (data(), size(), __s, __pos, __n);
414 size_type find(const _CharT* __s, size_type __pos = 0) const
416 _LIBCPP_ASSERT(__s != nullptr, "string_view::find(): received nullptr");
418 (data(), size(), __s, __pos, traits_type::length(__s));
423 size_type rfind(basic_string_view __s, size_type __pos = npos) const _NOEXCEPT
425 … _LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find(): received nullptr");
427 (data(), size(), __s.data(), __pos, __s.size());
438 size_type rfind(const _CharT* __s, size_type __pos, size_type __n) const
440 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::rfind(): received nullptr");
442 (data(), size(), __s, __pos, __n);
446 size_type rfind(const _CharT* __s, size_type __pos=npos) const
448 _LIBCPP_ASSERT(__s != nullptr, "string_view::rfind(): received nullptr");
450 (data(), size(), __s, __pos, traits_type::length(__s));
455 size_type find_first_of(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT
457 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_first_of(): received n…
459 (data(), size(), __s.data(), __pos, __s.size());
467 size_type find_first_of(const _CharT* __s, size_type __pos, size_type __n) const
469 … _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_first_of(): received nullptr");
471 (data(), size(), __s, __pos, __n);
475 size_type find_first_of(const _CharT* __s, size_type __pos=0) const
477 _LIBCPP_ASSERT(__s != nullptr, "string_view::find_first_of(): received nullptr");
479 (data(), size(), __s, __pos, traits_type::length(__s));
484 size_type find_last_of(basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
486 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_last_of(): received nu…
488 (data(), size(), __s.data(), __pos, __s.size());
496 size_type find_last_of(const _CharT* __s, size_type __pos, size_type __n) const
498 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_last_of(): received nullptr");
500 (data(), size(), __s, __pos, __n);
504 size_type find_last_of(const _CharT* __s, size_type __pos=npos) const
506 _LIBCPP_ASSERT(__s != nullptr, "string_view::find_last_of(): received nullptr");
508 (data(), size(), __s, __pos, traits_type::length(__s));
513 size_type find_first_not_of(basic_string_view __s, size_type __pos=0) const _NOEXCEPT
515 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_first_not_of(): receiv…
517 (data(), size(), __s.data(), __pos, __s.size());
528 size_type find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const
530 … _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_first_not_of(): received nullptr");
532 (data(), size(), __s, __pos, __n);
536 size_type find_first_not_of(const _CharT* __s, size_type __pos=0) const
538 _LIBCPP_ASSERT(__s != nullptr, "string_view::find_first_not_of(): received nullptr");
540 (data(), size(), __s, __pos, traits_type::length(__s));
545 size_type find_last_not_of(basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
547 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_last_not_of(): receive…
549 (data(), size(), __s.data(), __pos, __s.size());
560 size_type find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const
562 … _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_last_not_of(): received nullptr");
564 (data(), size(), __s, __pos, __n);
568 size_type find_last_not_of(const _CharT* __s, size_type __pos=npos) const
570 _LIBCPP_ASSERT(__s != nullptr, "string_view::find_last_not_of(): received nullptr");
572 (data(), size(), __s, __pos, traits_type::length(__s));
577 bool starts_with(basic_string_view __s) const _NOEXCEPT
578 { return size() >= __s.size() && compare(0, __s.size(), __s) == 0; }
585 bool starts_with(const value_type* __s) const _NOEXCEPT
586 { return starts_with(basic_string_view(__s)); }
589 bool ends_with(basic_string_view __s) const _NOEXCEPT
590 { return size() >= __s.size() && compare(size() - __s.size(), npos, __s) == 0; }
597 bool ends_with(const value_type* __s) const _NOEXCEPT
598 { return ends_with(basic_string_view(__s)); }