/openbsd/gnu/lib/libstdc++/libstdc++/src/ |
H A D | functexcept.cc | 56 __throw_logic_error(const char* __s) in __throw_logic_error() argument 57 { throw logic_error(__s); } in __throw_logic_error() 61 { throw domain_error(__s); } in __throw_domain_error() 65 { throw invalid_argument(__s); } in __throw_invalid_argument() 69 { throw length_error(__s); } in __throw_length_error() 73 { throw out_of_range(__s); } in __throw_out_of_range() 77 { throw runtime_error(__s); } in __throw_runtime_error() 81 { throw range_error(__s); } in __throw_range_error() 85 { throw overflow_error(__s); } in __throw_overflow_error() 89 { throw underflow_error(__s); } in __throw_underflow_error() [all …]
|
/openbsd/gnu/gcc/libstdc++-v3/src/ |
H A D | functexcept.cc | 63 __throw_logic_error(const char* __s) in __throw_logic_error() argument 64 { throw logic_error(_(__s)); } in __throw_logic_error() 68 { throw domain_error(_(__s)); } in __throw_domain_error() 72 { throw invalid_argument(_(__s)); } in __throw_invalid_argument() 76 { throw length_error(_(__s)); } in __throw_length_error() 80 { throw out_of_range(_(__s)); } in __throw_out_of_range() 84 { throw runtime_error(_(__s)); } in __throw_runtime_error() 87 __throw_range_error(const char* __s) in __throw_range_error() argument 88 { throw range_error(_(__s)); } in __throw_range_error() 92 { throw overflow_error(_(__s)); } in __throw_overflow_error() [all …]
|
H A D | localename.cc | 37 locale::locale(const char* __s) : _M_impl(0) in locale() argument 39 if (__s) in locale() 42 if (std::strcmp(__s, "C") == 0 || std::strcmp(__s, "POSIX") == 0) in locale() 44 else if (std::strcmp(__s, "") != 0) in locale() 45 _M_impl = new _Impl(__s, 1); in locale() 152 locale __add(__s); in locale() 178 _Impl(const char* __s, size_t __refs) in _Impl() argument 200 const size_t __len = std::strlen(__s); in _Impl() 201 if (!std::memchr(__s, ';', __len)) in _Impl() 208 const char* __end = __s; in _Impl() [all …]
|
/openbsd/gnu/lib/libstdc++/libstdc++/config/locale/gnu/ |
H A D | c_locale.cc | 52 long __l = __strtol_l(__s, &__sanity, __base, __cloc); in __convert_to_v() 53 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 62 __convert_to_v(const char* __s, unsigned long& __v, in __convert_to_v() argument 70 unsigned long __ul = __strtoul_l(__s, &__sanity, __base, __cloc); in __convert_to_v() 88 long long __ll = __strtoll_l(__s, &__sanity, __base, __cloc); in __convert_to_v() 98 __convert_to_v(const char* __s, unsigned long long& __v, in __convert_to_v() argument 106 unsigned long long __ull = __strtoull_l(__s, &__sanity, __base, in __convert_to_v() 125 float __f = __strtof_l(__s, &__sanity, __cloc); in __convert_to_v() 142 double __d = __strtod_l(__s, &__sanity, __cloc); in __convert_to_v() 159 long double __ld = __strtold_l(__s, &__sanity, __cloc); in __convert_to_v() [all …]
|
H A D | messages_members.h | 49 const char* __s, size_t __refs) in messages() argument 53 _M_name_messages = new char[strlen(__s) + 1]; in messages() 54 strcpy(_M_name_messages, __s); in messages() 64 bindtextdomain(__s.c_str(), __dir); in open() 65 return this->do_open(__s, __loc); in open() 81 messages<_CharT>::do_open(const basic_string<char>& __s, in do_open() argument 86 textdomain(__s.c_str()); in do_open() 97 messages_byname<_CharT>::messages_byname(const char* __s, size_t __refs) in messages_byname() argument 103 _M_name_messages = new char[strlen(__s) + 1]; in messages_byname() 104 strcpy(_M_name_messages, __s); in messages_byname() [all …]
|
/openbsd/gnu/gcc/libstdc++-v3/config/locale/gnu/ |
H A D | time_members.cc | 60 __s[0] = '\0'; in _GLIBCXX_BEGIN_NAMESPACE() 213 __s[0] = L'\0'; in _M_put() 288 union { char *__s; wchar_t *__w; } __u; in _M_initialize_timepunct() member 290 __u.__s = __nl_langinfo_l(_NL_WD_FMT, __cloc); in _M_initialize_timepunct() 294 __u.__s = __nl_langinfo_l(_NL_WT_FMT, __cloc); in _M_initialize_timepunct() 310 __u.__s = __nl_langinfo_l(_NL_WDAY_1, __cloc); in _M_initialize_timepunct() 312 __u.__s = __nl_langinfo_l(_NL_WDAY_2, __cloc); in _M_initialize_timepunct() 314 __u.__s = __nl_langinfo_l(_NL_WDAY_3, __cloc); in _M_initialize_timepunct() 316 __u.__s = __nl_langinfo_l(_NL_WDAY_4, __cloc); in _M_initialize_timepunct() 318 __u.__s = __nl_langinfo_l(_NL_WDAY_5, __cloc); in _M_initialize_timepunct() [all …]
|
H A D | messages_members.h | 51 messages<_CharT>::messages(__c_locale __cloc, const char* __s, in messages() argument 55 const size_t __len = std::strlen(__s) + 1; in messages() 57 std::memcpy(__tmp, __s, __len); in messages() 69 bindtextdomain(__s.c_str(), __dir); in open() 70 return this->do_open(__s, __loc); in open() 84 messages<_CharT>::do_open(const basic_string<char>& __s, in do_open() argument 89 textdomain(__s.c_str()); in do_open() 105 size_t __sz = std::strlen(__s) + 1; in messages_byname() 107 std::memcpy(__tmp, __s, __sz); in messages_byname() 110 if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0) in messages_byname() [all …]
|
H A D | c_locale.cc | 47 __convert_to_v(const char* __s, float& __v, ios_base::iostate& __err, in _GLIBCXX_BEGIN_NAMESPACE() 52 float __f = __strtof_l(__s, &__sanity, __cloc); in _GLIBCXX_BEGIN_NAMESPACE() 53 if (__sanity != __s && errno != ERANGE) in _GLIBCXX_BEGIN_NAMESPACE() 61 __convert_to_v(const char* __s, double& __v, ios_base::iostate& __err, in __convert_to_v() argument 66 double __d = __strtod_l(__s, &__sanity, __cloc); in __convert_to_v() 67 if (__sanity != __s && errno != ERANGE) in __convert_to_v() 83 long double __ld = strtold_l(__s, &__sanity, __cloc); in __convert_to_v() 85 long double __ld = __strtold_l(__s, &__sanity, __cloc); in __convert_to_v() 87 if (__sanity != __s && errno != ERANGE) in __convert_to_v() 94 locale::facet::_S_create_c_locale(__c_locale& __cloc, const char* __s, in _S_create_c_locale() argument [all …]
|
/openbsd/gnu/llvm/libcxx/src/ |
H A D | regex.cpp | 384 if (__s.__current_ != __s.__last_) in __exec() 386 switch (*__s.__current_) in __exec() 391 __s.__node_ = nullptr; in __exec() 395 ++__s.__current_; in __exec() 402 __s.__do_ = __state::__reject; in __exec() 403 __s.__node_ = nullptr; in __exec() 411 if (__s.__current_ != __s.__last_) in __exec() 413 switch (*__s.__current_) in __exec() 420 __s.__node_ = nullptr; in __exec() 424 ++__s.__current_; in __exec() [all …]
|
/openbsd/gnu/lib/libstdc++/libstdc++/config/locale/generic/ |
H A D | c_locale.cc | 54 long __l = strtol(__s, &__sanity, __base); in __convert_to_v() 55 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 64 __convert_to_v(const char* __s, unsigned long& __v, in __convert_to_v() argument 71 unsigned long __ul = strtoul(__s, &__sanity, __base); in __convert_to_v() 89 long long __ll = strtoll(__s, &__sanity, __base); in __convert_to_v() 128 float __f = strtof(__s, &__sanity); in __convert_to_v() 130 double __d = strtod(__s, &__sanity); in __convert_to_v() 167 double __d = strtod(__s, &__sanity); in __convert_to_v() 179 __convert_to_v(const char* __s, long double& __v, in __convert_to_v() argument 190 long double __ld = strtold(__s, &__sanity); in __convert_to_v() [all …]
|
/openbsd/gnu/llvm/libcxx/include/__functional/ |
H A D | hash.h | 267 __s += 64; 327 } __s; 349 } __s; 372 } __s; 601 } __s; 603 __u.__s.__a = 0; 604 __u.__s.__b = 0; 605 __u.__s.__c = 0; 608 return __u.__s.__a ^ __u.__s.__b ^ __u.__s.__c ^ __u.__s.__d; 618 } __s; [all …]
|
/openbsd/gnu/gcc/libstdc++-v3/include/bits/ |
H A D | basic_string.tcc | 220 : _M_dataplus(_S_construct(__s, __s + __n, __a), __a) in basic_string() 227 : _M_dataplus(_S_construct(__s, __s ? __s + traits_type::length(__s) : in basic_string() 312 if (_M_disjunct(__s)) in append() 318 __s = _M_data() + __off; in append() 501 swap(basic_string& __s) in swap() argument 510 _M_data(__s._M_data()); in swap() 511 __s._M_data(__tmp); in swap() 518 const basic_string __tmp2(__s._M_ibegin(), __s._M_iend(), in swap() 521 __s = __tmp1; in swap() 644 __s.size()); in _M_replace_dispatch() [all …]
|
H A D | basic_string.h | 827 return this->append(__s, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 920 return this->assign(__s, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1059 return this->insert(__pos, __s, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1251 return this->replace(__pos, __n1, __s, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1331 return this->replace(__i1, __i2, __s, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1584 return this->find(__s, __pos, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1642 return this->rfind(__s, __pos, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1700 return this->find_first_of(__s, __pos, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1761 return this->find_last_of(__s, __pos, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1823 return this->find_first_not_of(__s, __pos, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() [all …]
|
H A D | char_traits.h | 111 length(const char_type* __s); 176 if (eq(__s[__i], __a)) in find() 177 return __s + __i; in find() 204 std::fill_n(__s, __n, __a); in assign() 205 return __s; in assign() 257 length(const char_type* __s) 258 { return strlen(__s); } 327 length(const char_type* __s) 328 { return wcslen(__s); } 332 { return wmemchr(__s, __a, __n); } [all …]
|
/openbsd/gnu/llvm/libcxx/include/ |
H A D | wchar.h | 143 wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcschr(__s, __c);} in __libcpp_wcschr() argument 145 const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} in wcschr() argument 147 wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} in wcschr() argument 157 wchar_t* __libcpp_wcsrchr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcsrchr(__s, __c);} in __libcpp_wcsrchr() argument 159 const wchar_t* wcsrchr(const wchar_t* __s, wchar_t __c) {return __libcpp_wcsrchr(__s, __c);} in wcsrchr() argument 161 wchar_t* wcsrchr( wchar_t* __s, wchar_t __c) {return __libcpp_wcsrchr(__s, __c);} in wcsrchr() argument 171 wchar_t* __libcpp_wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return (wchar_t*)wmemchr(__… in __libcpp_wmemchr() argument 173 const wchar_t* wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, _… in wmemchr() argument 175 …wchar_t* wmemchr( wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, _… in wmemchr() argument
|
H A D | stdexcept | 96 _LIBCPP_INLINE_VISIBILITY explicit logic_error(const char* __s) : exception(__s) {} 119 _LIBCPP_INLINE_VISIBILITY explicit runtime_error(const char* __s) : exception(__s) {} 127 _LIBCPP_INLINE_VISIBILITY explicit domain_error(const string& __s) : logic_error(__s) {} 128 _LIBCPP_INLINE_VISIBILITY explicit domain_error(const char* __s) : logic_error(__s) {} 140 _LIBCPP_INLINE_VISIBILITY explicit invalid_argument(const string& __s) : logic_error(__s) {} 153 _LIBCPP_INLINE_VISIBILITY explicit length_error(const string& __s) : logic_error(__s) {} 154 _LIBCPP_INLINE_VISIBILITY explicit length_error(const char* __s) : logic_error(__s) {} 165 _LIBCPP_INLINE_VISIBILITY explicit out_of_range(const string& __s) : logic_error(__s) {} 166 _LIBCPP_INLINE_VISIBILITY explicit out_of_range(const char* __s) : logic_error(__s) {} 178 _LIBCPP_INLINE_VISIBILITY explicit range_error(const string& __s) : runtime_error(__s) {} [all …]
|
H A D | string.h | 74 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_PREFERRED_OVERLOAD const char* strchr(const char* __s, int __c… in strchr() argument 75 return __builtin_strchr(__s, __c); in strchr() 77 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_PREFERRED_OVERLOAD char* strchr(char* __s, int __c) { in strchr() argument 78 return __builtin_strchr(__s, __c); in strchr() 88 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_PREFERRED_OVERLOAD const char* strrchr(const char* __s, int __… in strrchr() argument 89 return __builtin_strrchr(__s, __c); in strrchr() 91 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_PREFERRED_OVERLOAD char* strrchr(char* __s, int __c) { in strrchr() argument 92 return __builtin_strrchr(__s, __c); in strrchr() 96 return __builtin_memchr(__s, __c, __n); in memchr() 98 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_PREFERRED_OVERLOAD void* memchr(void* __s, int __c, size_t __n… in memchr() argument [all …]
|
/openbsd/gnu/lib/libstdc++/libstdc++/include/bits/ |
H A D | functexcept.h | 55 __throw_logic_error(const char* __s); 58 __throw_domain_error(const char* __s); 61 __throw_invalid_argument(const char* __s); 64 __throw_length_error(const char* __s); 67 __throw_out_of_range(const char* __s); 70 __throw_runtime_error(const char* __s); 73 __throw_range_error(const char* __s); 76 __throw_overflow_error(const char* __s); 79 __throw_underflow_error(const char* __s); 83 __throw_ios_failure(const char* __s);
|
H A D | basic_string.tcc | 220 : _M_dataplus(_S_construct(__s, __s + __n, __a), __a) in basic_string() 226 : _M_dataplus(_S_construct(__s, __s ? __s + traits_type::length(__s) : in basic_string() 280 return _M_replace_safe(_M_ibegin(), _M_iend(), __s, __s + __n); in assign() 322 __s, __s + __n); in insert() 338 traits_type::copy(__p, __s, __p - __s); in insert() 361 _M_ibegin() + __pos + __foldn1, __s, __s + __n2); in replace() 365 __s, __s + __n2, in replace() 484 basic_string __tmp2(__s._M_ibegin(), __s._M_iend(), in swap() 487 __s = __tmp1; in swap() 625 return _M_replace_safe(__i1, __i2, __s._M_ibegin(), __s._M_iend()); in _M_replace() [all …]
|
/openbsd/gnu/llvm/libcxx/include/__string.d/__string/ |
H A D | char_traits.h | 109 for (; !eq(*__s, char_type(0)); ++__s) in length() 119 ++__s; in find() 246 return __s; 401 for (; !eq(*__s, char_type(0)); ++__s) 415 ++__s; 498 for (; !eq(*__s, char_type(0)); ++__s) 511 ++__s; 590 for (; !eq(*__s, char_type(0)); ++__s) 603 ++__s; 675 __p + __pos, __p + __sz, __s, __s + __n); [all …]
|
/openbsd/gnu/gcc/libstdc++-v3/include/ext/ |
H A D | vstring.h | 189 : __vstring_base(__s, __s + __n, __a) { } in _GLIBCXX_BEGIN_NAMESPACE() 197 : __vstring_base(__s, __s ? __s + traits_type::length(__s) : in _GLIBCXX_BEGIN_NAMESPACE() 198 __s + npos, __a) { } in _GLIBCXX_BEGIN_NAMESPACE() 1024 return this->replace(__pos, __n1, __s, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1104 return this->replace(__i1, __i2, __s, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1319 return this->find(__s, __pos, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1377 return this->rfind(__s, __pos, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1435 return this->find_first_of(__s, __pos, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1496 return this->find_last_of(__s, __pos, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 1558 return this->find_first_not_of(__s, __pos, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE() [all …]
|
H A D | vstring.tcc | 89 const __versa_string __s(__k1, __k2); in _M_replace_dispatch() local 92 __s.size()); in _M_replace_dispatch() 142 if (_M_disjunct(__s)) in _M_replace() 147 this->_S_copy(__p, __s, __len2); in _M_replace() 153 this->_S_move(__p, __s, __len2); in _M_replace() 158 if (__s + __len2 <= __p + __len1) in _M_replace() 159 this->_S_move(__p, __s, __len2); in _M_replace() 160 else if (__s >= __p + __len1) in _M_replace() 285 __s + 1, __n - 1) == 0) in find() 497 compare(const _CharT* __s) const in compare() [all …]
|
/openbsd/gnu/gcc/libstdc++-v3/include/debug/ |
H A D | string | 105 { this->assign(__s); } 129 operator=(const _CharT* __s) 246 operator+=(const _CharT* __s) 249 _M_base() += __s; 282 _Base::append(__s, __n); 288 append(const _CharT* __s) 291 _Base::append(__s); 343 _Base::assign(__s, __n); 349 assign(const _CharT* __s) 352 _Base::assign(__s); [all …]
|
/openbsd/gnu/gcc/libstdc++-v3/config/locale/generic/ |
H A D | c_locale.cc | 51 __convert_to_v(const char* __s, float& __v, ios_base::iostate& __err, in _GLIBCXX_BEGIN_NAMESPACE() 60 float __f = strtof(__s, &__sanity); in _GLIBCXX_BEGIN_NAMESPACE() 62 double __d = strtod(__s, &__sanity); in _GLIBCXX_BEGIN_NAMESPACE() 78 if (__sanity != __s && errno != ERANGE) in _GLIBCXX_BEGIN_NAMESPACE() 96 double __d = strtod(__s, &__sanity); in __convert_to_v() 97 if (__sanity != __s && errno != ERANGE) in __convert_to_v() 107 __convert_to_v(const char* __s, long double& __v, in __convert_to_v() argument 116 long double __ld = strtold(__s, &__sanity); in __convert_to_v() 117 if (__sanity != __s && errno != ERANGE) in __convert_to_v() 122 int __p = sscanf(__s, "%Lf", &__ld); in __convert_to_v() [all …]
|
/openbsd/gnu/llvm/libcxx/include/__filesystem/ |
H A D | path.h | 111 return __s.data() + __s.length(); 116 return __s.empty() ? _ECharT{} : __s[0]; 133 return __s.data() + __s.length(); 138 return __s.empty() ? _ECharT{} : __s[0]; 771 void __reserve(size_t __s) { __pn_.reserve(__s); } 790 return __s; 803 return __s; 814 return __s; 835 _VSTD::replace(__s.begin(), __s.end(), 837 return __s; [all …]
|