• Home
  • Raw
  • Download

Lines Matching refs:__s1

89     int compare(const char_type* __s1, const char_type* __s2, size_t __n);
94 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
96 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
114 char_traits<_CharT>::compare(const char_type* __s1, const char_type* __s2, size_t __n)
116 for (; __n; --__n, ++__s1, ++__s2)
118 if (lt(*__s1, *__s2))
120 if (lt(*__s2, *__s1))
153 char_traits<_CharT>::move(char_type* __s1, const char_type* __s2, size_t __n)
155 char_type* __r = __s1;
156 if (__s1 < __s2)
158 for (; __n; --__n, ++__s1, ++__s2)
159 assign(*__s1, *__s2);
161 else if (__s2 < __s1)
163 __s1 += __n;
166 assign(*--__s1, *--__s2);
174 char_traits<_CharT>::copy(char_type* __s1, const char_type* __s2, size_t __n)
176 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
177 char_type* __r = __s1;
178 for (; __n; --__n, ++__s1, ++__s2)
179 assign(*__s1, *__s2);
213 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
218 static inline char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
219 {return __n == 0 ? __s1 : (char_type*) memmove(__s1, __s2, __n);}
220 static inline char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
222 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
223 return __n == 0 ? __s1 : (char_type*)memcpy(__s1, __s2, __n);
242 char_traits<char>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
247 return __builtin_memcmp(__s1, __s2, __n);
249 return memcmp(__s1, __s2, __n);
251 for (; __n; --__n, ++__s1, ++__s2)
253 if (lt(*__s1, *__s2))
255 if (lt(*__s2, *__s1))
303 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
308 static inline char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
309 {return __n == 0 ? __s1 : (char_type*)wmemmove(__s1, __s2, __n);}
310 static inline char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
312 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
313 return __n == 0 ? __s1 : (char_type*)wmemcpy(__s1, __s2, __n);
332 char_traits<wchar_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
337 return __builtin_wmemcmp(__s1, __s2, __n);
339 return wmemcmp(__s1, __s2, __n);
341 for (; __n; --__n, ++__s1, ++__s2)
343 if (lt(*__s1, *__s2))
345 if (lt(*__s2, *__s1))
409 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
415 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
417 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
435 char_traits<char16_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
437 for (; __n; --__n, ++__s1, ++__s2)
439 if (lt(*__s1, *__s2))
441 if (lt(*__s2, *__s1))
472 char_traits<char16_t>::move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
474 char_type* __r = __s1;
475 if (__s1 < __s2)
477 for (; __n; --__n, ++__s1, ++__s2)
478 assign(*__s1, *__s2);
480 else if (__s2 < __s1)
482 __s1 += __n;
485 assign(*--__s1, *--__s2);
492 char_traits<char16_t>::copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
494 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
495 char_type* __r = __s1;
496 for (; __n; --__n, ++__s1, ++__s2)
497 assign(*__s1, *__s2);
528 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
534 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
536 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
554 char_traits<char32_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
556 for (; __n; --__n, ++__s1, ++__s2)
558 if (lt(*__s1, *__s2))
560 if (lt(*__s2, *__s1))
591 char_traits<char32_t>::move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
593 char_type* __r = __s1;
594 if (__s1 < __s2)
596 for (; __n; --__n, ++__s1, ++__s2)
597 assign(*__s1, *__s2);
599 else if (__s2 < __s1)
601 __s1 += __n;
604 assign(*--__s1, *--__s2);
611 char_traits<char32_t>::copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
613 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
614 char_type* __r = __s1;
615 for (; __n; --__n, ++__s1, ++__s2)
616 assign(*__s1, *__s2);