• Home
  • Raw
  • Download

Lines Matching refs:__s1

91     int compare(const char_type* __s1, const char_type* __s2, size_t __n);
96 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
98 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
116 char_traits<_CharT>::compare(const char_type* __s1, const char_type* __s2, size_t __n)
118 for (; __n; --__n, ++__s1, ++__s2)
120 if (lt(*__s1, *__s2))
122 if (lt(*__s2, *__s1))
155 char_traits<_CharT>::move(char_type* __s1, const char_type* __s2, size_t __n)
157 char_type* __r = __s1;
158 if (__s1 < __s2)
160 for (; __n; --__n, ++__s1, ++__s2)
161 assign(*__s1, *__s2);
163 else if (__s2 < __s1)
165 __s1 += __n;
168 assign(*--__s1, *--__s2);
176 char_traits<_CharT>::copy(char_type* __s1, const char_type* __s2, size_t __n)
178 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
179 char_type* __r = __s1;
180 for (; __n; --__n, ++__s1, ++__s2)
181 assign(*__s1, *__s2);
215 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
220 static inline char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
221 {return __n == 0 ? __s1 : (char_type*) memmove(__s1, __s2, __n);}
222 static inline char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
224 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
225 return __n == 0 ? __s1 : (char_type*)memcpy(__s1, __s2, __n);
244 char_traits<char>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
249 return __builtin_memcmp(__s1, __s2, __n);
251 return memcmp(__s1, __s2, __n);
253 for (; __n; --__n, ++__s1, ++__s2)
255 if (lt(*__s1, *__s2))
257 if (lt(*__s2, *__s1))
305 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
310 static inline char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
311 {return __n == 0 ? __s1 : (char_type*)wmemmove(__s1, __s2, __n);}
312 static inline char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
314 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
315 return __n == 0 ? __s1 : (char_type*)wmemcpy(__s1, __s2, __n);
334 char_traits<wchar_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
339 return __builtin_wmemcmp(__s1, __s2, __n);
341 return wmemcmp(__s1, __s2, __n);
343 for (; __n; --__n, ++__s1, ++__s2)
345 if (lt(*__s1, *__s2))
347 if (lt(*__s2, *__s1))
411 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
417 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
419 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
437 char_traits<char16_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
439 for (; __n; --__n, ++__s1, ++__s2)
441 if (lt(*__s1, *__s2))
443 if (lt(*__s2, *__s1))
474 char_traits<char16_t>::move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
476 char_type* __r = __s1;
477 if (__s1 < __s2)
479 for (; __n; --__n, ++__s1, ++__s2)
480 assign(*__s1, *__s2);
482 else if (__s2 < __s1)
484 __s1 += __n;
487 assign(*--__s1, *--__s2);
494 char_traits<char16_t>::copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
496 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
497 char_type* __r = __s1;
498 for (; __n; --__n, ++__s1, ++__s2)
499 assign(*__s1, *__s2);
530 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
536 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
538 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
556 char_traits<char32_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
558 for (; __n; --__n, ++__s1, ++__s2)
560 if (lt(*__s1, *__s2))
562 if (lt(*__s2, *__s1))
593 char_traits<char32_t>::move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
595 char_type* __r = __s1;
596 if (__s1 < __s2)
598 for (; __n; --__n, ++__s1, ++__s2)
599 assign(*__s1, *__s2);
601 else if (__s2 < __s1)
603 __s1 += __n;
606 assign(*--__s1, *--__s2);
613 char_traits<char32_t>::copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
615 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
616 char_type* __r = __s1;
617 for (; __n; --__n, ++__s1, ++__s2)
618 assign(*__s1, *__s2);