Home
last modified time | relevance | path

Searched refs:__pos (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/__string/
H A Dchar_traits.h356 __str_find(const _CharT* __p, _SizeT __sz, _CharT __c, _SizeT __pos) _NOEXCEPT {
357 if (__pos >= __sz)
359 const _CharT* __r = _Traits::find(__p + __pos, __sz - __pos, __c);
405 __str_find(const _CharT* __p, _SizeT __sz, const _CharT* __s, _SizeT __pos, _SizeT __n) _NOEXCEPT {
406 if (__pos > __sz)
410 return __pos;
412 …const _CharT* __r = std::__search_substring<_CharT, _Traits>(__p + __pos, __p + __sz, __s, __s + _…
423 __str_rfind(const _CharT* __p, _SizeT __sz, _CharT __c, _SizeT __pos) _NOEXCEPT {
426 if (__pos < __sz)
427 ++__pos;
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dbitset195 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 reference __make_ref(size_t __pos) _NOEXCEPT {
196 …return reference(__first_ + __pos / __bits_per_word, __storage_type(1) << __pos % __bits_per_word);
198 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR const_reference __make_ref(size_t __pos) const _NOEXCEPT {
199 …return const_reference(__first_ + __pos / __bits_per_word, __storage_type(1) << __pos % __bits_per…
201 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 iterator __make_iter(size_t __pos) _NOEXCEPT {
202 return iterator(__first_ + __pos / __bits_per_word, __pos % __bits_per_word);
204 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 const_iterator __make_iter(size_t __pos) const…
205 return const_iterator(__first_ + __pos / __bits_per_word, __pos % __bits_per_word);
457 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 reference __make_ref(size_t __pos) _NOEXCEPT {
458 return reference(&__first_, __storage_type(1) << __pos);
[all …]
H A Dstring_view401 …_LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI const_reference operator[](size_type __pos) const _NOEXCEP…
402 …return _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__pos < size(), "string_view[] index out of bounds"), _…
405 _LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI const_reference at(size_type __pos) const {
406 return __pos >= size() ? (__throw_out_of_range("string_view::at"), __data_[0]) : __data_[__pos];
442 copy(_CharT* __s, size_type __n, size_type __pos = 0) const {
443 if (__pos > size())
445 size_type __rlen = std::min(__n, size() - __pos);
446 _Traits::copy(__s, data() + __pos, __rlen);
450 …_LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI basic_string_view substr(size_type __pos = 0, size_type __…
451 return __pos > size() ? (__throw_out_of_range("string_view::substr"), basic_string_view())
[all …]
H A Dstring1095 basic_string&& __str, size_type __pos, const _Allocator& __alloc = _Allocator())
1096 : basic_string(std::move(__str), __pos, npos, __alloc) {}
1099 … basic_string&& __str, size_type __pos, size_type __n, const _Allocator& __alloc = _Allocator())
1101 if (__pos > __str.size())
1104 auto __len = std::min<size_type>(__n, __str.size() - __pos);
1106 __move_assign(std::move(__str), __pos, __len);
1109 __init(__str.data() + __pos, __len);
1121 …basic_string(const basic_string& __str, size_type __pos, size_type __n, const _Allocator& __a = _A…
1124 if (__pos > __str_sz)
1126 __init(__str.data() + __pos, std::min(__n, __str_sz - __pos));
[all …]
H A Ddeque537 …_LIBCPP_HIDE_FROM_ABI __deque_range(iterator __pos, iterator __e) _NOEXCEPT : __pos_(__pos), __end…
1638 size_type __pos = __p - begin();
1639 size_type __to_end = size() - __pos;
1641 if (__pos < __to_end) { // insert by shifting things backward
1646 if (__pos == 0) {
1656 if (__pos > 1)
1657 __b = std::move(std::next(__b), __b + __pos, __b);
1665 size_type __de = size() - __pos;
1679 return begin() + __pos;
1685 size_type __pos = __p - begin();
[all …]
H A Dvector1132 for (pointer __pos = __tx.__pos_; __pos != __new_end; __tx.__pos_ = ++__pos) {
1133 __alloc_traits::construct(this->__alloc(), std::__to_address(__pos));
1148 for (pointer __pos = __tx.__pos_; __pos != __new_end; __tx.__pos_ = ++__pos) {
1149 __alloc_traits::construct(this->__alloc(), std::__to_address(__pos), __x);
1602 for (pointer __pos = __tx.__pos_; __i < __from_e; ++__i, (void)++__pos, __tx.__pos_ = __pos) {
1603 __alloc_traits::construct(this->__alloc(), std::__to_address(__pos), std::move(*__i));
2247 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 reference __make_ref(size_type __pos) _NOEXCEP…
2248 …return reference(__begin_ + __pos / __bits_per_word, __storage_type(1) << __pos % __bits_per_word);
2250 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference __make_ref(size_type __pos) co…
2252 __begin_ + __pos / __bits_per_word, __storage_type(1) << __pos % __bits_per_word);
[all …]
H A Dsstream458 …typename string_type::size_type __pos = __view.empty() ? 0 : __view.data() - __str_.data…
459 …// In C++23, this is just string_type(std::move(__str_), __pos, __view.size(), __str_.get_allocato…
462 __result.resize(__pos + __view.size());
463 __result.erase(0, __pos);
H A Distream296 basic_istream& seekg(pos_type __pos);
1066 basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>::seekg(pos_type __pos) {
1074 if (this->rdbuf()->pubseekpos(__pos, ios_base::in) == pos_type(-1))
H A Dmap1180 _LIBCPP_HIDE_FROM_ABI iterator insert(const_iterator __pos, _Pp&& __p) {
1181 return __tree_.__insert_unique(__pos.__i_, std::forward<_Pp>(__p));
1853 _LIBCPP_HIDE_FROM_ABI iterator insert(const_iterator __pos, _Pp&& __p) {
1854 return __tree_.__insert_multi(__pos.__i_, std::forward<_Pp>(__p));
/freebsd/contrib/llvm-project/libcxx/include/__filesystem/
H A Dpath.h295 size_t __pos = __dest.size();
296 __dest.resize(__pos + __size);
297 __char_to_wide(__str, const_cast<__path_value*>(__dest.data()) + __pos, __size);
346 size_t __pos = __dest.size();
348 __wide_to_char(__src, const_cast<char*>(__dest.data()) + __pos, __size);
/freebsd/contrib/llvm-project/libcxx/include/__ostream/
H A Dbasic_ostream.h123 inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1 basic_ostream& seekp(pos_type __pos);
703 basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>::seekp(pos_type __pos) { in seekp() argument
706 if (this->rdbuf()->pubseekpos(__pos, ios_base::out) == pos_type(-1)) in seekp()
/freebsd/contrib/llvm-project/libcxx/include/__pstl/internal/
H A Dalgorithm_impl.h