Home
last modified time | relevance | path

Searched refs:__n2 (Results 1 – 15 of 15) sorted by relevance

/openbsd/src/gnu/gcc/libstdc++-v3/include/bits/
Dbasic_string.tcc397 size_type __n2) in replace() argument
399 __glibcxx_requires_string_len(__s, __n2); in replace()
402 _M_check_length(__n1, __n2, "basic_string::replace"); in replace()
405 return _M_replace_safe(__pos, __n1, __s, __n2); in replace()
406 else if ((__left = __s + __n2 <= _M_data() + __pos) in replace()
411 __left ? __off : (__off += __n2 - __n1); in replace()
412 _M_mutate(__pos, __n1, __n2); in replace()
413 _M_copy(_M_data() + __pos, _M_data() + __off, __n2); in replace()
419 const basic_string __tmp(__s, __n2); in replace()
420 return _M_replace_safe(__pos, __n1, __tmp._M_data(), __n2); in replace()
[all …]
Dbasic_string.h316 _M_check_length(size_type __n1, size_type __n2, const char* __s) const in _GLIBCXX_BEGIN_NAMESPACE()
318 if (this->max_size() - (this->size() - __n1) < __n2) in _GLIBCXX_BEGIN_NAMESPACE()
1206 size_type __pos2, size_type __n2) in _GLIBCXX_BEGIN_NAMESPACE()
1209 __str._M_limit(__pos2, __n2)); } in _GLIBCXX_BEGIN_NAMESPACE()
1230 size_type __n2); in _GLIBCXX_BEGIN_NAMESPACE()
1271 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) in _GLIBCXX_BEGIN_NAMESPACE()
1273 _M_limit(__pos, __n1), __n2, __c); } in _GLIBCXX_BEGIN_NAMESPACE()
1439 _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, in _GLIBCXX_BEGIN_NAMESPACE()
1444 size_type __n2); in _GLIBCXX_BEGIN_NAMESPACE()
1984 size_type __pos2, size_type __n2) const; in _GLIBCXX_BEGIN_NAMESPACE()
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/config/io/
Dbasic_file_stdio.cc142 const char* __s2, std::streamsize __n2) in xwritev() argument
144 std::streamsize __nleft = __n1 + __n2; in xwritev()
149 __iov[1].iov_len = __n2; in xwritev()
169 __nleft -= xwrite(__fd, __s2 + __off, __n2 - __off); in xwritev()
177 return __n1 + __n2 - __nleft; in xwritev()
303 const char* __s2, streamsize __n2) in xsputn_2() argument
307 __ret = xwritev(this->fd(), __s1, __n1, __s2, __n2); in xsputn_2()
313 __ret += xwrite(this->fd(), __s2, __n2); in xsputn_2()
Dbasic_file_stdio.h95 const char* __s2, streamsize __n2);
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/
Dvstring.tcc99 _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, in _M_replace_aux() argument
102 _M_check_length(__n1, __n2, "__versa_string::_M_replace_aux"); in _M_replace_aux()
105 const size_type __new_size = __old_size + __n2 - __n1; in _M_replace_aux()
112 if (__how_much && __n1 != __n2) in _M_replace_aux()
113 this->_S_move(__p + __n2, __p + __n1, __how_much); in _M_replace_aux()
116 this->_M_mutate(__pos1, __n1, 0, __n2); in _M_replace_aux()
118 if (__n2) in _M_replace_aux()
119 this->_S_assign(this->_M_data() + __pos1, __n2, __c); in _M_replace_aux()
479 size_type __pos2, size_type __n2) const in compare()
484 __n2 = __str._M_limit(__pos2, __n2); in compare()
[all …]
Dvstring.h90 _M_check_length(size_type __n1, size_type __n2, const char* __s) const in _GLIBCXX_BEGIN_NAMESPACE()
92 if (this->max_size() - (this->size() - __n1) < __n2) in _GLIBCXX_BEGIN_NAMESPACE()
971 size_type __pos2, size_type __n2) in _GLIBCXX_BEGIN_NAMESPACE()
976 __str._M_limit(__pos2, __n2)); in _GLIBCXX_BEGIN_NAMESPACE()
998 size_type __n2) in _GLIBCXX_BEGIN_NAMESPACE()
1000 __glibcxx_requires_string_len(__s, __n2); in _GLIBCXX_BEGIN_NAMESPACE()
1002 _M_limit(__pos, __n1), __s, __n2); in _GLIBCXX_BEGIN_NAMESPACE()
1044 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) in _GLIBCXX_BEGIN_NAMESPACE()
1046 _M_limit(__pos, __n1), __n2, __c); } in _GLIBCXX_BEGIN_NAMESPACE()
1212 _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, in _GLIBCXX_BEGIN_NAMESPACE()
[all …]
Dslist737 const _Node* __n2 = (const _Node*) __x._M_head._M_next;
738 while (__n1 && __n2)
740 __n1->_M_data = __n2->_M_data;
743 __n2 = (const _Node*) __n2->_M_next;
745 if (__n2 == 0)
748 _M_insert_after_range(__p1, const_iterator((_Node*)__n2),
/openbsd/src/gnu/lib/libstdc++/libstdc++/include/bits/
Dbasic_string.tcc349 size_type __n2) in replace() argument
356 if (__size - __foldn1 > this->max_size() - __n2) in replace()
361 _M_ibegin() + __pos + __foldn1, __s, __s + __n2); in replace()
365 __s, __s + __n2, in replace()
658 size_type __pos2, size_type __n2) in replace() argument
663 const bool __testn2 = __n2 < __strsize - __pos2; in replace()
664 const size_type __foldn2 = __testn2 ? __n2 : __strsize - __pos2; in replace()
755 replace(iterator __i1, iterator __i2, size_type __n2, _CharT __c) in replace() argument
759 if (max_size() - (this->size() - __n1) <= __n2) in replace()
761 _M_mutate (__off1, __n1, __n2); in replace()
[all …]
Dbasic_string.h590 size_type __pos2, size_type __n2);
594 size_type __n2);
601 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) in replace() argument
602 { return this->replace(_M_check(__pos), _M_fold(__pos, __n1), __n2, __c); } in replace()
843 size_type __pos2, size_type __n2) const;
855 size_type __n2) const;
/openbsd/src/gnu/gcc/libstdc++-v3/include/debug/
Dstring483 size_type __pos2, size_type __n2)
485 _Base::replace(__pos1, __n1, __str, __pos2, __n2);
492 size_type __n2)
494 __glibcxx_check_string_len(__s, __n2);
495 _Base::replace(__pos, __n1, __s, __n2);
510 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c)
512 _Base::replace(__pos, __n1, __n2, __c);
751 size_type __pos2, size_type __n2) const
752 { return _Base::compare(__pos1, __n1, __str, __pos2, __n2); }
774 size_type __n2) const
[all …]
/openbsd/src/gnu/llvm/libcxx/include/
Dstring1373 …ize_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2=npos);
1381 … replace(size_type __pos1, size_type __n1, const _Tp& __t, size_type __pos2, size_type __n2=npos);
1383 basic_string& replace(size_type __pos, size_type __n1, const value_type* __s, size_type __n2);
1385 …SINCE_CXX20 basic_string& replace(size_type __pos, size_type __n1, size_type __n2, value_type __c);
1602 size_type __n2 = npos) const;
1611 …compare(size_type __pos1, size_type __n1, const _Tp& __t, size_type __pos2, size_type __n2=npos) c…
1615 int compare(size_type __pos1, size_type __n1, const value_type* __s, size_type __n2) const;
3056 …raits, _Allocator>::replace(size_type __pos, size_type __n1, const value_type* __s, size_type __n2)
3059 _LIBCPP_ASSERT(__n2 == 0 || __s != nullptr, "string::replace received nullptr");
3065 if (__cap - __sz + __n1 >= __n2)
[all …]
Dstring_view468 basic_string_view __sv, size_type __pos2, size_type __n2) const
470 return substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2));
486 int compare(size_type __pos1, size_type __n1, const _CharT* __s, size_type __n2) const
488 return substr(__pos1, __n1).compare(basic_string_view(__s, __n2));
Dlist2186 size_type __n2 = __n / 2;
2187 iterator __e1 = _VSTD::next(__f1, __n2);
2188 iterator __r = __f1 = __sort(__f1, __e1, __n2, __comp);
2189 iterator __f2 = __e1 = __sort(__e1, __e2, __n - __n2, __comp);
/openbsd/src/gnu/lib/libstdc++/libstdc++/include/ext/
Dslist650 const _Node* __n2 = (const _Node*) __x._M_head._M_next;
651 while (__n1 && __n2) {
652 __n1->_M_data = __n2->_M_data;
655 __n2 = (const _Node*) __n2->_M_next;
657 if (__n2 == 0)
660 _M_insert_after_range(__p1, const_iterator((_Node*)__n2),
/openbsd/src/gnu/lib/libstdc++/libstdc++/
DChangeLog4721 * include/bits/basic_string.h (replace(__pos, __n1, __s, __n2):
6715 (replace(__pos, __n1, __s, __n2)): Optimize by avoiding
6717 (replace(__pos, __n, __str)): Call replace(__pos, __n1, __s, __n2).
6718 (replace(__pos, __n1, __s)): Call replace(__pos, __n1, __s , __n2).
6721 (replace(__i1, __i2, __s, __n)): Call replace(__pos1, __n1, __s, __n2).
6723 (replace(__pos1, __n1, __str, __pos2, __n2)): Call
6724 replace(__pos, __n1, __s, __n2).