Lines Matching refs:__n
209 int compare(const char_type* __s1, const char_type* __s2, size_t __n);
213 const char_type* find(const char_type* __s, size_t __n, const char_type& __a);
215 char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
218 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
221 char_type* assign(char_type* __s, size_t __n, char_type __a);
237 char_traits<_CharT>::compare(const char_type* __s1, const char_type* __s2, size_t __n)
239 for (; __n; --__n, ++__s1, ++__s2)
263 char_traits<_CharT>::find(const char_type* __s, size_t __n, const char_type& __a)
265 for (; __n; --__n)
276 char_traits<_CharT>::move(char_type* __s1, const char_type* __s2, size_t __n)
278 if (__n == 0) return __s1;
282 for (; __n; --__n, ++__s1, ++__s2)
287 __s1 += __n;
288 __s2 += __n;
289 for (; __n; --__n)
298 char_traits<_CharT>::copy(char_type* __s1, const char_type* __s2, size_t __n)
300 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
302 for (; __n; --__n, ++__s1, ++__s2)
310 char_traits<_CharT>::assign(char_type* __s, size_t __n, char_type __a)
313 for (; __n; --__n, ++__s)
322 _CharT* __move_constexpr(_CharT* __s1, const _CharT* __s2, size_t __n) _NOEXCEPT
324 if (__n == 0) return __s1;
326 _VSTD::copy(__s2, __s2 + __n, __s1);
328 _VSTD::copy_backward(__s2, __s2 + __n, __s1 + __n);
335 _CharT* __copy_constexpr(_CharT* __s1, const _CharT* __s2, size_t __n) _NOEXCEPT
337 _VSTD::copy_n(__s2, __n, __s1);
343 _CharT* __assign_constexpr(_CharT* __s, size_t __n, _CharT __a) _NOEXCEPT
345 _VSTD::fill_n(__s, __n, __a);
368 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
372 const char_type* find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT;
374 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
377 ? _VSTD::__move_constexpr(__s1, __s2, __n)
378 : __n == 0 ? __s1 : (char_type*)memmove(__s1, __s2, __n);
381 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
383 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
385 ? _VSTD::__copy_constexpr(__s1, __s2, __n)
386 : __n == 0 ? __s1 : (char_type*)memcpy(__s1, __s2, __n);
389 char_type* assign(char_type* __s, size_t __n, char_type __a) _NOEXCEPT
392 ? _VSTD::__assign_constexpr(__s, __n, __a)
393 : __n == 0 ? __s : (char_type*)memset(__s, to_int_type(__a), __n);
410 char_traits<char>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
412 if (__n == 0)
415 return __builtin_memcmp(__s1, __s2, __n);
417 return memcmp(__s1, __s2, __n);
419 for (; __n; --__n, ++__s1, ++__s2)
432 char_traits<char>::find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT
434 if (__n == 0)
437 return __builtin_char_memchr(__s, to_int_type(__a), __n);
439 return (const char_type*) memchr(__s, to_int_type(__a), __n);
441 for (; __n; --__n)
471 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
475 const char_type* find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT;
477 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
480 ? _VSTD::__move_constexpr(__s1, __s2, __n)
481 : __n == 0 ? __s1 : wmemmove(__s1, __s2, __n);
484 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
486 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
488 ? _VSTD::__copy_constexpr(__s1, __s2, __n)
489 : __n == 0 ? __s1 : wmemcpy(__s1, __s2, __n);
492 char_type* assign(char_type* __s, size_t __n, char_type __a) _NOEXCEPT
495 ? _VSTD::__assign_constexpr(__s, __n, __a)
496 : __n == 0 ? __s : wmemset(__s, __a, __n);
512 char_traits<wchar_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
514 if (__n == 0)
517 return __builtin_wmemcmp(__s1, __s2, __n);
519 return wmemcmp(__s1, __s2, __n);
521 for (; __n; --__n, ++__s1, ++__s2)
562 char_traits<wchar_t>::find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT
564 if (__n == 0)
567 return __builtin_wmemchr(__s, __a, __n);
569 return wmemchr(__s, __a, __n);
571 for (; __n; --__n)
601 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
607 const char_type* find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT;
610 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
613 ? _VSTD::__move_constexpr(__s1, __s2, __n)
614 : __n == 0 ? __s1 : (char_type*)memmove(__s1, __s2, __n);
618 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
620 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
622 ? _VSTD::__copy_constexpr(__s1, __s2, __n)
623 : __n == 0 ? __s1 : (char_type*)memcpy(__s1, __s2, __n);
627 char_type* assign(char_type* __s, size_t __n, char_type __a) _NOEXCEPT
630 ? _VSTD::__assign_constexpr(__s, __n, __a)
631 : __n == 0 ? __s : (char_type*)memset(__s, to_int_type(__a), __n);
659 char_traits<char8_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
662 return __builtin_memcmp(__s1, __s2, __n);
664 for (; __n; --__n, ++__s1, ++__s2)
678 char_traits<char8_t>::find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT
680 for (; __n; --__n)
710 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
714 const char_type* find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT;
716 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
718 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
720 static char_type* assign(char_type* __s, size_t __n, char_type __a) _NOEXCEPT;
736 char_traits<char16_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
738 for (; __n; --__n, ++__s1, ++__s2)
760 char_traits<char16_t>::find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT
762 for (; __n; --__n)
773 char_traits<char16_t>::move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
775 if (__n == 0) return __s1;
779 for (; __n; --__n, ++__s1, ++__s2)
784 __s1 += __n;
785 __s2 += __n;
786 for (; __n; --__n)
794 char_traits<char16_t>::copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
796 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
798 for (; __n; --__n, ++__s1, ++__s2)
805 char_traits<char16_t>::assign(char_type* __s, size_t __n, char_type __a) _NOEXCEPT
808 for (; __n; --__n, ++__s)
830 int compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
834 const char_type* find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT;
836 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
838 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT;
840 static char_type* assign(char_type* __s, size_t __n, char_type __a) _NOEXCEPT;
856 char_traits<char32_t>::compare(const char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
858 for (; __n; --__n, ++__s1, ++__s2)
880 char_traits<char32_t>::find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT
882 for (; __n; --__n)
893 char_traits<char32_t>::move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
895 if (__n == 0) return __s1;
899 for (; __n; --__n, ++__s1, ++__s2)
904 __s1 += __n;
905 __s2 += __n;
906 for (; __n; --__n)
914 char_traits<char32_t>::copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT
916 _LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
918 for (; __n; --__n, ++__s1, ++__s2)
925 char_traits<char32_t>::assign(char_type* __s, size_t __n, char_type __a) _NOEXCEPT
928 for (; __n; --__n, ++__s)
993 const _CharT* __s, _SizeT __pos, _SizeT __n) _NOEXCEPT
998 if (__n == 0) // There is nothing to search, just return __pos.
1002 __p + __pos, __p + __sz, __s, __s + __n);
1034 const _CharT* __s, _SizeT __pos, _SizeT __n) _NOEXCEPT
1037 if (__n < __sz - __pos)
1038 __pos += __n;
1042 __p, __p + __pos, __s, __s + __n, _Traits::eq,
1044 if (__n > 0 && __r == __p + __pos)
1053 const _CharT* __s, _SizeT __pos, _SizeT __n) _NOEXCEPT
1055 if (__pos >= __sz || __n == 0)
1058 (__p + __pos, __p + __sz, __s, __s + __n, _Traits::eq );
1069 const _CharT* __s, _SizeT __pos, _SizeT __n) _NOEXCEPT
1071 if (__n != 0)
1079 const _CharT* __r = _Traits::find(__s, __n, *--__ps);
1092 const _CharT* __s, _SizeT __pos, _SizeT __n) _NOEXCEPT
1098 if (_Traits::find(__s, __n, *__ps) == nullptr)
1125 const _CharT* __s, _SizeT __pos, _SizeT __n) _NOEXCEPT
1132 if (_Traits::find(__s, __n, *--__ps) == nullptr)