Lines Matching defs:__s1

96     int compare(const char_type* __s1, const char_type* __s2, size_t __n) {
97 for (; __n; --__n, ++__s1, ++__s2)
99 if (lt(*__s1, *__s2))
101 if (lt(*__s2, *__s1))
124 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) {
125 if (__n == 0) return __s1;
126 char_type* __r = __s1;
127 if (__s1 < __s2)
129 for (; __n; --__n, ++__s1, ++__s2)
130 assign(*__s1, *__s2);
132 else if (__s2 < __s1)
134 __s1 += __n;
137 assign(*--__s1, *--__s2);
143 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) {
145 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
147 char_type* __r = __s1;
148 for (; __n; --__n, ++__s1, ++__s2)
149 assign(*__s1, *__s2);
213 static _LIBCPP_CONSTEXPR_SINCE_CXX17 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
216 return std::__constexpr_memcmp(__s1, __s2, __n);
231 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
232 return std::__char_traits_move(__s1, __s2, __n);
236 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
238 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
239 std::copy_n(__s2, __n, __s1);
240 return __s1;
283 static _LIBCPP_CONSTEXPR_SINCE_CXX17 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
286 return std::__constexpr_wmemcmp(__s1, __s2, __n);
301 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
302 return std::__char_traits_move(__s1, __s2, __n);
306 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
308 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
309 std::copy_n(__s2, __n, __s1);
310 return __s1;
354 compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
355 return std::__constexpr_memcmp(__s1, __s2, __n);
365 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
366 return std::__char_traits_move(__s1, __s2, __n);
370 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
372 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
373 std::copy_n(__s2, __n, __s1);
374 return __s1;
442 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
449 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
450 return std::__char_traits_move(__s1, __s2, __n);
454 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
456 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
457 std::copy_n(__s2, __n, __s1);
458 return __s1;
481 char_traits<char16_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
483 for (; __n; --__n, ++__s1, ++__s2)
485 if (lt(*__s1, *__s2))
487 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 {
549 std::copy_n(__s2, __n, __s1);
550 return __s1;
573 char_traits<char32_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
575 for (; __n; --__n, ++__s1, ++__s2)
577 if (lt(*__s1, *__s2))
579 if (lt(*__s2, *__s1))