Lines Matching refs:__s2
92 int compare(const char_type* __s1, const char_type* __s2, size_t __n);
97 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
99 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
117 char_traits<_CharT>::compare(const char_type* __s1, const char_type* __s2, size_t __n)
119 for (; __n; --__n, ++__s1, ++__s2)
121 if (lt(*__s1, *__s2))
123 if (lt(*__s2, *__s1))
156 char_traits<_CharT>::move(char_type* __s1, const char_type* __s2, size_t __n)
159 if (__s1 < __s2)
161 for (; __n; --__n, ++__s1, ++__s2)
162 assign(*__s1, *__s2);
164 else if (__s2 < __s1)
167 __s2 += __n;
169 assign(*--__s1, *--__s2);
177 char_traits<_CharT>::copy(char_type* __s1, const char_type* __s2, size_t __n)
179 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
181 for (; __n; --__n, ++__s1, ++__s2)
182 assign(*__s1, *__s2);
216 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
221 static inline char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
222 {return __n == 0 ? __s1 : (char_type*) memmove(__s1, __s2, __n);}
223 static inline char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
225 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
226 return __n == 0 ? __s1 : (char_type*)memcpy(__s1, __s2, __n);
245 char_traits<char>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
250 return __builtin_memcmp(__s1, __s2, __n);
252 return memcmp(__s1, __s2, __n);
254 for (; __n; --__n, ++__s1, ++__s2)
256 if (lt(*__s1, *__s2))
258 if (lt(*__s2, *__s1))
306 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
311 static inline char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
312 {return __n == 0 ? __s1 : (char_type*)wmemmove(__s1, __s2, __n);}
313 static inline char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
315 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
316 return __n == 0 ? __s1 : (char_type*)wmemcpy(__s1, __s2, __n);
335 char_traits<wchar_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
340 return __builtin_wmemcmp(__s1, __s2, __n);
342 return wmemcmp(__s1, __s2, __n);
344 for (; __n; --__n, ++__s1, ++__s2)
346 if (lt(*__s1, *__s2))
348 if (lt(*__s2, *__s1))
412 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
420 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
421 {return __n == 0 ? __s1 : (char_type*) memmove(__s1, __s2, __n);}
423 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
425 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
426 return __n == 0 ? __s1 : (char_type*)memcpy(__s1, __s2, __n);
457 char_traits<char8_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
460 return __builtin_memcmp(__s1, __s2, __n);
462 for (; __n; --__n, ++__s1, ++__s2)
464 if (lt(*__s1, *__s2))
466 if (lt(*__s2, *__s1))
508 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
514 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
516 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
534 char_traits<char16_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
536 for (; __n; --__n, ++__s1, ++__s2)
538 if (lt(*__s1, *__s2))
540 if (lt(*__s2, *__s1))
571 char_traits<char16_t>::move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
574 if (__s1 < __s2)
576 for (; __n; --__n, ++__s1, ++__s2)
577 assign(*__s1, *__s2);
579 else if (__s2 < __s1)
582 __s2 += __n;
584 assign(*--__s1, *--__s2);
591 char_traits<char16_t>::copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
593 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
595 for (; __n; --__n, ++__s1, ++__s2)
596 assign(*__s1, *__s2);
627 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
633 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
635 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
653 char_traits<char32_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
655 for (; __n; --__n, ++__s1, ++__s2)
657 if (lt(*__s1, *__s2))
659 if (lt(*__s2, *__s1))
690 char_traits<char32_t>::move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
693 if (__s1 < __s2)
695 for (; __n; --__n, ++__s1, ++__s2)
696 assign(*__s1, *__s2);
698 else if (__s2 < __s1)
701 __s2 += __n;
703 assign(*--__s1, *--__s2);
710 char_traits<char32_t>::copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
712 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
714 for (; __n; --__n, ++__s1, ++__s2)
715 assign(*__s1, *__s2);