| /openbsd/src/gnu/lib/libstdc++/libstdc++/src/ |
| D | functexcept.cc | 56 __throw_logic_error(const char* __s) in __throw_logic_error() argument 57 { throw logic_error(__s); } in __throw_logic_error() 60 __throw_domain_error(const char* __s) in __throw_domain_error() argument 61 { throw domain_error(__s); } in __throw_domain_error() 64 __throw_invalid_argument(const char* __s) in __throw_invalid_argument() argument 65 { throw invalid_argument(__s); } in __throw_invalid_argument() 68 __throw_length_error(const char* __s) in __throw_length_error() argument 69 { throw length_error(__s); } in __throw_length_error() 72 __throw_out_of_range(const char* __s) in __throw_out_of_range() argument 73 { throw out_of_range(__s); } in __throw_out_of_range() [all …]
|
| /openbsd/src/gnu/gcc/libstdc++-v3/src/ |
| D | functexcept.cc | 63 __throw_logic_error(const char* __s) in __throw_logic_error() argument 64 { throw logic_error(_(__s)); } in __throw_logic_error() 67 __throw_domain_error(const char* __s) in __throw_domain_error() argument 68 { throw domain_error(_(__s)); } in __throw_domain_error() 71 __throw_invalid_argument(const char* __s) in __throw_invalid_argument() argument 72 { throw invalid_argument(_(__s)); } in __throw_invalid_argument() 75 __throw_length_error(const char* __s) in __throw_length_error() argument 76 { throw length_error(_(__s)); } in __throw_length_error() 79 __throw_out_of_range(const char* __s) in __throw_out_of_range() argument 80 { throw out_of_range(_(__s)); } in __throw_out_of_range() [all …]
|
| 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() 146 locale::locale(const locale& __base, const char* __s, category __cat) in locale() argument 152 locale __add(__s); in locale() 178 _Impl(const char* __s, size_t __refs) in _Impl() argument 185 locale::facet::_S_create_c_locale(__cloc, __s); in _Impl() 200 const size_t __len = std::strlen(__s); in _Impl() [all …]
|
| /openbsd/src/gnu/lib/libstdc++/libstdc++/config/locale/gnu/ |
| D | c_locale.cc | 45 __convert_to_v(const char* __s, long& __v, ios_base::iostate& __err, in __convert_to_v() argument 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() 71 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 81 __convert_to_v(const char* __s, long long& __v, ios_base::iostate& __err, in __convert_to_v() argument 88 long long __ll = __strtoll_l(__s, &__sanity, __base, __cloc); in __convert_to_v() 89 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 98 __convert_to_v(const char* __s, unsigned long long& __v, in __convert_to_v() argument [all …]
|
| 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() 61 messages<_CharT>::open(const basic_string<char>& __s, const locale& __loc, in open() argument 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() [all …]
|
| /openbsd/src/gnu/gcc/libstdc++-v3/config/locale/gnu/ |
| D | time_members.cc | 45 _M_put(char* __s, size_t __maxlen, const char* __format, in _GLIBCXX_BEGIN_NAMESPACE() 49 const size_t __len = __strftime_l(__s, __maxlen, __format, __tm, in _GLIBCXX_BEGIN_NAMESPACE() 54 const size_t __len = strftime(__s, __maxlen, __format, __tm); in _GLIBCXX_BEGIN_NAMESPACE() 60 __s[0] = '\0'; in _GLIBCXX_BEGIN_NAMESPACE() 198 _M_put(wchar_t* __s, size_t __maxlen, const wchar_t* __format, in _M_put() argument 202 const size_t __len = __wcsftime_l(__s, __maxlen, __format, __tm, in _M_put() 207 const size_t __len = wcsftime(__s, __maxlen, __format, __tm); in _M_put() 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() [all …]
|
| 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() 66 messages<_CharT>::open(const basic_string<char>& __s, const locale& __loc, in open() argument 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() 100 messages_byname<_CharT>::messages_byname(const char* __s, size_t __refs) in messages_byname() argument 105 size_t __sz = std::strlen(__s) + 1; in messages_byname() [all …]
|
| 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() 75 __convert_to_v(const char* __s, long double& __v, ios_base::iostate& __err, in __convert_to_v() argument 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() [all …]
|
| /openbsd/src/gnu/llvm/libcxx/src/ |
| D | regex.cpp | 382 __match_any_but_newline<char>::__exec(__state& __s) const in __exec() 384 if (__s.__current_ != __s.__last_) in __exec() 386 switch (*__s.__current_) in __exec() 390 __s.__do_ = __state::__reject; in __exec() 391 __s.__node_ = nullptr; in __exec() 394 __s.__do_ = __state::__accept_and_consume; in __exec() 395 ++__s.__current_; in __exec() 396 __s.__node_ = this->first(); in __exec() 402 __s.__do_ = __state::__reject; in __exec() 403 __s.__node_ = nullptr; in __exec() [all …]
|
| /openbsd/src/gnu/lib/libstdc++/libstdc++/config/locale/generic/ |
| D | c_locale.cc | 47 __convert_to_v(const char* __s, long& __v, ios_base::iostate& __err, in __convert_to_v() argument 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() 72 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 82 __convert_to_v(const char* __s, long long& __v, ios_base::iostate& __err, in __convert_to_v() argument 89 long long __ll = strtoll(__s, &__sanity, __base); in __convert_to_v() 90 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 99 __convert_to_v(const char* __s, unsigned long long& __v, in __convert_to_v() argument [all …]
|
| /openbsd/src/gnu/gcc/libstdc++-v3/include/bits/ |
| D | basic_string.tcc | 219 basic_string(const _CharT* __s, size_type __n, const _Alloc& __a) in basic_string() argument 220 : _M_dataplus(_S_construct(__s, __s + __n, __a), __a) in basic_string() 226 basic_string(const _CharT* __s, const _Alloc& __a) in basic_string() argument 227 : _M_dataplus(_S_construct(__s, __s ? __s + traits_type::length(__s) : in basic_string() 228 __s + npos, __a), __a) in basic_string() 264 assign(const _CharT* __s, size_type __n) in assign() argument 266 __glibcxx_requires_string_len(__s, __n); in assign() 268 if (_M_disjunct(__s) || _M_rep()->_M_is_shared()) in assign() 269 return _M_replace_safe(size_type(0), this->size(), __s, __n); in assign() 273 const size_type __pos = __s - _M_data(); in assign() [all …]
|
| D | basic_string.h | 308 _M_check(size_type __pos, const char* __s) const in _GLIBCXX_BEGIN_NAMESPACE() 311 __throw_out_of_range(__N(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 316 _M_check_length(size_type __n1, size_type __n2, const char* __s) const in _GLIBCXX_BEGIN_NAMESPACE() 319 __throw_length_error(__N(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 332 _M_disjunct(const _CharT* __s) const in _GLIBCXX_BEGIN_NAMESPACE() 334 return (less<const _CharT*>()(__s, _M_data()) in _GLIBCXX_BEGIN_NAMESPACE() 335 || less<const _CharT*>()(_M_data() + this->size(), __s)); in _GLIBCXX_BEGIN_NAMESPACE() 341 _M_copy(_CharT* __d, const _CharT* __s, size_type __n) in _GLIBCXX_BEGIN_NAMESPACE() 344 traits_type::assign(*__d, *__s); in _GLIBCXX_BEGIN_NAMESPACE() 346 traits_type::copy(__d, __s, __n); in _GLIBCXX_BEGIN_NAMESPACE() [all …]
|
| D | char_traits.h | 111 length(const char_type* __s); 114 find(const char_type* __s, std::size_t __n, const char_type& __a); 123 assign(char_type* __s, std::size_t __n, char_type __a); 173 find(const char_type* __s, std::size_t __n, const char_type& __a) in find() argument 176 if (eq(__s[__i], __a)) in find() 177 return __s + __i; in find() 202 assign(char_type* __s, std::size_t __n, char_type __a) in assign() argument 204 std::fill_n(__s, __n, __a); in assign() 205 return __s; in assign() 257 length(const char_type* __s) [all …]
|
| /openbsd/src/gnu/llvm/libcxx/include/ |
| 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
|
| D | stdexcept | 64 __libcpp_refstring(const __libcpp_refstring& __s) _NOEXCEPT; 65 __libcpp_refstring& operator=(const __libcpp_refstring& __s) _NOEXCEPT; 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) {} 141 _LIBCPP_INLINE_VISIBILITY explicit invalid_argument(const char* __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) {} [all …]
|
| 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() 95 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_PREFERRED_OVERLOAD const void* memchr(const void* __s, int __c… in memchr() argument 96 return __builtin_memchr(__s, __c, __n); in memchr() [all …]
|
| D | string_view | 253 inline size_t __char_traits_length_checked(const typename _Traits::char_type* __s) _NOEXCEPT { 255 …return _LIBCPP_ASSERT(__s != nullptr, "null pointer passed to non-null argument of char_traits<...… 293 basic_string_view(const _CharT* __s, size_type __len) _NOEXCEPT 294 : __data_(__s), __size_(__len) 297 …_LIBCPP_ASSERT(__len == 0 || __s != nullptr, "string_view::string_view(_CharT *, size_t): received… 331 basic_string_view(const _CharT* __s) 332 : __data_(__s), __size_(_VSTD::__char_traits_length_checked<_Traits>(__s)) {} 434 size_type copy(_CharT* __s, size_type __n, size_type __pos = 0) const 439 _Traits::copy(__s, data() + __pos, __rlen); 474 int compare(const _CharT* __s) const _NOEXCEPT [all …]
|
| D | regex | 1152 string_type __s(__f, __l); 1153 return __col_->transform(__s.data(), __s.data() + __s.size()); 1182 const string_type __s(__f, __l); 1183 string_type __d = __col_->transform(__s.data(), __s.data() + __s.size()); 1205 const string_type __s(__f, __l); 1206 string_type __d = __col_->transform(__s.data(), __s.data() + __s.size()); 1224 _LIBCPP_FUNC_VIS string __get_collation_name(const char* __s); 1232 string_type __s(__f, __l); 1234 if (!__s.empty()) 1236 __r = std::__get_collation_name(__s.c_str()); [all …]
|
| /openbsd/src/gnu/lib/libstdc++/libstdc++/include/bits/ |
| 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);
|
| D | basic_string.tcc | 219 basic_string(const _CharT* __s, size_type __n, const _Alloc& __a) in basic_string() argument 220 : _M_dataplus(_S_construct(__s, __s + __n, __a), __a) in basic_string() 225 basic_string(const _CharT* __s, const _Alloc& __a) in basic_string() argument 226 : _M_dataplus(_S_construct(__s, __s ? __s + traits_type::length(__s) : in basic_string() 227 __s + npos, __a), __a) in basic_string() 274 assign(const _CharT* __s, size_type __n) in assign() argument 278 if (_M_rep()->_M_is_shared() || less<const _CharT*>()(__s, _M_data()) in assign() 279 || less<const _CharT*>()(_M_data() + this->size(), __s)) in assign() 280 return _M_replace_safe(_M_ibegin(), _M_iend(), __s, __s + __n); in assign() 284 const size_type __pos = __s - _M_data(); in assign() [all …]
|
| /openbsd/src/gnu/gcc/libstdc++-v3/include/ext/ |
| D | vstring.h | 82 _M_check(size_type __pos, const char* __s) const in _GLIBCXX_BEGIN_NAMESPACE() 85 std::__throw_out_of_range(__N(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 90 _M_check_length(size_type __n1, size_type __n2, const char* __s) const in _GLIBCXX_BEGIN_NAMESPACE() 93 std::__throw_length_error(__N(__s)); in _GLIBCXX_BEGIN_NAMESPACE() 106 _M_disjunct(const _CharT* __s) const in _GLIBCXX_BEGIN_NAMESPACE() 108 return (std::less<const _CharT*>()(__s, this->_M_data()) in _GLIBCXX_BEGIN_NAMESPACE() 110 + this->size(), __s)); in _GLIBCXX_BEGIN_NAMESPACE() 187 __versa_string(const _CharT* __s, size_type __n, in _GLIBCXX_BEGIN_NAMESPACE() 189 : __vstring_base(__s, __s + __n, __a) { } in _GLIBCXX_BEGIN_NAMESPACE() 196 __versa_string(const _CharT* __s, const _Alloc& __a = _Alloc()) in _GLIBCXX_BEGIN_NAMESPACE() [all …]
|
| D | vstring.tcc | 65 _M_append(const _CharT* __s, size_type __n) in _M_append() argument 72 this->_S_copy(this->_M_data() + this->size(), __s, __n); in _M_append() 75 this->_M_mutate(this->size(), size_type(0), __s, __n); in _M_append() 89 const __versa_string __s(__k1, __k2); in _M_replace_dispatch() local 91 return _M_replace(__i1 - _M_ibegin(), __n1, __s._M_data(), in _M_replace_dispatch() 92 __s.size()); in _M_replace_dispatch() 129 _M_replace(size_type __pos, size_type __len1, const _CharT* __s, in _M_replace() argument 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() [all …]
|
| /openbsd/src/gnu/gcc/libstdc++-v3/include/debug/ |
| D | string | 98 basic_string(const _CharT* __s, size_type __n, 100 : _Base(__gnu_debug::__check_string(__s, __n), __n, __a) 103 basic_string(const _CharT* __s, const _Allocator& __a = _Allocator()) 104 : _Base(__gnu_debug::__check_string(__s), __a) 105 { this->assign(__s); } 129 operator=(const _CharT* __s) 131 __glibcxx_check_string(__s); 132 *static_cast<_Base*>(this) = __s; 246 operator+=(const _CharT* __s) 248 __glibcxx_check_string(__s); [all …]
|
| /openbsd/src/gnu/gcc/libstdc++-v3/config/locale/generic/ |
| 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() 88 __convert_to_v(const char* __s, double& __v, ios_base::iostate& __err, in __convert_to_v() argument 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() [all …]
|
| /openbsd/src/gnu/lib/libstdc++/libstdc++/testsuite/27_io/ |
| D | ios_init.cc | 72 length(const char_type* __s) in length() 74 const char_type* __p = __s; in length() 77 return (__p - __s); in length() 81 find(const char_type* __s, size_t __n, const char_type& __a) in find() 83 for (const char_type* __p = __s; size_t(__p - __s) < __n; ++__p) in find() 97 assign(char_type* __s, size_t __n, char_type __a) in assign() 99 for (char_type* __p = __s; __p < __s + __n; ++__p) in assign() 101 return __s; in assign() 155 length(const char_type* __s) in length() 157 const char_type* __p = __s; in length() [all …]
|