Home
last modified time | relevance | path

Searched refs:__str (Results 1 – 25 of 92) sorted by relevance

1234

/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/
H A Dquoted_string.h55 _Quoted_string(_String __str, _CharT __del, _CharT __esc) in _GLIBCXX_VISIBILITY()
56 : _M_string(__str), _M_delim{__del}, _M_escape{__esc} in _GLIBCXX_VISIBILITY()
71 _Quoted_string(basic_string_view<_CharT, _Traits> __str, in _GLIBCXX_VISIBILITY()
73 : _M_string(__str), _M_delim{__del}, _M_escape{__esc} in _GLIBCXX_VISIBILITY()
93 const _Quoted_string<const _CharT*, _CharT>& __str) in _GLIBCXX_VISIBILITY()
98 __ostr << __str._M_delim; in _GLIBCXX_VISIBILITY()
99 for (const _CharT* __c = __str._M_string; *__c; ++__c) in _GLIBCXX_VISIBILITY()
101 if (*__c == __str._M_delim || *__c == __str._M_escape) in _GLIBCXX_VISIBILITY()
102 __ostr << __str._M_escape; in _GLIBCXX_VISIBILITY()
105 __ostr << __str._M_delim; in _GLIBCXX_VISIBILITY()
[all …]
H A Dbasic_string.h550 basic_string(const basic_string& __str) in _GLIBCXX_VISIBILITY()
552 _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) in _GLIBCXX_VISIBILITY()
554 _M_construct(__str._M_data(), __str._M_data() + __str.length(), in _GLIBCXX_VISIBILITY()
567 basic_string(const basic_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
571 const _CharT* __start = __str._M_data() in _GLIBCXX_VISIBILITY()
572 + __str._M_check(__pos, "basic_string::basic_string"); in _GLIBCXX_VISIBILITY()
573 _M_construct(__start, __start + __str._M_limit(__pos, npos), in _GLIBCXX_VISIBILITY()
584 basic_string(const basic_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
588 const _CharT* __start = __str._M_data() in _GLIBCXX_VISIBILITY()
589 + __str._M_check(__pos, "basic_string::basic_string"); in _GLIBCXX_VISIBILITY()
[all …]
H A Dstring_view.tcc48 find(const _CharT* __str, size_type __pos, size_type __n) const noexcept in find() argument
50 __glibcxx_requires_string_len(__str, __n); in find()
57 const _CharT __elem0 = __str[0]; in find()
71 if (traits_type::compare(__first, __str, __n) == 0) in find()
97 rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept in rfind() argument
99 __glibcxx_requires_string_len(__str, __n); in rfind()
106 if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) in rfind()
134 find_first_of(const _CharT* __str, size_type __pos, in find_first_of() argument
137 __glibcxx_requires_string_len(__str, __n); in find_first_of()
140 const _CharT* __p = traits_type::find(__str, __n, in find_first_of()
[all …]
H A Dcow_string.h545 basic_string(const basic_string& __str) in _GLIBCXX_VISIBILITY()
546 : _M_dataplus(__str._M_rep()->_M_grab(_Alloc(__str.get_allocator()), in _GLIBCXX_VISIBILITY()
547 __str.get_allocator()), in _GLIBCXX_VISIBILITY()
548 __str.get_allocator()) in _GLIBCXX_VISIBILITY()
559 basic_string(const basic_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
568 basic_string(const basic_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
577 basic_string(const basic_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
627 basic_string(basic_string&& __str) noexcept in _GLIBCXX_VISIBILITY()
628 : _M_dataplus(std::move(__str._M_dataplus)) in _GLIBCXX_VISIBILITY()
632 __str._M_data(_S_empty_rep()._M_refdata()); in _GLIBCXX_VISIBILITY()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/bits/
H A Dquoted_string.h55 _Quoted_string(_String __str, _CharT __del, _CharT __esc) in _GLIBCXX_VISIBILITY()
56 : _M_string(__str), _M_delim{__del}, _M_escape{__esc} in _GLIBCXX_VISIBILITY()
71 _Quoted_string(basic_string_view<_CharT, _Traits> __str, in _GLIBCXX_VISIBILITY()
73 : _M_string(__str), _M_delim{__del}, _M_escape{__esc} in _GLIBCXX_VISIBILITY()
94 const _Quoted_string<const _CharT*, _CharT>& __str) in _GLIBCXX_VISIBILITY()
97 __ostr << __str._M_delim; in _GLIBCXX_VISIBILITY()
98 for (const _CharT* __c = __str._M_string; *__c; ++__c) in _GLIBCXX_VISIBILITY()
100 if (*__c == __str._M_delim || *__c == __str._M_escape) in _GLIBCXX_VISIBILITY()
101 __ostr << __str._M_escape; in _GLIBCXX_VISIBILITY()
104 __ostr << __str._M_delim; in _GLIBCXX_VISIBILITY()
[all …]
H A Dbasic_string.h456 basic_string(const basic_string& __str) in _GLIBCXX_VISIBILITY()
458 _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) in _GLIBCXX_VISIBILITY()
459 { _M_construct(__str._M_data(), __str._M_data() + __str.length()); } in _GLIBCXX_VISIBILITY()
469 basic_string(const basic_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
473 const _CharT* __start = __str._M_data() in _GLIBCXX_VISIBILITY()
474 + __str._M_check(__pos, "basic_string::basic_string"); in _GLIBCXX_VISIBILITY()
475 _M_construct(__start, __start + __str._M_limit(__pos, npos)); in _GLIBCXX_VISIBILITY()
484 basic_string(const basic_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
488 const _CharT* __start = __str._M_data() in _GLIBCXX_VISIBILITY()
489 + __str._M_check(__pos, "basic_string::basic_string"); in _GLIBCXX_VISIBILITY()
[all …]
H A Dstring_view.tcc48 find(const _CharT* __str, size_type __pos, size_type __n) const noexcept in find() argument
50 __glibcxx_requires_string_len(__str, __n); in find()
58 if (traits_type::eq(this->_M_str[__pos], __str[0]) in find()
60 __str + 1, __n - 1) == 0) in find()
85 rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept in rfind() argument
87 __glibcxx_requires_string_len(__str, __n); in rfind()
94 if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) in rfind()
122 find_first_of(const _CharT* __str, size_type __pos, in find_first_of() argument
125 __glibcxx_requires_string_len(__str, __n); in find_first_of()
128 const _CharT* __p = traits_type::find(__str, __n, in find_first_of()
[all …]
H A Dbasic_string.tcc255 _M_assign(const basic_string& __str) in _M_assign() argument
257 if (this != &__str) in _M_assign()
259 const size_type __rsize = __str.length(); in _M_assign()
272 this->_S_copy(_M_data(), __str._M_data(), __rsize); in _M_assign()
612 basic_string(const basic_string& __str)
613 : _M_dataplus(__str._M_rep()->_M_grab(_Alloc(__str.get_allocator()),
614 __str.get_allocator()),
615 __str.get_allocator())
626 basic_string(const basic_string& __str, size_type __pos, const _Alloc& __a)
627 : _M_dataplus(_S_construct(__str._M_data()
[all …]
H A Dfs_path.h141 _S_range_begin(const basic_string<_CharT, _Traits, _Alloc>& __str) in _GLIBCXX_VISIBILITY()
142 { return __str.data(); } in _GLIBCXX_VISIBILITY()
146 _S_range_end(const basic_string<_CharT, _Traits, _Alloc>& __str) in _GLIBCXX_VISIBILITY()
147 { return __str.data() + __str.size(); } in _GLIBCXX_VISIBILITY()
151 _S_range_begin(const basic_string_view<_CharT, _Traits>& __str) in _GLIBCXX_VISIBILITY()
152 { return __str.data(); } in _GLIBCXX_VISIBILITY()
156 _S_range_end(const basic_string_view<_CharT, _Traits>& __str) in _GLIBCXX_VISIBILITY()
157 { return __str.data() + __str.size(); } in _GLIBCXX_VISIBILITY()
506 std::basic_string<_CharT> __str; in _GLIBCXX_VISIBILITY()
508 __str.push_back(__ch); in _GLIBCXX_VISIBILITY()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/experimental/
H A Dstring_view106 _Allocator>& __str) noexcept
107 : _M_len{__str.length()}, _M_str{__str.data()}
110 constexpr basic_string_view(const _CharT* __str)
111 : _M_len{__str == nullptr ? 0 : traits_type::length(__str)},
112 _M_str{__str}
115 constexpr basic_string_view(const _CharT* __str, size_type __len)
117 _M_str{__str}
256 copy(_CharT* __str, size_type __n, size_type __pos = 0) const
258 __glibcxx_requires_string_len(__str, __n);
267 *__str++ = *__begin++;
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/experimental/
H A Dstring_view105 _Allocator>& __str) noexcept
106 : _M_len{__str.length()}, _M_str{__str.data()}
109 constexpr basic_string_view(const _CharT* __str)
110 : _M_len{__str == nullptr ? 0 : traits_type::length(__str)},
111 _M_str{__str}
114 constexpr basic_string_view(const _CharT* __str, size_type __len)
116 _M_str{__str}
255 copy(_CharT* __str, size_type __n, size_type __pos = 0) const
257 __glibcxx_requires_string_len(__str, __n);
266 *__str++ = *__begin++;
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/std/
H A Dstring_view133 basic_string_view(const _CharT* __str) noexcept
134 : _M_len{traits_type::length(__str)},
135 _M_str{__str}
139 basic_string_view(const _CharT* __str, size_type __len) noexcept
140 : _M_len{__len}, _M_str{__str}
298 copy(_CharT* __str, size_type __n, size_type __pos = 0) const
300 __glibcxx_requires_string_len(__str, __n);
305 traits_type::copy(__str, data() + __pos, __rlen);
318 compare(basic_string_view __str) const noexcept
320 const size_type __rlen = std::min(this->_M_len, __str._M_len);
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/std/
H A Dstring_view127 basic_string_view(const _CharT* __str) noexcept
128 : _M_len{traits_type::length(__str)},
129 _M_str{__str}
133 basic_string_view(const _CharT* __str, size_type __len) noexcept
134 : _M_len{__len}, _M_str{__str}
268 copy(_CharT* __str, size_type __n, size_type __pos = 0) const
270 __glibcxx_requires_string_len(__str, __n);
275 traits_type::copy(__str, data() + __pos, __rlen);
288 compare(basic_string_view __str) const noexcept
290 const size_type __rlen = std::min(this->_M_len, __str._M_len);
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/
H A Dvstring.h146 __versa_string(const __versa_string& __str) in _GLIBCXX_VISIBILITY()
147 : __vstring_base(__str) { } in _GLIBCXX_VISIBILITY()
158 __versa_string(__versa_string&& __str) noexcept in _GLIBCXX_VISIBILITY()
159 : __vstring_base(std::move(__str)) { } in _GLIBCXX_VISIBILITY()
177 __versa_string(const __versa_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
179 : __vstring_base(__str._M_data() in _GLIBCXX_VISIBILITY()
180 + __str._M_check(__pos, in _GLIBCXX_VISIBILITY()
182 __str._M_data() + __str._M_limit(__pos, __n) in _GLIBCXX_VISIBILITY()
192 __versa_string(const __versa_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
194 : __vstring_base(__str._M_data() in _GLIBCXX_VISIBILITY()
[all …]
H A Dvstring.tcc184 __versa_string<_CharT, _Traits, _Alloc, _Base> __str; in operator +() local
185 __str.reserve(__lhs.size() + __rhs.size()); in operator +()
186 __str.append(__lhs); in operator +()
187 __str.append(__rhs); in operator +()
188 return __str; in operator +()
201 __string_type __str; in operator +() local
202 __str.reserve(__len + __rhs.size()); in operator +()
203 __str.append(__lhs, __len); in operator +()
204 __str.append(__rhs); in operator +()
205 return __str; in operator +()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/
H A Dvstring.h147 __versa_string(const __versa_string& __str) in _GLIBCXX_VISIBILITY()
148 : __vstring_base(__str) { } in _GLIBCXX_VISIBILITY()
159 __versa_string(__versa_string&& __str) noexcept in _GLIBCXX_VISIBILITY()
160 : __vstring_base(std::move(__str)) { } in _GLIBCXX_VISIBILITY()
178 __versa_string(const __versa_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
180 : __vstring_base(__str._M_data() in _GLIBCXX_VISIBILITY()
181 + __str._M_check(__pos, in _GLIBCXX_VISIBILITY()
183 __str._M_data() + __str._M_limit(__pos, __n) in _GLIBCXX_VISIBILITY()
193 __versa_string(const __versa_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
195 : __vstring_base(__str._M_data() in _GLIBCXX_VISIBILITY()
[all …]
H A Dvstring.tcc184 __versa_string<_CharT, _Traits, _Alloc, _Base> __str; in operator +() local
185 __str.reserve(__lhs.size() + __rhs.size()); in operator +()
186 __str.append(__lhs); in operator +()
187 __str.append(__rhs); in operator +()
188 return __str; in operator +()
201 __string_type __str; in operator +() local
202 __str.reserve(__len + __rhs.size()); in operator +()
203 __str.append(__lhs, __len); in operator +()
204 __str.append(__rhs); in operator +()
205 return __str; in operator +()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/experimental/bits/
H A Dstring_view.tcc52 find(const _CharT* __str, size_type __pos, size_type __n) const noexcept in find() argument
54 __glibcxx_requires_string_len(__str, __n); in find()
62 if (traits_type::eq(this->_M_str[__pos], __str[0]) in find()
64 __str + 1, __n - 1) == 0) in find()
89 rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept in rfind() argument
91 __glibcxx_requires_string_len(__str, __n); in rfind()
98 if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) in rfind()
126 find_first_of(const _CharT* __str, size_type __pos, size_type __n) const in find_first_of() argument
128 __glibcxx_requires_string_len(__str, __n); in find_first_of()
131 const _CharT* __p = traits_type::find(__str, __n, in find_first_of()
[all …]
H A Dfs_path.h151 _S_range_begin(const basic_string<_CharT, _Traits, _Alloc>& __str) in _GLIBCXX_VISIBILITY()
152 { return __str.data(); } in _GLIBCXX_VISIBILITY()
156 _S_range_end(const basic_string<_CharT, _Traits, _Alloc>& __str) in _GLIBCXX_VISIBILITY()
157 { return __str.data() + __str.size(); } in _GLIBCXX_VISIBILITY()
162 _S_range_begin(const basic_string_view<_CharT, _Traits>& __str) in _GLIBCXX_VISIBILITY()
163 { return __str.data(); } in _GLIBCXX_VISIBILITY()
167 _S_range_end(const basic_string_view<_CharT, _Traits>& __str) in _GLIBCXX_VISIBILITY()
168 { return __str.data() + __str.size(); } in _GLIBCXX_VISIBILITY()
434 std::basic_string<_CharT> __str; in _GLIBCXX_VISIBILITY()
436 __str.push_back(__ch); in _GLIBCXX_VISIBILITY()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/experimental/bits/
H A Dstring_view.tcc52 find(const _CharT* __str, size_type __pos, size_type __n) const noexcept in find() argument
54 __glibcxx_requires_string_len(__str, __n); in find()
62 if (traits_type::eq(this->_M_str[__pos], __str[0]) in find()
64 __str + 1, __n - 1) == 0) in find()
89 rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept in rfind() argument
91 __glibcxx_requires_string_len(__str, __n); in rfind()
98 if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) in rfind()
126 find_first_of(const _CharT* __str, size_type __pos, size_type __n) const in find_first_of() argument
128 __glibcxx_requires_string_len(__str, __n); in find_first_of()
131 const _CharT* __p = traits_type::find(__str, __n, in find_first_of()
[all …]
/netbsd-src/external/apache2/llvm/dist/libcxx/include/
H A Dios848 boolalpha(ios_base& __str)
850 __str.setf(ios_base::boolalpha);
851 return __str;
856 noboolalpha(ios_base& __str)
858 __str.unsetf(ios_base::boolalpha);
859 return __str;
864 showbase(ios_base& __str)
866 __str.setf(ios_base::showbase);
867 return __str;
872 noshowbase(ios_base& __str)
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/c++98/
H A Dlocalename.cc98 string __str; in locale() local
99 __str.reserve(128); in locale()
102 __str += _S_categories[__j]; in locale()
103 __str += '='; in locale()
104 __str += __lang; in locale()
105 __str += ';'; in locale()
107 __str += _S_categories[__i]; in locale()
108 __str += '='; in locale()
109 __str += __env; in locale()
110 __str += ';'; in locale()
[all …]
H A Distream-string.cc43 operator>>(basic_istream<char>& __in, basic_string<char>& __str) in operator >>() argument
60 __str.erase(); in operator >>()
63 : __str.max_size(); in operator >>()
83 __str.append(__sb->gptr(), __size); in operator >>()
90 __str += __traits_type::to_char_type(__c); in operator >>()
122 getline(basic_istream<char>& __in, basic_string<char>& __str, in getline() argument
134 const __size_type __n = __str.max_size(); in getline()
141 __str.erase(); in getline()
161 __str.append(__sb->gptr(), __size); in getline()
168 __str += __traits_type::to_char_type(__c); in getline()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/src/c++98/
H A Dlocalename.cc94 string __str; in locale() local
95 __str.reserve(128); in locale()
98 __str += _S_categories[__j]; in locale()
99 __str += '='; in locale()
100 __str += __lang; in locale()
101 __str += ';'; in locale()
103 __str += _S_categories[__i]; in locale()
104 __str += '='; in locale()
105 __str += __env; in locale()
106 __str += ';'; in locale()
[all …]
H A Distream-string.cc43 operator>>(basic_istream<char>& __in, basic_string<char>& __str) in operator >>() argument
60 __str.erase(); in operator >>()
63 : __str.max_size(); in operator >>()
83 __str.append(__sb->gptr(), __size); in operator >>()
90 __str += __traits_type::to_char_type(__c); in operator >>()
122 getline(basic_istream<char>& __in, basic_string<char>& __str, in getline() argument
134 const __size_type __n = __str.max_size(); in getline()
141 __str.erase(); in getline()
161 __str.append(__sb->gptr(), __size); in getline()
168 __str += __traits_type::to_char_type(__c); in getline()
[all …]

1234