| /openbsd-src/gnu/gcc/libstdc++-v3/include/bits/ |
| H A D | char_traits.h | 89 typedef _CharT char_type; typedef 96 assign(char_type& __c1, const char_type& __c2) in assign() 100 eq(const char_type& __c1, const char_type& __c2) in eq() 104 lt(const char_type& __c1, const char_type& __c2) in lt() 108 compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 111 length(const char_type* __s); 113 static const char_type* 114 find(const char_type* __s, std::size_t __n, const char_type& __a); 116 static char_type* 117 move(char_type* __s1, const char_type* __s2, std::size_t __n); [all …]
|
| H A D | locale_facets.h | 151 typedef _CharT char_type; typedef 164 is(mask __m, char_type __c) const in is() 180 const char_type* 181 is(const char_type *__lo, const char_type *__hi, mask *__vec) const in is() 196 const char_type* 197 scan_is(mask __m, const char_type* __lo, const char_type* __hi) const in scan_is() 212 const char_type* 213 scan_not(mask __m, const char_type* __lo, const char_type* __hi) const in scan_not() 226 char_type 227 toupper(char_type __c) const in toupper() [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/include/bits/ |
| H A D | char_traits.h | 62 typedef _CharT char_type; typedef 69 assign(char_type& __c1, const char_type& __c2) in assign() 73 eq(const char_type& __c1, const char_type& __c2) in eq() 77 lt(const char_type& __c1, const char_type& __c2) in lt() 81 compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 84 length(const char_type* __s); 86 static const char_type* 87 find(const char_type* __s, std::size_t __n, const char_type& __a); 89 static char_type* 90 move(char_type* __s1, const char_type* __s2, std::size_t __n); [all …]
|
| H A D | locale_facets.h | 174 typedef _CharT char_type; typedef 177 is(mask __m, char_type __c) const in is() 180 const char_type* 181 is(const char_type *__lo, const char_type *__hi, mask *__vec) const in is() 184 const char_type* 185 scan_is(mask __m, const char_type* __lo, const char_type* __hi) const in scan_is() 188 const char_type* 189 scan_not(mask __m, const char_type* __lo, const char_type* __hi) const in scan_not() 192 char_type 193 toupper(char_type __c) const in toupper() [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/27_io/ |
| H A D | ios_init.cc | 43 typedef unsigned short char_type; typedef 51 assign(char_type& __c1, const char_type& __c2) in assign() 55 eq(const char_type& __c1, const char_type& __c2) in eq() 59 lt(const char_type& __c1, const char_type& __c2) in lt() 63 compare(const char_type* __s1, const char_type* __s2, size_t __n) in compare() 72 length(const char_type* __s) in length() 74 const char_type* __p = __s; in length() 80 static const char_type* 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() [all …]
|
| /openbsd-src/gnu/llvm/libcxx/include/__string.d/__string/ |
| H A D | char_traits.h | 82 using char_type = _CharT; member 89 assign(char_type& __c1, const char_type& __c2) _NOEXCEPT {__c1 = __c2;} in assign() 90 static inline _LIBCPP_CONSTEXPR bool eq(char_type __c1, char_type __c2) _NOEXCEPT in eq() 92 static inline _LIBCPP_CONSTEXPR bool lt(char_type __c1, char_type __c2) _NOEXCEPT in lt() 96 int compare(const char_type* __s1, const char_type* __s2, size_t __n) { in compare() 107 size_t length(const char_type* __s) { in length() 109 for (; !eq(*__s, char_type(0)); ++__s) in length() 114 const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { in find() 124 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { in move() 126 char_type* __r = __s1; in move() [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/22_locale/ |
| H A D | ctype.cc | 50 do_is(mask __m, char_type __c) const in do_is() 53 virtual const char_type* 54 do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const in do_is() 58 return reinterpret_cast<const char_type*>(__c); in do_is() 61 virtual const char_type* 62 do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const in do_scan_is() 67 return reinterpret_cast<const char_type*>(__c); in do_scan_is() 70 virtual const char_type* 71 do_scan_not(mask __m, const char_type* __lo, const char_type* __hi) const in do_scan_not() 76 return reinterpret_cast<const char_type*>(__c); in do_scan_not() [all …]
|
| H A D | codecvt_members_unicode_wchar_t.cc | 37 typedef unicode_t char_type; typedef 45 assign(char_type& __c1, const char_type& __c2); 48 eq(const char_type& __c1, const char_type& __c2); 51 lt(const char_type& __c1, const char_type& __c2); 54 compare(const char_type* __s1, const char_type* __s2, size_t __n) in compare() 58 length(const char_type* __s); 60 static const char_type* 61 find(const char_type* __s, size_t __n, const char_type& __a); 63 static char_type* 64 move(char_type* __s1, const char_type* __s2, size_t __n); [all …]
|
| H A D | ctype_to_char.cc | 33 typedef char char_type; typedef 34 class gnu_ctype: public std::ctype<char_type> { }; 39 const char_type strlit00[] = "manilla, cebu, tandag PHILIPPINES"; in test01() 40 const char_type strlit01[] = "MANILLA, CEBU, TANDAG PHILIPPINES"; in test01() 41 const char_type strlit02[] = "manilla, cebu, tandag philippines"; in test01() 42 const char_type c00 = 'S'; in test01() 43 const char_type c10 = 's'; in test01() 44 const char_type c20 = '9'; in test01() 45 const char_type c30 = ' '; in test01() 46 const char_type c40 = '!'; in test01() [all …]
|
| H A D | ctype_to_wchar_t.cc | 34 typedef wchar_t char_type; typedef 35 class gnu_ctype: public std::ctype<char_type> { }; 40 const char_type strlit00[] = L"manilla, cebu, tandag PHILIPPINES"; in test01() 41 const char_type strlit01[] = L"MANILLA, CEBU, TANDAG PHILIPPINES"; in test01() 42 const char_type strlit02[] = L"manilla, cebu, tandag philippines"; in test01() 43 const char_type c00 = L'S'; in test01() 44 const char_type c10 = L's'; in test01() 45 const char_type c20 = L'9'; in test01() 46 const char_type c30 = L' '; in test01() 47 const char_type c40 = L'!'; in test01() [all …]
|
| H A D | codecvt_members_unicode_char.cc | 38 typedef unicode_t char_type; typedef 46 assign(char_type& __c1, const char_type& __c2); 49 eq(const char_type& __c1, const char_type& __c2); 52 lt(const char_type& __c1, const char_type& __c2); 55 compare(const char_type* __s1, const char_type* __s2, size_t __n) in compare() 59 length(const char_type* __s); 61 static const char_type* 62 find(const char_type* __s, size_t __n, const char_type& __a); 64 static char_type* 65 move(char_type* __s1, const char_type* __s2, size_t __n); [all …]
|
| H A D | ctype_is_char.cc | 37 typedef char char_type; typedef 38 class gnu_ctype: public std::ctype<char_type> { }; 43 const char_type strlit00[] = "manilla, cebu, tandag PHILIPPINES"; in test01() 44 const char_type strlit01[] = "MANILLA, CEBU, TANDAG PHILIPPINES"; in test01() 45 const char_type strlit02[] = "manilla, cebu, tandag philippines"; in test01() 46 const char_type c00 = 'S'; in test01() 47 const char_type c10 = 's'; in test01() 48 const char_type c20 = '9'; in test01() 49 const char_type c30 = ' '; in test01() 50 const char_type c40 = '!'; in test01() [all …]
|
| H A D | ctype_is_wchar_t.cc | 38 typedef wchar_t char_type; typedef 39 class gnu_ctype: public std::ctype<char_type> { }; 44 const char_type strlit00[] = L"manilla, cebu, tandag PHILIPPINES"; in test01() 45 const char_type strlit01[] = L"MANILLA, CEBU, TANDAG PHILIPPINES"; in test01() 46 const char_type strlit02[] = L"manilla, cebu, tandag philippines"; in test01() 47 const char_type c00 = L'S'; in test01() 48 const char_type c10 = L's'; in test01() 49 const char_type c20 = L'9'; in test01() 50 const char_type c30 = L' '; in test01() 51 const char_type c40 = L'!'; in test01() [all …]
|
| H A D | ctor_copy_dtor.cc | 59 typedef unicode_t char_type; typedef 67 assign(char_type& __c1, const char_type& __c2); 70 eq(const char_type& __c1, const char_type& __c2); 73 lt(const char_type& __c1, const char_type& __c2); 76 compare(const char_type* __s1, const char_type* __s2, size_t __n) in compare() 80 length(const char_type* __s); 82 static const char_type* 83 find(const char_type* __s, size_t __n, const char_type& __a); 85 static char_type* 86 move(char_type* __s1, const char_type* __s2, size_t __n); [all …]
|
| /openbsd-src/gnu/gcc/libstdc++-v3/include/ext/ |
| H A D | pod_char_traits.h | 55 typedef character<V, I, S> char_type; typedef 60 static char_type 63 char_type ret = { static_cast<value_type>(v) }; in from() 69 to(const char_type& c) in to() 95 typedef __gnu_cxx::character<V, I, S> char_type; 96 typedef typename char_type::int_type int_type; 97 typedef typename char_type::state_type state_type; 102 assign(char_type& __c1, const char_type& __c2) 106 eq(const char_type& __c1, const char_type& __c2) 110 lt(const char_type& __c1, const char_type& __c2) [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/include/std/ |
| H A D | std_streambuf.h | 134 typedef _CharT char_type; typedef 147 typedef ctype<char_type> __ctype_type; 148 typedef basic_streambuf<char_type, traits_type> __streambuf_type; 152 friend class basic_ios<char_type, traits_type>; 153 friend class basic_istream<char_type, traits_type>; 154 friend class basic_ostream<char_type, traits_type>; 155 friend class istreambuf_iterator<char_type, traits_type>; 156 friend class ostreambuf_iterator<char_type, traits_type>; 159 __copy_streambufs<>(basic_ios<char_type, traits_type>& __ios, 171 char_type* _M_buf; [all …]
|
| H A D | std_fstream.h | 67 typedef _CharT char_type; typedef 79 typedef basic_streambuf<char_type, traits_type> __streambuf_type; 80 typedef basic_filebuf<char_type, traits_type> __filebuf_type; 83 typedef codecvt<char_type, char, __state_type> __codecvt_type; 84 typedef ctype<char_type> __ctype_type; 134 char_type* _M_filepos; 282 _M_convert_to_external(char_type*, streamsize, streamsize&, streamsize&); 297 setbuf(char_type* __s, streamsize __n); 343 xsgetn(char_type* __s, streamsize __n) in xsgetn() 365 xsputn(const char_type* __s, streamsize __n) in xsputn() [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/ |
| H A D | testsuite_hooks.h | 306 typedef __gnu_cxx_test::pod_char char_type; 313 assign(char_type& __c1, const char_type& __c2); 316 eq(const char_type& __c1, const char_type& __c2); 319 lt(const char_type& __c1, const char_type& __c2); 322 compare(const char_type* __s1, const char_type* __s2, size_t __n); 325 length(const char_type* __s); 327 static const char_type* 328 find(const char_type* __s, size_t __n, const char_type& __a); 330 static char_type* 331 move(char_type* __s1, const char_type* __s2, size_t __n); [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/21_strings/ |
| H A D | capacity.cc | 45 typedef A<B> char_type; typedef 53 assign(char_type& __c1, const char_type& __c2) in assign() 57 eq(const char_type& __c1, const char_type& __c2) in eq() 61 lt(const char_type& __c1, const char_type& __c2) in lt() 65 compare(const char_type* __s1, const char_type* __s2, size_t __n) in compare() 74 length(const char_type* __s) in length() 76 const char_type* __p = __s; in length() 82 static const char_type* 83 find(const char_type* __s, size_t __n, const char_type& __a) in find() 85 for (const char_type* __p = __s; size_t(__p - __s) < __n; ++__p) in find() [all …]
|
| /openbsd-src/gnu/gcc/libstdc++-v3/include/std/ |
| H A D | std_streambuf.h | 133 typedef _CharT char_type; typedef 146 typedef basic_streambuf<char_type, traits_type> __streambuf_type; 149 friend class basic_ios<char_type, traits_type>; 150 friend class basic_istream<char_type, traits_type>; 151 friend class basic_ostream<char_type, traits_type>; 152 friend class istreambuf_iterator<char_type, traits_type>; 153 friend class ostreambuf_iterator<char_type, traits_type>; 195 char_type* _M_in_beg; // Start of get area. 196 char_type* _M_in_cur; // Current read area. 197 char_type* _M_in_end; // End of get area. [all …]
|
| H A D | std_fstream.h | 73 typedef _CharT char_type; in _GLIBCXX_BEGIN_NAMESPACE() typedef 79 typedef basic_streambuf<char_type, traits_type> __streambuf_type; in _GLIBCXX_BEGIN_NAMESPACE() 80 typedef basic_filebuf<char_type, traits_type> __filebuf_type; in _GLIBCXX_BEGIN_NAMESPACE() 83 typedef codecvt<char_type, char, __state_type> __codecvt_type; in _GLIBCXX_BEGIN_NAMESPACE() 119 char_type* _M_buf; in _GLIBCXX_BEGIN_NAMESPACE() 153 char_type _M_pback; in _GLIBCXX_BEGIN_NAMESPACE() 154 char_type* _M_pback_cur_save; in _GLIBCXX_BEGIN_NAMESPACE() 155 char_type* _M_pback_end_save; in _GLIBCXX_BEGIN_NAMESPACE() 337 _M_convert_to_external(char_type*, streamsize); in _GLIBCXX_BEGIN_NAMESPACE() 352 setbuf(char_type* __s, streamsize __n); in _GLIBCXX_BEGIN_NAMESPACE() [all …]
|
| H A D | std_istream.h | 62 typedef _CharT char_type; in _GLIBCXX_BEGIN_NAMESPACE() typedef 306 get(char_type& __c); in _GLIBCXX_BEGIN_NAMESPACE() 333 get(char_type* __s, streamsize __n, char_type __delim); in _GLIBCXX_BEGIN_NAMESPACE() 344 get(char_type* __s, streamsize __n) in _GLIBCXX_BEGIN_NAMESPACE() 367 get(__streambuf_type& __sb, char_type __delim); in _GLIBCXX_BEGIN_NAMESPACE() 406 getline(char_type* __s, streamsize __n, char_type __delim); in _GLIBCXX_BEGIN_NAMESPACE() 417 getline(char_type* __s, streamsize __n) in _GLIBCXX_BEGIN_NAMESPACE() 476 read(char_type* __s, streamsize __n); in _GLIBCXX_BEGIN_NAMESPACE() 495 readsome(char_type* __s, streamsize __n); in _GLIBCXX_BEGIN_NAMESPACE() 511 putback(char_type __c); in _GLIBCXX_BEGIN_NAMESPACE() [all …]
|
| /openbsd-src/gnu/llvm/libcxx/include/ |
| H A D | __locale | 264 typedef _CharT char_type; 265 typedef basic_string<char_type> string_type; 272 int compare(const char_type* __lo1, const char_type* __hi1, 273 const char_type* __lo2, const char_type* __hi2) const 282 string_type transform(const char_type* __lo, const char_type* __hi) const 288 long hash(const char_type* __lo, const char_type* __hi) const 297 virtual int do_compare(const char_type* __lo1, const char_type* __hi1, 298 const char_type* __lo2, const char_type* __hi2) const; 299 virtual string_type do_transform(const char_type* __lo, const char_type* __hi) const 301 virtual long do_hash(const char_type* __lo, const char_type* __hi) const; [all …]
|
| H A D | streambuf | 24 typedef charT char_type; 37 basic_streambuf* pubsetbuf(char_type* s, streamsize n); 50 streamsize sgetn(char_type* s, streamsize n); 53 int_type sputbackc(char_type c); 57 int_type sputc(char_type c); 58 streamsize sputn(const char_type* s, streamsize n); 67 char_type* eback() const; 68 char_type* gptr() const; 69 char_type* egptr() const; 71 void setg(char_type* gbeg, char_type* gnext, char_type* gend); [all …]
|
| H A D | sstream | 22 typedef charT char_type; 33 explicit basic_stringbuf(const basic_string<char_type, traits_type, allocator_type>& str, 42 basic_string<char_type, traits_type, allocator_type> str() const; 43 void str(const basic_string<char_type, traits_type, allocator_type>& s); 50 virtual basic_streambuf<char_type, traits_type>* setbuf(char_type*, streamsize); 71 typedef charT char_type; 83 explicit basic_istringstream(const basic_string<char_type, traits_type,allocator_type>& str, 92 basic_stringbuf<char_type, traits_type, allocator_type>* rdbuf() const; 93 basic_string<char_type, traits_type, allocator_type> str() const; 94 void str(const basic_string<char_type, traits_type, allocator_type>& s); [all …]
|