Home
last modified time | relevance | path

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

123

/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/bits/
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 …]
Dbasic_string.h437 basic_string(const basic_string& __str) in _GLIBCXX_VISIBILITY()
439 _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) in _GLIBCXX_VISIBILITY()
440 { _M_construct(__str._M_data(), __str._M_data() + __str.length()); } in _GLIBCXX_VISIBILITY()
450 basic_string(const basic_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
454 const _CharT* __start = __str._M_data() in _GLIBCXX_VISIBILITY()
455 + __str._M_check(__pos, "basic_string::basic_string"); in _GLIBCXX_VISIBILITY()
456 _M_construct(__start, __start + __str._M_limit(__pos, npos)); in _GLIBCXX_VISIBILITY()
465 basic_string(const basic_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
469 const _CharT* __start = __str._M_data() in _GLIBCXX_VISIBILITY()
470 + __str._M_check(__pos, "basic_string::basic_string"); in _GLIBCXX_VISIBILITY()
[all …]
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 …]
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()
610 basic_string(const basic_string& __str)
611 : _M_dataplus(__str._M_rep()->_M_grab(_Alloc(__str.get_allocator()),
612 __str.get_allocator()),
613 __str.get_allocator())
624 basic_string(const basic_string& __str, size_type __pos, const _Alloc& __a)
625 : _M_dataplus(_S_construct(__str._M_data()
[all …]
Dfs_path.h126 _S_range_begin(const basic_string<_CharT, _Traits, _Alloc>& __str) in _GLIBCXX_VISIBILITY()
127 { return __str.data(); } in _GLIBCXX_VISIBILITY()
131 _S_range_end(const basic_string<_CharT, _Traits, _Alloc>& __str) in _GLIBCXX_VISIBILITY()
132 { return __str.data() + __str.size(); } in _GLIBCXX_VISIBILITY()
136 _S_range_begin(const basic_string_view<_CharT, _Traits>& __str) in _GLIBCXX_VISIBILITY()
137 { return __str.data(); } in _GLIBCXX_VISIBILITY()
141 _S_range_end(const basic_string_view<_CharT, _Traits>& __str) in _GLIBCXX_VISIBILITY()
142 { return __str.data() + __str.size(); } in _GLIBCXX_VISIBILITY()
400 path(string_type __str, _Type __type) : _M_pathname(__str), _M_type(__type) in _GLIBCXX_VISIBILITY()
462 const std::string __str(__first, __last); in _GLIBCXX_VISIBILITY()
[all …]
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/experimental/
Dstring_view104 _Allocator>& __str) noexcept
105 : _M_len{__str.length()}, _M_str{__str.data()}
108 constexpr basic_string_view(const _CharT* __str)
109 : _M_len{__str == nullptr ? 0 : traits_type::length(__str)},
110 _M_str{__str}
113 constexpr basic_string_view(const _CharT* __str, size_type __len)
115 _M_str{__str}
257 copy(_CharT* __str, size_type __n, size_type __pos = 0) const
259 __glibcxx_requires_string_len(__str, __n);
268 *__str++ = *__begin++;
[all …]
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/std/
Dstring_view99 constexpr basic_string_view(const _CharT* __str) noexcept
100 : _M_len{__str == nullptr ? 0 : traits_type::length(__str)},
101 _M_str{__str}
105 basic_string_view(const _CharT* __str, size_type __len) noexcept
106 : _M_len{__len}, _M_str{__str}
233 copy(_CharT* __str, size_type __n, size_type __pos = 0) const
235 __glibcxx_requires_string_len(__str, __n);
240 traits_type::copy(__str, data() + __pos, __rlen);
253 compare(basic_string_view __str) const noexcept
255 const size_type __rlen = std::min(this->_M_len, __str._M_len);
[all …]
Dsstream106 * @param __str A string to copy as a starting buffer.
113 basic_stringbuf(const __string_type& __str,
116 _M_string(__str.data(), __str.size(), __str.get_allocator())
306 const _CharT* const __str = __from._M_string.data();
310 _M_goff[0] = __from.eback() - __str;
311 _M_goff[1] = __from.gptr() - __str;
312 _M_goff[2] = __from.egptr() - __str;
317 _M_poff[0] = __from.pbase() - __str;
319 _M_poff[2] = __from.epptr() - __str;
330 __mut_from._M_string._M_length(__end - __str);
[all …]
/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/ext/
Dvstring.h150 __versa_string(const __versa_string& __str) in _GLIBCXX_VISIBILITY()
151 : __vstring_base(__str) { } in _GLIBCXX_VISIBILITY()
162 __versa_string(__versa_string&& __str) noexcept in _GLIBCXX_VISIBILITY()
163 : __vstring_base(std::move(__str)) { } in _GLIBCXX_VISIBILITY()
181 __versa_string(const __versa_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
183 : __vstring_base(__str._M_data() in _GLIBCXX_VISIBILITY()
184 + __str._M_check(__pos, in _GLIBCXX_VISIBILITY()
186 __str._M_data() + __str._M_limit(__pos, __n) in _GLIBCXX_VISIBILITY()
196 __versa_string(const __versa_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
198 : __vstring_base(__str._M_data() in _GLIBCXX_VISIBILITY()
[all …]
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 …]
Dstring_conversions.h55 const char* __name, const _CharT* __str, std::size_t* __idx, in _GLIBCXX_VISIBILITY()
62 const _TRet __tmp = __convf(__str, &__endptr, __base...); in _GLIBCXX_VISIBILITY()
64 if (__endptr == __str) in _GLIBCXX_VISIBILITY()
75 *__idx = __endptr - __str; in _GLIBCXX_VISIBILITY()
/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/bits/
Dbasic_string.h452 basic_string(const basic_string& __str); in _GLIBCXX_VISIBILITY()
459 basic_string(const basic_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
468 basic_string(const basic_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
504 basic_string(basic_string&& __str) noexcept in _GLIBCXX_VISIBILITY()
505 : _M_dataplus(__str._M_dataplus) in _GLIBCXX_VISIBILITY()
508 __str._M_data(_S_empty_rep()._M_refdata()); in _GLIBCXX_VISIBILITY()
510 __str._M_data(_S_construct(size_type(), _CharT(), get_allocator())); in _GLIBCXX_VISIBILITY()
543 operator=(const basic_string& __str) in _GLIBCXX_VISIBILITY()
544 { return this->assign(__str); } in _GLIBCXX_VISIBILITY()
577 operator=(basic_string&& __str) in _GLIBCXX_VISIBILITY()
[all …]
Dbasic_string.tcc172 basic_string(const basic_string& __str) in basic_string() argument
173 : _M_dataplus(__str._M_rep()->_M_grab(_Alloc(__str.get_allocator()), in basic_string()
174 __str.get_allocator()), in basic_string()
175 __str.get_allocator()) in basic_string()
186 basic_string(const basic_string& __str, size_type __pos, size_type __n) in basic_string() argument
187 : _M_dataplus(_S_construct(__str._M_data() in basic_string()
188 + __str._M_check(__pos, in basic_string()
190 __str._M_data() + __str._M_limit(__pos, __n) in basic_string()
196 basic_string(const basic_string& __str, size_type __pos, in basic_string() argument
198 : _M_dataplus(_S_construct(__str._M_data() in basic_string()
[all …]
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/ext/
Dvstring.h145 __versa_string(const __versa_string& __str) in _GLIBCXX_VISIBILITY()
146 : __vstring_base(__str) { } in _GLIBCXX_VISIBILITY()
157 __versa_string(__versa_string&& __str) noexcept in _GLIBCXX_VISIBILITY()
158 : __vstring_base(std::move(__str)) { } in _GLIBCXX_VISIBILITY()
176 __versa_string(const __versa_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
178 : __vstring_base(__str._M_data() in _GLIBCXX_VISIBILITY()
179 + __str._M_check(__pos, in _GLIBCXX_VISIBILITY()
181 __str._M_data() + __str._M_limit(__pos, __n) in _GLIBCXX_VISIBILITY()
191 __versa_string(const __versa_string& __str, size_type __pos, in _GLIBCXX_VISIBILITY()
193 : __vstring_base(__str._M_data() in _GLIBCXX_VISIBILITY()
[all …]
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 …]
Dstring_conversions.h55 const char* __name, const _CharT* __str, std::size_t* __idx, in _GLIBCXX_VISIBILITY()
80 const _TRet __tmp = __convf(__str, &__endptr, __base...); in _GLIBCXX_VISIBILITY()
82 if (__endptr == __str) in _GLIBCXX_VISIBILITY()
91 *__idx = __endptr - __str; in _GLIBCXX_VISIBILITY()
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/experimental/bits/
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 …]
/dragonfly/contrib/gcc-8.0/libstdc++-v3/src/c++98/
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 …]
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 …]
/dragonfly/contrib/gcc-4.7/libstdc++-v3/src/c++98/
Dlocalename.cc95 string __str; in locale() local
96 __str.reserve(128); in locale()
99 __str += _S_categories[__j]; in locale()
100 __str += '='; in locale()
101 __str += __lang; in locale()
102 __str += ';'; in locale()
104 __str += _S_categories[__i]; in locale()
105 __str += '='; in locale()
106 __str += __env; in locale()
107 __str += ';'; in locale()
[all …]
Distream.cc279 operator>>(basic_istream<char>& __in, basic_string<char>& __str) in operator >>() argument
296 __str.erase(); in operator >>()
299 : __str.max_size(); in operator >>()
319 __str.append(__sb->gptr(), __size); in operator >>()
326 __str += __traits_type::to_char_type(__c); in operator >>()
358 getline(basic_istream<char>& __in, basic_string<char>& __str, in getline() argument
370 const __size_type __n = __str.max_size(); in getline()
377 __str.erase(); in getline()
397 __str.append(__sb->gptr(), __size); in getline()
404 __str += __traits_type::to_char_type(__c); in getline()
[all …]
/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/debug/
Dstring82 basic_string(const basic_string& __str)
83 : _Base(__str, 0, _Base::npos, __str.get_allocator())
88 basic_string(const basic_string& __str, size_type __pos,
91 : _Base(__str, __pos, __n, __a)
117 basic_string(basic_string&& __str) noexcept
118 : _Base(std::move(__str))
130 operator=(const basic_string& __str)
132 *static_cast<_Base*>(this) = __str;
156 operator=(basic_string&& __str)
158 *static_cast<_Base*>(this) = std::move(__str);
[all …]
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/debug/
Dstring87 basic_string(const basic_string& __str)
88 : _Base(__str) { }
121 basic_string(const basic_string& __str, size_type __pos,
124 : _Base(__str, __pos, __n, __a) { }
147 operator=(const basic_string& __str)
149 this->_M_safe() = __str;
150 _M_base() = __str;
321 operator+=(const basic_string& __str)
323 _M_base() += __str;
356 append(const basic_string& __str)
[all …]
/dragonfly/contrib/gcc-4.7/libssp/ssp/
HDstdio.h76 extern char *__gets_chk (char *__str, size_t);
77 extern char *__SSP_REDIRECT (__gets_alias, (char *__str), gets);
80 gets (char *__str) in gets() argument
82 if (__ssp_bos (__str) != (size_t) -1) in gets()
83 return __gets_chk (__str, __ssp_bos (__str)); in gets()
84 return __gets_alias (__str); in gets()
/dragonfly/contrib/gcc-8.0/libstdc++-v3/src/c++11/
Dcxx11-ios_failure.cc87 ios_base::failure::failure(const string& __str) in failure() argument
88 : system_error(io_errc::stream, __str) { } in failure()
90 ios_base::failure::failure(const string& __str, const error_code& __ec) in failure() argument
91 : system_error(__ec, __str) { } in failure()
93 ios_base::failure::failure(const char* __str, const error_code& __ec) in failure() argument
94 : system_error(__ec, __str) { } in failure()

123