Lines Matching refs:__s2

520     static int              compare(const char_type* __s1, const char_type* __s2, size_t __n);
523 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
524 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
546 char_traits<_CharT>::compare(const char_type* __s1, const char_type* __s2, size_t __n)
548 for (; __n; --__n, ++__s1, ++__s2)
550 if (lt(*__s1, *__s2))
552 if (lt(*__s2, *__s1))
585 char_traits<_CharT>::move(char_type* __s1, const char_type* __s2, size_t __n)
588 if (__s1 < __s2)
590 for (; __n; --__n, ++__s1, ++__s2)
591 assign(*__s1, *__s2);
593 else if (__s2 < __s1)
596 __s2 += __n;
598 assign(*--__s1, *--__s2);
606 char_traits<_CharT>::copy(char_type* __s1, const char_type* __s2, size_t __n)
608 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
610 for (; __n; --__n, ++__s1, ++__s2)
611 assign(*__s1, *__s2);
648 static int compare(const char_type* __s1, const char_type* __s2, size_t __n)
649 {return memcmp(__s1, __s2, __n);}
656 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n)
657 {return (char_type*)memmove(__s1, __s2, __n);}
659 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n)
661 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
662 return (char_type*)memcpy(__s1, __s2, __n);
707 static int compare(const char_type* __s1, const char_type* __s2, size_t __n)
708 {return wmemcmp(__s1, __s2, __n);}
716 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n)
717 {return (char_type*)wmemmove(__s1, __s2, __n);}
719 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n)
721 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
722 return (char_type*)wmemcpy(__s1, __s2, __n);
766 static int compare(const char_type* __s1, const char_type* __s2, size_t __n);
769 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
770 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
792 char_traits<char16_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n)
794 for (; __n; --__n, ++__s1, ++__s2)
796 if (lt(*__s1, *__s2))
798 if (lt(*__s2, *__s1))
829 char_traits<char16_t>::move(char_type* __s1, const char_type* __s2, size_t __n)
832 if (__s1 < __s2)
834 for (; __n; --__n, ++__s1, ++__s2)
835 assign(*__s1, *__s2);
837 else if (__s2 < __s1)
840 __s2 += __n;
842 assign(*--__s1, *--__s2);
849 char_traits<char16_t>::copy(char_type* __s1, const char_type* __s2, size_t __n)
851 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
853 for (; __n; --__n, ++__s1, ++__s2)
854 assign(*__s1, *__s2);
887 static int compare(const char_type* __s1, const char_type* __s2, size_t __n);
890 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
891 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
913 char_traits<char32_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n)
915 for (; __n; --__n, ++__s1, ++__s2)
917 if (lt(*__s1, *__s2))
919 if (lt(*__s2, *__s1))
950 char_traits<char32_t>::move(char_type* __s1, const char_type* __s2, size_t __n)
953 if (__s1 < __s2)
955 for (; __n; --__n, ++__s1, ++__s2)
956 assign(*__s1, *__s2);
958 else if (__s2 < __s1)
961 __s2 += __n;
963 assign(*--__s1, *--__s2);
970 char_traits<char32_t>::copy(char_type* __s1, const char_type* __s2, size_t __n)
972 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
974 for (; __n; --__n, ++__s1, ++__s2)
975 assign(*__s1, *__s2);