Lines Matching full:compare

19 #include <compare>
133 constexpr int compare(basic_string_view s) const noexcept;
134 constexpr int compare(size_type pos1, size_type n1, basic_string_view s) const;
135 constexpr int compare(size_type pos1, size_type n1,
137 constexpr int compare(const charT* s) const;
138 constexpr int compare(size_type pos1, size_type n1, const charT* s) const;
139 constexpr int compare(size_type pos1, size_type n1,
251 #include <compare>
455 _LIBCPP_CONSTEXPR_SINCE_CXX14 int compare(basic_string_view __sv) const _NOEXCEPT {
457 int __retval = _Traits::compare(data(), __sv.data(), __rlen);
464 compare(size_type __pos1, size_type __n1, basic_string_view __sv) const {
465 return substr(__pos1, __n1).compare(__sv);
469compare(size_type __pos1, size_type __n1, basic_string_view __sv, size_type __pos2, size_type __n2…
470 return substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2));
473 …_LIBCPP_CONSTEXPR_SINCE_CXX14 _LIBCPP_HIDE_FROM_ABI int compare(const _CharT* __s) const _NOEXCEPT…
474 return compare(basic_string_view(__s));
478 compare(size_type __pos1, size_type __n1, const _CharT* __s) const {
479 return substr(__pos1, __n1).compare(basic_string_view(__s));
483 compare(size_type __pos1, size_type __n1, const _CharT* __s, size_type __n2) const {
484 return substr(__pos1, __n1).compare(basic_string_view(__s, __n2));
644 return size() >= __s.size() && compare(0, __s.size(), __s) == 0;
656 return size() >= __s.size() && compare(size() - __s.size(), npos, __s) == 0;
711 return __lhs.compare(__rhs) == 0;
721 return static_cast<typename _Traits::comparison_category>(__lhs.compare(__rhs) <=> 0);
723 return static_cast<weak_ordering>(__lhs.compare(__rhs) <=> 0);
736 return __lhs.compare(__rhs) == 0;
747 return __lhs.compare(__rhs) == 0;
756 return __lhs.compare(__rhs) == 0;
765 return __lhs.compare(__rhs) != 0;
774 return __lhs.compare(__rhs) != 0;
783 return __lhs.compare(__rhs) != 0;
790 return __lhs.compare(__rhs) < 0;
797 return __lhs.compare(__rhs) < 0;
804 return __lhs.compare(__rhs) < 0;
811 return __lhs.compare(__rhs) > 0;
818 return __lhs.compare(__rhs) > 0;
825 return __lhs.compare(__rhs) > 0;
832 return __lhs.compare(__rhs) <= 0;
839 return __lhs.compare(__rhs) <= 0;
846 return __lhs.compare(__rhs) <= 0;
853 return __lhs.compare(__rhs) >= 0;
860 return __lhs.compare(__rhs) >= 0;
867 return __lhs.compare(__rhs) >= 0;