Lines Matching refs:__s2

56     int compare(const char_type* __s1, const char_type* __s2, size_t __n);
62 char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
65 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
84 char_traits<_CharT>::compare(const char_type* __s1, const char_type* __s2, size_t __n) in compare() argument
86 for (; __n; --__n, ++__s1, ++__s2) in compare()
88 if (lt(*__s1, *__s2)) in compare()
90 if (lt(*__s2, *__s1)) in compare()
123 char_traits<_CharT>::move(char_type* __s1, const char_type* __s2, size_t __n) in move() argument
127 if (__s1 < __s2) in move()
129 for (; __n; --__n, ++__s1, ++__s2) in move()
130 assign(*__s1, *__s2); in move()
132 else if (__s2 < __s1) in move()
135 __s2 += __n; in move()
137 assign(*--__s1, *--__s2); in move()
145 char_traits<_CharT>::copy(char_type* __s1, const char_type* __s2, size_t __n) in copy() argument
148 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range"); in copy()
151 for (; __n; --__n, ++__s1, ++__s2) in copy()
152 assign(*__s1, *__s2); in copy()
205 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
225 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
226 return std::__char_traits_move(__s1, __s2, __n);
230 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
232 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
233 std::copy_n(__s2, __n, __s1);
257 char_traits<char>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
262 return __builtin_memcmp(__s1, __s2, __n);
264 return _VSTD::memcmp(__s1, __s2, __n);
266 for (; __n; --__n, ++__s1, ++__s2)
268 if (lt(*__s1, *__s2))
270 if (lt(*__s2, *__s1))
319 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
326 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
327 return std::__char_traits_move(__s1, __s2, __n);
331 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
333 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
334 std::copy_n(__s2, __n, __s1);
358 char_traits<wchar_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
363 return __builtin_wmemcmp(__s1, __s2, __n);
365 return _VSTD::wmemcmp(__s1, __s2, __n);
367 for (; __n; --__n, ++__s1, ++__s2)
369 if (lt(*__s1, *__s2))
371 if (lt(*__s2, *__s1))
435 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
444 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
445 return std::__char_traits_move(__s1, __s2, __n);
449 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
451 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
452 std::copy_n(__s2, __n, __s1);
487 char_traits<char8_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
490 return __builtin_memcmp(__s1, __s2, __n);
492 for (; __n; --__n, ++__s1, ++__s2)
494 if (lt(*__s1, *__s2))
496 if (lt(*__s2, *__s1))
536 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
543 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
544 return std::__char_traits_move(__s1, __s2, __n);
548 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
550 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
551 std::copy_n(__s2, __n, __s1);
575 char_traits<char16_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
577 for (; __n; --__n, ++__s1, ++__s2)
579 if (lt(*__s1, *__s2))
581 if (lt(*__s2, *__s1))
627 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
634 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
635 return std::__char_traits_move(__s1, __s2, __n);
639 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
640 std::copy_n(__s2, __n, __s1);
664 char_traits<char32_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
666 for (; __n; --__n, ++__s1, ++__s2)
668 if (lt(*__s1, *__s2))
670 if (lt(*__s2, *__s1))