Home
last modified time | relevance | path

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

12345

/external/libcxx/include/
Dstring.h74 char* __libcpp_strchr(const char* __s, int __c) {return (char*)strchr(__s, __c);} in __libcpp_strchr() argument
76 const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);} in strchr() argument
78 char* strchr( char* __s, int __c) {return __libcpp_strchr(__s, __c);} in strchr() argument
88 char* __libcpp_strrchr(const char* __s, int __c) {return (char*)strrchr(__s, __c);} in __libcpp_strrchr() argument
90 const char* strrchr(const char* __s, int __c) {return __libcpp_strrchr(__s, __c);} in strrchr() argument
92 char* strrchr( char* __s, int __c) {return __libcpp_strrchr(__s, __c);} in strrchr() argument
95 void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);} in __libcpp_memchr() argument
97 const void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);} in memchr() argument
99 void* memchr( void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);} in memchr() argument
Dstdexcept65 __libcpp_refstring(const __libcpp_refstring& __s) _NOEXCEPT;
66 __libcpp_refstring& operator=(const __libcpp_refstring& __s) _NOEXCEPT;
115 _LIBCPP_INLINE_VISIBILITY explicit domain_error(const string& __s) : logic_error(__s) {}
116 _LIBCPP_INLINE_VISIBILITY explicit domain_error(const char* __s) : logic_error(__s) {}
125 _LIBCPP_INLINE_VISIBILITY explicit invalid_argument(const string& __s) : logic_error(__s) {}
126 _LIBCPP_INLINE_VISIBILITY explicit invalid_argument(const char* __s) : logic_error(__s) {}
135 _LIBCPP_INLINE_VISIBILITY explicit length_error(const string& __s) : logic_error(__s) {}
136 _LIBCPP_INLINE_VISIBILITY explicit length_error(const char* __s) : logic_error(__s) {}
145 _LIBCPP_INLINE_VISIBILITY explicit out_of_range(const string& __s) : logic_error(__s) {}
146 _LIBCPP_INLINE_VISIBILITY explicit out_of_range(const char* __s) : logic_error(__s) {}
[all …]
Dwchar.h137 wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcschr(__s, __c);} in __libcpp_wcschr() argument
139 const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} in wcschr() argument
141 wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} in wcschr() argument
151 wchar_t* __libcpp_wcsrchr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcsrchr(__s, __c);} in __libcpp_wcsrchr() argument
153 const wchar_t* wcsrchr(const wchar_t* __s, wchar_t __c) {return __libcpp_wcsrchr(__s, __c);} in wcsrchr() argument
155 wchar_t* wcsrchr( wchar_t* __s, wchar_t __c) {return __libcpp_wcsrchr(__s, __c);} in wcsrchr() argument
165 wchar_t* __libcpp_wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return (wchar_t*)wmemchr(__… in __libcpp_wmemchr() argument
167 const wchar_t* wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, _… in wmemchr() argument
169 …wchar_t* wmemchr( wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, _… in wmemchr() argument
Dstring_view226 basic_string_view(const _CharT* __s, size_type __len) _NOEXCEPT
227 : __data(__s), __size(__len)
230 // _LIBCPP_ASSERT(__len == 0 || __s != nullptr, "string_view::string_view(_CharT *, size_t)…
235 basic_string_view(const _CharT* __s)
236 : __data(__s), __size(_Traits::length(__s)) {}
332 size_type copy(_CharT* __s, size_type __n, size_type __pos = 0) const
337 _Traits::copy(__s, data() + __pos, __rlen);
372 int compare(const _CharT* __s) const _NOEXCEPT
374 return compare(basic_string_view(__s));
378 int compare(size_type __pos1, size_type __n1, const _CharT* __s) const
[all …]
D__string93 size_t length(const char_type* __s);
95 const char_type* find(const char_type* __s, size_t __n, const char_type& __a);
100 static char_type* assign(char_type* __s, size_t __n, char_type __a);
131 char_traits<_CharT>::length(const char_type* __s)
134 for (; !eq(*__s, char_type(0)); ++__s)
142 char_traits<_CharT>::find(const char_type* __s, size_t __n, const char_type& __a)
146 if (eq(*__s, __a))
147 return __s;
148 ++__s;
188 char_traits<_CharT>::assign(char_type* __s, size_t __n, char_type __a)
[all …]
Dregex1094 string_type __s(__f, __l);
1095 return __col_->transform(__s.data(), __s.data() + __s.size());
1124 const string_type __s(__f, __l);
1125 string_type __d = __col_->transform(__s.data(), __s.data() + __s.size());
1146 const string_type __s(__f, __l);
1147 string_type __d = __col_->transform(__s.data(), __s.data() + __s.size());
1164 _LIBCPP_FUNC_VIS string __get_collation_name(const char* __s);
1172 string_type __s(__f, __l);
1174 if (!__s.empty())
1176 __r = __get_collation_name(__s.c_str());
[all …]
D__bsd_locale_fallbacks.h57 size_t __libcpp_wcrtomb_l(char *__s, wchar_t __wc, mbstate_t *__ps, locale_t __l) in __libcpp_wcrtomb_l() argument
60 return wcrtomb(__s, __wc, __ps); in __libcpp_wcrtomb_l()
72 size_t __libcpp_mbrtowc_l(wchar_t *__pwc, const char *__s, size_t __n, in __libcpp_mbrtowc_l() argument
76 return mbrtowc(__pwc, __s, __n, __ps); in __libcpp_mbrtowc_l()
87 size_t __libcpp_mbrlen_l(const char *__s, size_t __n, mbstate_t *__ps, locale_t __l) in __libcpp_mbrlen_l() argument
90 return mbrlen(__s, __n, __ps); in __libcpp_mbrlen_l()
109 int __libcpp_snprintf_l(char *__s, size_t __n, locale_t __l, const char *__format, ...) { in __libcpp_snprintf_l() argument
113 int __res = vsnprintf(__s, __n, __format, __va); in __libcpp_snprintf_l()
119 int __libcpp_asprintf_l(char **__s, locale_t __l, const char *__format, ...) { in __libcpp_asprintf_l() argument
123 int __res = vasprintf(__s, __format, __va); in __libcpp_asprintf_l()
[all …]
Dostream223 basic_ostream& write(const char_type* __s, streamsize __n);
322 sentry __s(*this);
323 if (__s)
374 sentry __s(*this);
375 if (__s)
400 sentry __s(*this);
401 if (__s)
430 sentry __s(*this);
431 if (__s)
456 sentry __s(*this);
[all …]
Dfstream214 basic_filebuf* open(const char* __s, ios_base::openmode __mode);
216 basic_filebuf* open(const wchar_t* __s, ios_base::openmode __mode);
219 basic_filebuf* open(const string& __s, ios_base::openmode __mode);
228 virtual basic_streambuf<char_type, traits_type>* setbuf(char_type* __s, streamsize __n);
479 basic_filebuf<_CharT, _Traits>::open(const char* __s, ios_base::openmode __mode)
536 __file_ = fopen(__s, __mdstr);
562 basic_filebuf<_CharT, _Traits>::open(const wchar_t* __s, ios_base::openmode __mode)
619 __file_ = _wfopen(__s, __mdstr);
644 basic_filebuf<_CharT, _Traits>::open(const string& __s, ios_base::openmode __mode)
646 return open(__s.c_str(), __mode);
[all …]
Dstring747 __short __s;
782 _LIBCPP_INLINE_VISIBILITY basic_string(const _CharT* __s);
784 basic_string(const _CharT* __s, const _Allocator& __a);
786 basic_string(const _CharT* __s, size_type __n);
788 basic_string(const _CharT* __s, size_type __n, const _Allocator& __a);
839 _LIBCPP_INLINE_VISIBILITY basic_string& operator=(const value_type* __s) {return assign(__s);}
922 …_LIBCPP_INLINE_VISIBILITY basic_string& operator+=(const value_type* __s) {return append(__s);}
941 basic_string& append(const value_type* __s, size_type __n);
942 basic_string& append(const value_type* __s);
1006 basic_string& assign(const value_type* __s, size_type __n);
[all …]
Distream261 basic_istream& get(char_type* __s, streamsize __n)
262 { return get(__s, __n, this->widen('\n')); }
264 basic_istream& get(char_type* __s, streamsize __n, char_type __dlm);
273 basic_istream& getline(char_type* __s, streamsize __n)
274 { return getline(__s, __n, this->widen('\n')); }
276 basic_istream& getline(char_type* __s, streamsize __n, char_type __dlm);
280 basic_istream& read (char_type* __s, streamsize __n);
281 streamsize readsome(char_type* __s, streamsize __n);
369 sentry __s(*this);
370 if (__s)
[all …]
Dutility1037 static _Size __hash_len_0_to_16(const char* __s, _Size __len)
1041 const _Size __a = __loadword<_Size>(__s);
1042 const _Size __b = __loadword<_Size>(__s + __len - 8);
1046 const uint32_t __a = __loadword<uint32_t>(__s);
1047 const uint32_t __b = __loadword<uint32_t>(__s + __len - 4);
1051 const unsigned char __a = __s[0];
1052 const unsigned char __b = __s[__len >> 1];
1053 const unsigned char __c = __s[__len - 1];
1062 static _Size __hash_len_17_to_32(const char *__s, _Size __len)
1065 const _Size __a = __loadword<_Size>(__s) * __k1;
[all …]
Dstreambuf154 basic_streambuf* pubsetbuf(char_type* __s, streamsize __n)
155 { return setbuf(__s, __n); }
201 streamsize sgetn(char_type* __s, streamsize __n)
202 { return xsgetn(__s, __n); }
229 streamsize sputn(const char_type* __s, streamsize __n)
230 { return xsputn(__s, __n); }
275 virtual basic_streambuf* setbuf(char_type* __s, streamsize __n);
284 virtual streamsize xsgetn(char_type* __s, streamsize __n);
292 virtual streamsize xsputn(const char_type* __s, streamsize __n);
404 basic_streambuf<_CharT, _Traits>::xsgetn(char_type* __s, streamsize __n)
[all …]
Dstrstream236 explicit istrstream(const char* __s)
237 : istream(&__sb_), __sb_(__s, 0) {}
239 explicit istrstream(char* __s)
240 : istream(&__sb_), __sb_(__s, 0) {}
242 istrstream(const char* __s, streamsize __n)
243 : istream(&__sb_), __sb_(__s, __n) {}
245 istrstream(char* __s, streamsize __n)
246 : istream(&__sb_), __sb_(__s, __n) {}
292 ostrstream(char* __s, int __n, ios_base::openmode __mode = ios_base::out)
294 __sb_(__s, __n, __s + (__mode & ios::app ? strlen(__s) : 0))
[all …]
Dset476 set(const set& __s)
477 : __tree_(__s.__tree_)
479 insert(__s.begin(), __s.end());
483 set& operator=(const set& __s)
485 __tree_ = __s.__tree_;
491 set(set&& __s)
493 : __tree_(_VSTD::move(__s.__tree_)) {}
501 set(const set& __s, const allocator_type& __a)
502 : __tree_(__s.__tree_.value_comp(), __a)
504 insert(__s.begin(), __s.end());
[all …]
Diomanip308 typename basic_istream<_CharT, _Traits>::sentry __s(__is);
309 if (__s)
368 typename basic_ostream<_CharT, _Traits>::sentry __s(__os);
369 if (__s)
427 typename basic_istream<_CharT, _Traits>::sentry __s(__is);
428 if (__s)
488 typename basic_ostream<_CharT, _Traits>::sentry __s(__os);
489 if (__s)
586 __quoted_proxy(basic_string<_CharT, _Traits, _Allocator> &__s, _CharT __d, _CharT __e)
587 : __string(__s), __delim(__d), __escape(__e) {}
[all …]
/external/libcxx/src/
Dregex.cpp261 __match_any_but_newline<char>::__exec(__state& __s) const in __exec()
263 if (__s.__current_ != __s.__last_) in __exec()
265 switch (*__s.__current_) in __exec()
269 __s.__do_ = __state::__reject; in __exec()
270 __s.__node_ = nullptr; in __exec()
273 __s.__do_ = __state::__accept_and_consume; in __exec()
274 ++__s.__current_; in __exec()
275 __s.__node_ = this->first(); in __exec()
281 __s.__do_ = __state::__reject; in __exec()
282 __s.__node_ = nullptr; in __exec()
[all …]
Dthread.cpp164 void __make_ready_at_thread_exit(__assoc_sub_state* __s);
190 __thread_struct_imp::__make_ready_at_thread_exit(__assoc_sub_state* __s) in __make_ready_at_thread_exit() argument
192 async_states_.push_back(__s); in __make_ready_at_thread_exit()
193 __s->__add_shared(); in __make_ready_at_thread_exit()
215 __thread_struct::__make_ready_at_thread_exit(__assoc_sub_state* __s) in __make_ready_at_thread_exit() argument
217 __p_->__make_ready_at_thread_exit(__s); in __make_ready_at_thread_exit()
/external/libcxx/test/support/
Dconstexpr_char_traits.hpp38 static TEST_CONSTEXPR_CXX14 size_t length(const char_type* __s);
39 …static TEST_CONSTEXPR_CXX14 const char_type* find(const char_type* __s, size_t __n, const char_typ…
42 static TEST_CONSTEXPR_CXX14 char_type* assign(char_type* __s, size_t __n, char_type __a);
77 constexpr_char_traits<_CharT>::length(const char_type* __s) in length() argument
80 for (; !eq(*__s, char_type(0)); ++__s) in length()
87 constexpr_char_traits<_CharT>::find(const char_type* __s, size_t __n, const char_type& __a) in find() argument
91 if (eq(*__s, __a)) in find()
92 return __s; in find()
93 ++__s; in find()
131 constexpr_char_traits<_CharT>::assign(char_type* __s, size_t __n, char_type __a) in assign() argument
[all …]
/external/tcpdump/
Dcpack.h49 #define cpack_int8(__s, __p) cpack_uint8((__s), (uint8_t*)(__p)) argument
50 #define cpack_int16(__s, __p) cpack_uint16((__s), (uint16_t*)(__p)) argument
51 #define cpack_int32(__s, __p) cpack_uint32((__s), (uint32_t*)(__p)) argument
52 #define cpack_int64(__s, __p) cpack_uint64((__s), (uint64_t*)(__p)) argument
/external/libcxx/src/support/solaris/
Dxlocale.cpp28 #define vsnprintf_l(__s, __n, __l, __format, __va) \ argument
29 vsnprintf(__s, __n, __format, __va)
31 int snprintf_l(char *__s, size_t __n, locale_t __l, const char *__format, ...) in snprintf_l() argument
35 int __res = vsnprintf_l(__s, __n , __l, __format, __va); in snprintf_l()
40 int asprintf_l(char **__s, locale_t __l, const char *__format, ...) { in asprintf_l() argument
44 int __res = vasprintf(__s, __format, __va); in asprintf_l()
49 int sscanf_l(const char *__s, locale_t __l, const char *__format, ...) { in sscanf_l() argument
53 int __res = vsscanf(__s, __format, __va); in sscanf_l()
/external/syslinux/com32/include/
Dstdio.h77 #define fread(__p, __s, __n, __f) \ argument
78 ( (__builtin_constant_p(__s) && __s == 1) \
80 : fread(__p,__s,__n,__f) )
82 #define fwrite(__p, __s, __n, __f) \ argument
83 ( (__builtin_constant_p(__s) && __s == 1) \
85 : fwrite(__p,__s,__n,__f) )
/external/clang/test/CodeGen/
Dpr9614.c11 extern char *strrchr_foo (const char *__s, int __c) __asm ("strrchr");
12 …always_inline__)) __attribute__ ((__gnu_inline__)) char * strrchr_foo (const char *__s, int __c) { in strrchr_foo() argument
13 return __builtin_strrchr (__s, __c); in strrchr_foo()
21 extern inline __attribute__((__always_inline__, __gnu_inline__)) void *memchr(void *__s, int __c, _… in memchr() argument
22 return __builtin_memchr(__s, __c, __n); in memchr()
/external/libcxx/include/support/win32/
Dlocale_win32.h169 #define strftime_l( __s, __l, __f, __tm, __loc ) strftime( __s, __l, __f, __tm ) argument
173 #define sscanf_l( __s, __l, __f, ...) _sscanf_l( __s, __f, __l, __VA_ARGS__ ) argument
174 #define sprintf_l( __s, __l, __f, ... ) _sprintf_l( __s, __f, __l, __VA_ARGS__ ) argument
175 #define vsprintf_l( __s, __l, __f, ... ) _vsprintf_l( __s, __f, __l, __VA_ARGS__ ) argument
176 #define vsnprintf_l( __s, __n, __l, __f, ... ) _vsnprintf_l( __s, __n, __f, __l, __VA_ARGS__ ) argument
/external/libcxx/include/experimental/
Dfilesystem500 static _ECharT const* __range_begin(_Str const& __s) { return __s.data(); }
501 static _ECharT const* __range_end(_Str const& __s) { return __s.data() + __s.length(); }
502 static _ECharT __first_or_null(_Str const& __s) {
503 return __s.empty() ? _ECharT{} : __s[0];
515 static _ECharT const* __range_begin(_Str const& __s) { return __s.data(); }
516 static _ECharT const* __range_end(_Str const& __s) { return __s.data() + __s.length(); }
517 static _ECharT __first_or_null(_Str const& __s) {
518 return __s.empty() ? _ECharT{} : __s[0];
620 static void __append_source(string& __dest, _Source const& __s)
623 __append_range(__dest, _Traits::__range_begin(__s), _Traits::__range_end(__s));
[all …]

12345