Home
last modified time | relevance | path

Searched refs:__s (Results 1 – 25 of 65) sorted by relevance

123

/external/stlport/stlport/stl/
D_ios_base.h267 inline ios_base& _STLP_CALL boolalpha(ios_base& __s) in boolalpha() argument
268 { __s.setf(ios_base::boolalpha); return __s;} in boolalpha()
270 inline ios_base& _STLP_CALL noboolalpha(ios_base& __s) in noboolalpha() argument
271 { __s.unsetf(ios_base::boolalpha); return __s;} in noboolalpha()
273 inline ios_base& _STLP_CALL showbase(ios_base& __s) in showbase() argument
274 { __s.setf(ios_base::showbase); return __s;} in showbase()
276 inline ios_base& _STLP_CALL noshowbase(ios_base& __s) in noshowbase() argument
277 { __s.unsetf(ios_base::showbase); return __s;} in noshowbase()
279 inline ios_base& _STLP_CALL showpoint(ios_base& __s) in showpoint() argument
280 { __s.setf(ios_base::showpoint); return __s;} in showpoint()
[all …]
D_string.h183 basic_string(const _Self& __s, size_type __pos, size_type __n = npos,
186 basic_string(const _Self& __s, size_type __pos) in basic_string() argument
188 if (__pos > __s.size()) in basic_string()
191 _M_range_initialize(__s._M_Start() + __pos, __s._M_Finish()); in basic_string()
193 basic_string(const _Self& __s, size_type __pos, size_type __n) in basic_string() argument
195 if (__pos > __s.size()) in basic_string()
198 _M_range_initialize(__s._M_Start() + __pos, in basic_string()
199 __s._M_Start() + __pos + (min) (__n, __s.size() - __pos)); in basic_string()
201 basic_string(const _Self& __s, size_type __pos, size_type __n, in basic_string() argument
205 if (__pos > __s.size()) in basic_string()
[all …]
D_string_sum_methods.h24 …basic_string(_STLP_PRIV __bstr_sum<_CharT, _Traits, _Alloc, _Left, _Right, _StorageDir> const& __s) in basic_string() argument
25 : _STLP_STRING_SUM_BASE(_Reserve_t(), __s.size(), __s.get_allocator()) in basic_string()
26 { _M_append_sum(__s); } in basic_string()
29 …basic_string(_STLP_PRIV __bstr_sum<_CharT, _Traits, _Alloc, _Left, _Right, _StorageDir> const& __s,
32 …: _STLP_STRING_SUM_BASE(_Reserve_t(), (__pos <= __s.size()) ? ((min) (__n, __s.size() - __pos)) : … in _Reserve_t()
33 size_type __size = __s.size(); in _Reserve_t()
37 _M_append_sum_pos(__s, __pos, (min) (__n, __size - __pos)); in _Reserve_t()
45 _CharT* _M_append_fast(_CharT const* __s, size_type __s_size, _CharT *__buf) in _M_append_fast() argument
46 { return uninitialized_copy(__s, __s + __s_size, __buf); } in _M_append_fast()
47 _CharT* _M_append_fast(_STLP_PRIV __cstr_wrapper<_CharT> const& __s, _CharT *__buf) in _M_append_fast() argument
[all …]
D_monetary.c122 _InputIter __money_do_get(_InputIter __s, _InputIter __end, bool __intl, in __money_do_get() argument
125 if (__s == __end) { in __money_do_get()
127 return __s; in __money_do_get()
156 if (!__c_type.is(ctype_base::space, *__s)) { in __money_do_get()
158 return __s; in __money_do_get()
160 ++__s; in __money_do_get()
162 while (__s != __end && __c_type.is(ctype_base::space, *__s)) in __money_do_get()
163 ++__s; in __money_do_get()
169 __result = __get_string(__s, __end, __curs.begin(), __curs.end()); in __money_do_get()
172 __s = __result.first; in __money_do_get()
[all …]
D_string_sum.h67 __bstr_wrapper (_BString const& __s) : in __bstr_wrapper()
68 _BStr(__s) {} in __bstr_wrapper()
124 _BStrOnLeft operator += (const _BString& __s) { return append(__s); }
127 _CStrOnLeft operator += (const _CharT* __s) { return append(__s); }
133 _BStrOnLeft append (const _BString& __s) in append() argument
134 { return _BStrOnLeft(*this, __s); } in append()
135 _BString& append(const _BString& __s, size_type __pos, size_type __n) in append() argument
136 { return _M_get_storage().append(__s, __pos, __n); } in append()
137 _CStrOnLeft append(const _CharT* __s) { in append() argument
138 const size_type __n = _Traits::length(__s); in append()
[all …]
D_string_operators.h29 operator+(const basic_string<_CharT,_Traits,_Alloc>& __s,
35 _Str __result = _Str(_Reserve_t(), __s.size() + __y.size(), __s.get_allocator());
37 _Str __result(_Reserve_t(), __s.size() + __y.size(), __s.get_allocator());
39 __result.append(__s);
46 operator+(const _CharT* __s,
48 _STLP_FIX_LITERAL_BUG(__s)
51 const size_t __n = _Traits::length(__s);
57 __result.append(__s, __s + __n);
81 const _CharT* __s) {
82 _STLP_FIX_LITERAL_BUG(__s)
[all …]
D_num_put.h60 iter_type put(iter_type __s, ios_base& __f, char_type __fill, in put() argument
62 return do_put(__s, __f, __fill, __val); in put()
65 iter_type put(iter_type __s, ios_base& __f, char_type __fill, in put() argument
67 return do_put(__s, __f, __fill, __val); in put()
70 iter_type put(iter_type __s, ios_base& __f, char_type __fill, in put() argument
72 return do_put(__s, __f, __fill, __val); in put()
76 iter_type put(iter_type __s, ios_base& __f, char_type __fill, in put() argument
78 return do_put(__s, __f, __fill, __val); in put()
81 iter_type put(iter_type __s, ios_base& __f, char_type __fill, in put() argument
83 return do_put(__s, __f, __fill, __val); in put()
[all …]
D_string_workaround.h55 basic_string(const _Self& __s) in basic_string() argument
56 : _STLP_NO_MEM_T_STRING_BASE(__s) {} in basic_string()
58 basic_string(const _Self& __s, size_type __pos, size_type __n = npos,
60 : _STLP_NO_MEM_T_STRING_BASE(__s, __pos, __n, __a) {} in _STLP_NO_MEM_T_STRING_BASE() argument
62 basic_string(const _CharT* __s, size_type __n,
64 : _STLP_NO_MEM_T_STRING_BASE(__s, __n, __a) {} in _STLP_NO_MEM_T_STRING_BASE() argument
66 basic_string(const _CharT* __s,
68 : _STLP_NO_MEM_T_STRING_BASE(__s, __a) {} in _STLP_NO_MEM_T_STRING_BASE() argument
97 _Self& operator=(const _Self& __s) {
98 _Base::operator=(__s);
[all …]
D_string_base.h168 void _M_swap(_Self &__s) { argument
171 if (__s._M_using_static_buf()) {
172 _STLP_STD::swap(_M_buffers, __s._M_buffers);
174 _M_finish = _M_start_of_storage._M_data + (__s._M_finish - __s._M_start_of_storage._M_data);
175 __s._M_finish = __s._M_buffers._M_static_buf + (__tmp - _M_start_of_storage._M_data);
177 _M_start_of_storage.swap(__s._M_start_of_storage);
179 __s._M_start_of_storage._M_data = __s._M_buffers._M_static_buf;
181 __s._M_swap(*this);
185 else if (__s._M_using_static_buf()) {
189 _M_buffers = __s._M_buffers;
[all …]
D_time_facets.c152 const ios_base& __s, ios_base::iostate& __err, tm* __t) { in _STLP_WEAK() argument
153 const ctype<_Ch>& __ct = use_facet<ctype<_Ch> >(__s.getloc()); in _STLP_WEAK()
305 time_get<_Ch, _InIt>::do_get_date(_InIt __s, _InIt __end, in do_get_date() argument
314 = _STLP_PRIV __get_formatted_time(__s, __end, __format, __format_end, in do_get_date()
321 if (__s == __end) in do_get_date()
324 return __s; in do_get_date()
329 time_get<_Ch, _InIt>::do_get_time(_InIt __s, _InIt __end, in do_get_time() argument
337 = _STLP_PRIV __get_formatted_time(__s, __end, __format, __format_end, in do_get_time()
342 if (__s == __end) in do_get_time()
344 return __s; in do_get_time()
[all …]
D_hash_fun.h44 inline size_t __stl_hash_string(const char* __s) { in __stl_hash_string() argument
45 _STLP_FIX_LITERAL_BUG(__s) in __stl_hash_string()
47 for ( ; *__s; ++__s) in __stl_hash_string()
48 __h = 5*__h + *__s; in __stl_hash_string()
57 size_t operator()(const char* __s) const {
58 _STLP_FIX_LITERAL_BUG(__s)
59 return _STLP_PRIV __stl_hash_string(__s);
65 size_t operator()(const char* __s) const {
66 _STLP_FIX_LITERAL_BUG(__s)
67 return _STLP_PRIV __stl_hash_string(__s);
D_string_hash.h34 __stl_string_hash(const basic_string<_CharT,_Traits,_Alloc>& __s) { in __stl_string_hash() argument
36 size_t __len = __s.size(); in __stl_string_hash()
37 const _CharT* __data = __s.data(); in __stl_string_hash()
47 size_t operator()(const basic_string<_CharT,_Traits,_Alloc>& __s) const
48 { return __stl_string_hash(__s); }
55 size_t operator()(const string& __s) const
56 { return __stl_string_hash(__s); }
62 size_t operator()(const wstring& __s) const
63 { return __stl_string_hash(__s); }
Dchar_traits.h153 static size_t _STLP_CALL length(const char_type* __s) { in length() argument
156 for (; !eq(__s[__i], _NullChar); ++__i) {} in length()
160 static const char_type* _STLP_CALL find(const char_type* __s, size_t __n, const char_type& __c) { in find() argument
161 for ( ; __n > 0 ; ++__s, --__n) in find()
162 if (eq(*__s, __c)) in find()
163 return __s; in find()
175 static char_type* _STLP_CALL assign(char_type* __s, size_t __n, char_type __c) { in assign() argument
177 __s[__i] = __c; in assign()
178 return __s; in assign()
228 static size_t _STLP_CALL length(const char* __s) in length() argument
[all …]
D_string_io.c31 const basic_string<_CharT,_Traits,_Alloc>& __s) {
43 size_type __n = __s.size();
55 __ok = __ok && (__buf->sputn(__s.data(), streamsize(__n)) == streamsize(__n));
70 basic_string<_CharT,_Traits, _Alloc>& __s) {
85 __s.clear();
89 __n = __s.max_size();
95 (__width > __STATIC_CAST(streamsize, __s.max_size())))
99 __s.reserve(__n);
117 __s.push_back(__c);
122 if (__s.empty())
[all …]
D_num_put.c115 __do_put_float(_OutputIter __s, ios_base& __f, in __do_put_float() argument
122 return __put_float(__buf, __s, __f, __fill, in __do_put_float()
192 __put_integer(char* __buf, char* __iend, _OutputIter __s, in __put_integer() argument
224 return __copy_integer_and_fill((wchar_t*)__wbuf, __len, __s, in __put_integer()
232 __put_integer(char* __buf, char* __iend, _OutputIter __s, in __put_integer() argument
260 return __copy_integer_and_fill(__buf, __len, __s, __flags, __f.width(0), __fill, '+', '-'); in __put_integer()
372 __do_put_integer(_OutputIter __s, ios_base& __f, _CharT __fill, _Integer __x) { in __do_put_integer() argument
381 return __put_integer(__ibeg, (char*)__buf + __buf_size, __s, __f, __flags, __fill); in __do_put_integer()
386 __do_put_bool(_OutputIter __s, ios_base& __f, _CharT __fill, bool __x) { in __do_put_bool() argument
393 return _STLP_STD::copy(__str.begin(), __str.end(), __s); in __do_put_bool()
[all …]
D_time_facets.h140 iter_type get_time(iter_type __s, iter_type __end, ios_base& __str, in get_time() argument
142 { return do_get_time(__s, __end, __str, __err, __t); } in get_time()
143 iter_type get_date(iter_type __s, iter_type __end, ios_base& __str, in get_date() argument
145 { return do_get_date(__s, __end, __str, __err, __t); } in get_date()
146 iter_type get_weekday(iter_type __s, iter_type __end, ios_base& __str, in get_weekday() argument
148 { return do_get_weekday(__s, __end, __str, __err, __t); } in get_weekday()
149 iter_type get_monthname(iter_type __s, iter_type __end, ios_base& __str, in get_monthname() argument
151 { return do_get_monthname(__s, __end, __str, __err, __t); } in get_monthname()
152 iter_type get_year(iter_type __s, iter_type __end, ios_base& __str, in get_year() argument
154 { return do_get_year(__s, __end, __str, __err, __t); } in get_year()
[all …]
D_ostream.h91 void _M_put_nowiden(const _CharT* __s);
92 void _M_put_widen(const char* __s);
93 bool _M_put_widen_aux(const char* __s, streamsize __n);
97 _Self& write(const char_type* __s, streamsize __n);
195 sentry(const _Self& __s) : _M_str(__s._M_str) {} in sentry() argument
248 operator<<(basic_ostream<_CharT, _Traits>& __os, const _CharT* __s) {
249 __os._M_put_nowiden(__s);
275 operator<<(basic_ostream<char, char_traits<char> >& __os, const char* __s) {
276 __os._M_put_nowiden(__s);
281 operator<<(basic_ostream<char, char_traits<char> >& __os, const signed char* __s) {
[all …]
D_istream.h133 _Self& get(char_type* __s, streamsize __n, char_type __delim);
134 _Self& get(char_type* __s, streamsize __n) in get() argument
135 { return get(__s, __n, this->widen('\n')); } in get()
144 _Self& getline(char_type* __s, streamsize __n, char_type delim);
145 _Self& getline(char_type* __s, streamsize __n) in getline() argument
146 { return getline(__s, __n, this->widen('\n')); } in getline()
153 _Self& read(char_type* __s, streamsize __n);
154 streamsize readsome(char_type* __s, streamsize __n);
169 void _M_formatted_get(_CharT* __s);
259 operator>>(basic_istream<_CharT, _Traits>& __in_str, _CharT* __s) {
[all …]
D_string.c420 __size_type__ basic_string<_CharT,_Traits,_Alloc>::find( const _CharT* __s, size_type __pos, in find() argument
433 __s, __s + __n, _STLP_PRIV _Eq_traits<_Traits>()); in find()
451 __size_type__ basic_string<_CharT,_Traits,_Alloc>::rfind(const _CharT* __s, size_type __pos, in rfind() argument
463 __s, __s + __n, _STLP_PRIV _Eq_traits<_Traits>()); in rfind()
482 basic_string<_CharT,_Traits,_Alloc> ::find_first_of(const _CharT* __s, size_type __pos, in find_first_of() argument
488 __s, __s + __n, in find_first_of()
496 basic_string<_CharT,_Traits,_Alloc> ::find_last_of(const _CharT* __s, size_type __pos, in find_last_of() argument
506 __s, __s + __n, in find_last_of()
513 basic_string<_CharT,_Traits,_Alloc> ::find_first_not_of(const _CharT* __s, size_type __pos, in find_first_not_of() argument
520 … __STATIC_CAST(const _CharType*, __s), in find_first_not_of()
[all …]
D_streambuf.c54 basic_streambuf<_CharT, _Traits>::xsgetn(_CharT* __s, streamsize __n) { in xsgetn() argument
62 _Traits::copy(__s, _M_gnext, __chunk); in xsgetn()
64 __s += __chunk; in xsgetn()
70 *__s = _Traits::to_char_type(__c); in xsgetn()
72 ++__s; in xsgetn()
84 basic_streambuf<_CharT, _Traits>::xsputn(const _CharT* __s, streamsize __n) in xsputn() argument
93 _Traits::copy(_M_pnext, __s, __chunk); in xsputn()
95 __s += __chunk; in xsputn()
99 else if (!_Traits::eq_int_type(this->overflow(_Traits::to_int_type(*__s)), in xsputn()
102 ++__s; in xsputn()
D_fstream.h168 _Self* open(const char* __s, ios_base::openmode __m) { in open() argument
169 return _M_base._M_open(__s, __m) ? this : 0; in open()
174 _Self* open(const char* __s, ios_base::openmode __m, in open() argument
176 return _M_base._M_open(__s, __m, __protection) ? this : 0; in open()
462 explicit basic_ifstream(const char* __s, ios_base::openmode __mod = ios_base::in) :
466 if (!_M_buf.open(__s, __mod | ios_base::in))
477 basic_ifstream(const char* __s, ios_base::openmode __m, in basic_ifstream() argument
481 if (!_M_buf.open(__s, __m | ios_base::in, __protection)) in basic_ifstream()
505 void open(const char* __s, ios_base::openmode __mod = ios_base::in) {
506 if (!this->rdbuf()->open(__s, __mod | ios_base::in))
[all …]
/external/stlport/stlport/stl/debug/
D_string.h97 basic_string(const _Self& __s) in basic_string() argument
98 : _ConstructCheck(__s), in basic_string()
99 _M_non_dbg_impl(__s._M_non_dbg_impl), _M_iter_list(&_M_non_dbg_impl) {} in basic_string()
101 basic_string(const _Self& __s, size_type __pos, size_type __n = npos,
103 : _M_non_dbg_impl(__s._M_non_dbg_impl, __pos, __n, __a),
106 basic_string(const _CharT* __s, size_type __n,
108 : _ConstructCheck(__s), _M_non_dbg_impl(__s, __n, __a), in _ConstructCheck() argument
111 basic_string(const _CharT* __s,
113 : _ConstructCheck(__s), in _ConstructCheck() argument
114 _M_non_dbg_impl(__s, __a), _M_iter_list(&_M_non_dbg_impl) {} in _ConstructCheck()
[all …]
D_string_sum_methods.h23 …basic_string(_STLP_PRIV __bstr_sum<_CharT, _Traits, _Alloc, _Left, _Right, _StorageDir> const& __s) in basic_string() argument
24 : _M_non_dbg_impl(_Reserve_t(), __s.size(), __s.get_allocator()), in basic_string()
26 { _M_append_sum(__s, _M_non_dbg_impl); } in basic_string()
29 …basic_string(_STLP_PRIV __bstr_sum<_CharT, _Traits, _Alloc, _Left, _Right, _StorageDir> const& __s,
32 …: _M_non_dbg_impl(_Reserve_t(), (__pos <= __s.size()) ? ((min) (__n, __s.size() - __pos)) : 0, __a… in _Reserve_t()
34 size_type __size = __s.size(); in _Reserve_t()
39 _M_append_sum_pos(__s, __pos, (min) (__n, __size - __pos), _M_non_dbg_impl); in _Reserve_t()
45 _Base& _M_append_fast(_CharT const* __s, size_type __s_size, _Base &__str) in _M_append_fast() argument
46 { return __str.append(__s, __s_size); } in _M_append_fast()
47 _Base& _M_append_fast(_STLP_PRIV __cstr_wrapper<_CharT> const& __s, _Base &__str) in _M_append_fast() argument
[all …]
/external/stlport/stlport/
Diostream.h58 istream_withassign& operator=(istream& __s) {
59 ios::init(__s.rdbuf());
62 istream_withassign& operator=(streambuf* __s) {
63 ios::init(__s);
73 ostream_withassign& operator=(ostream& __s) {
74 ios::init(__s.rdbuf());
77 ostream_withassign& operator=(streambuf* __s) {
78 ios::init(__s);
91 iostream_withassign & operator=(streambuf* __s) {
92 ios::init(__s);
/external/tcpdump/
Dcpack.h46 #define cpack_int8(__s, __p) cpack_uint8((__s), (u_int8_t*)(__p)) argument
47 #define cpack_int16(__s, __p) cpack_uint16((__s), (u_int16_t*)(__p)) argument
48 #define cpack_int32(__s, __p) cpack_uint32((__s), (u_int32_t*)(__p)) argument
49 #define cpack_int64(__s, __p) cpack_uint64((__s), (u_int64_t*)(__p)) argument

123