Lines Matching refs:__s2
209 int compare(const char_type* __s1, const char_type* __s2, size_t __n);
215 char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
218 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
237 char_traits<_CharT>::compare(const char_type* __s1, const char_type* __s2, size_t __n)
239 for (; __n; --__n, ++__s1, ++__s2)
241 if (lt(*__s1, *__s2))
243 if (lt(*__s2, *__s1))
276 char_traits<_CharT>::move(char_type* __s1, const char_type* __s2, size_t __n)
280 if (__s1 < __s2)
282 for (; __n; --__n, ++__s1, ++__s2)
283 assign(*__s1, *__s2);
285 else if (__s2 < __s1)
288 __s2 += __n;
290 assign(*--__s1, *--__s2);
298 char_traits<_CharT>::copy(char_type* __s1, const char_type* __s2, size_t __n)
300 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
302 for (; __n; --__n, ++__s1, ++__s2)
303 assign(*__s1, *__s2);
322 _CharT* __move_constexpr(_CharT* __s1, const _CharT* __s2, size_t __n) _NOEXCEPT
325 if (__s1 < __s2) {
326 _VSTD::copy(__s2, __s2 + __n, __s1);
327 } else if (__s2 < __s1) {
328 _VSTD::copy_backward(__s2, __s2 + __n, __s1 + __n);
335 _CharT* __copy_constexpr(_CharT* __s1, const _CharT* __s2, size_t __n) _NOEXCEPT
337 _VSTD::copy_n(__s2, __n, __s1);
368 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
374 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
377 ? _VSTD::__move_constexpr(__s1, __s2, __n)
378 : __n == 0 ? __s1 : (char_type*)memmove(__s1, __s2, __n);
381 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
383 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
385 ? _VSTD::__copy_constexpr(__s1, __s2, __n)
386 : __n == 0 ? __s1 : (char_type*)memcpy(__s1, __s2, __n);
410 char_traits<char>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
415 return __builtin_memcmp(__s1, __s2, __n);
417 return memcmp(__s1, __s2, __n);
419 for (; __n; --__n, ++__s1, ++__s2)
421 if (lt(*__s1, *__s2))
423 if (lt(*__s2, *__s1))
471 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
477 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
480 ? _VSTD::__move_constexpr(__s1, __s2, __n)
481 : __n == 0 ? __s1 : wmemmove(__s1, __s2, __n);
484 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
486 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
488 ? _VSTD::__copy_constexpr(__s1, __s2, __n)
489 : __n == 0 ? __s1 : wmemcpy(__s1, __s2, __n);
512 char_traits<wchar_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
517 return __builtin_wmemcmp(__s1, __s2, __n);
519 return wmemcmp(__s1, __s2, __n);
521 for (; __n; --__n, ++__s1, ++__s2)
523 if (lt(*__s1, *__s2))
525 if (lt(*__s2, *__s1))
601 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
610 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
613 ? _VSTD::__move_constexpr(__s1, __s2, __n)
614 : __n == 0 ? __s1 : (char_type*)memmove(__s1, __s2, __n);
618 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
620 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
622 ? _VSTD::__copy_constexpr(__s1, __s2, __n)
623 : __n == 0 ? __s1 : (char_type*)memcpy(__s1, __s2, __n);
659 char_traits<char8_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
662 return __builtin_memcmp(__s1, __s2, __n);
664 for (; __n; --__n, ++__s1, ++__s2)
666 if (lt(*__s1, *__s2))
668 if (lt(*__s2, *__s1))
710 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
716 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
718 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
736 char_traits<char16_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
738 for (; __n; --__n, ++__s1, ++__s2)
740 if (lt(*__s1, *__s2))
742 if (lt(*__s2, *__s1))
773 char_traits<char16_t>::move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
777 if (__s1 < __s2)
779 for (; __n; --__n, ++__s1, ++__s2)
780 assign(*__s1, *__s2);
782 else if (__s2 < __s1)
785 __s2 += __n;
787 assign(*--__s1, *--__s2);
794 char_traits<char16_t>::copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
796 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
798 for (; __n; --__n, ++__s1, ++__s2)
799 assign(*__s1, *__s2);
830 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
836 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
838 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
856 char_traits<char32_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
858 for (; __n; --__n, ++__s1, ++__s2)
860 if (lt(*__s1, *__s2))
862 if (lt(*__s2, *__s1))
893 char_traits<char32_t>::move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
897 if (__s1 < __s2)
899 for (; __n; --__n, ++__s1, ++__s2)
900 assign(*__s1, *__s2);
902 else if (__s2 < __s1)
905 __s2 += __n;
907 assign(*--__s1, *--__s2);
914 char_traits<char32_t>::copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
916 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
918 for (; __n; --__n, ++__s1, ++__s2)
919 assign(*__s1, *__s2);