Home
last modified time | relevance | path

Searched refs:char_type (Results 1 – 25 of 110) sorted by relevance

12345

/llvm-project-15.0.7/libcxx/include/__string/
H A Dchar_traits.h60 const char_type* find(const char_type* __s, size_t __n, const char_type& __a);
62 char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
65 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
68 char_type* assign(char_type* __s, size_t __n, char_type __a);
225 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
230 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
238 char_type* assign(char_type* __s, size_t __n, char_type __a) _NOEXCEPT {
326 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
331 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
339 char_type* assign(char_type* __s, size_t __n, char_type __a) _NOEXCEPT {
[all …]
/llvm-project-15.0.7/libcxx/test/support/
H A Dconstexpr_char_traits.h21 typedef _CharT char_type; typedef
30 static TEST_CONSTEXPR bool eq(char_type __c1, char_type __c2) TEST_NOEXCEPT in eq()
33 static TEST_CONSTEXPR bool lt(char_type __c1, char_type __c2) TEST_NOEXCEPT in lt()
38 …static TEST_CONSTEXPR_CXX14 const char_type* find(const char_type* __s, size_t __n, const char_typ…
39 …static TEST_CONSTEXPR_CXX14 char_type* move(char_type* __s1, const char_type* __s2, size_t _…
40 …static TEST_CONSTEXPR_CXX14 char_type* copy(char_type* __s1, const char_type* __s2, size_t _…
41 static TEST_CONSTEXPR_CXX14 char_type* assign(char_type* __s, size_t __n, char_type __a);
101 char_type* __r = __s1; in move()
123 char_type* __r = __s1; in copy()
131 constexpr_char_traits<_CharT>::assign(char_type* __s, size_t __n, char_type __a) in assign()
[all …]
/llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.capacity/
H A Dshrink_to_fit.explicit_instantiation.sh.cpp27 typedef char16 char_type; typedef
34 static void assign(char_type&, const char_type&) { } in assign()
35 static bool eq(const char_type&, const char_type&) { return false; } in eq()
36 static bool lt(const char_type&, const char_type&) { return false; } in lt()
37 static int compare(const char_type*, const char_type*, size_t) { return 0; } in compare()
38 static size_t length(const char_type*) { return 0; } in length()
39 static const char_type* find(const char_type*, size_t, const char_type&) { return nullptr; } in find()
40 static char_type* move(char_type*, const char_type*, size_t) { return nullptr; } in move()
41 static char_type* copy(char_type*, const char_type*, size_t) { return nullptr; } in copy()
42 static char_type* assign(char_type*, size_t, char_type) { return nullptr; } in assign()
[all …]
/llvm-project-15.0.7/libcxx/test/std/strings/basic.string.hash/
H A Dchar_type_hash.fail.cpp24 typedef _CharT char_type; typedef
30 static inline void assign(char_type& __c1, const char_type& __c2) { in assign()
33 static inline bool eq(char_type __c1, char_type __c2) { return __c1 == __c2; } in eq()
34 static inline bool lt(char_type __c1, char_type __c2) { return __c1 < __c2; } in lt()
36 static int compare(const char_type* __s1, const char_type* __s2, size_t __n);
37 static size_t length(const char_type* __s);
38 static const char_type* find(const char_type* __s, size_t __n,
41 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
42 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
43 static char_type* assign(char_type* __s, size_t __n, char_type __a);
[all …]
/llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.hash/
H A Dchar_type.hash.fail.cpp24 typedef _CharT char_type; typedef
30 static inline void assign(char_type& __c1, const char_type& __c2) { in assign()
33 static inline bool eq(char_type __c1, char_type __c2) { return __c1 == __c2; } in eq()
34 static inline bool lt(char_type __c1, char_type __c2) { return __c1 < __c2; } in lt()
36 static int compare(const char_type* __s1, const char_type* __s2, size_t __n);
37 static size_t length(const char_type* __s);
38 static const char_type* find(const char_type* __s, size_t __n,
41 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
42 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
43 static char_type* assign(char_type* __s, size_t __n, char_type __a);
[all …]
H A Dstring_view.pass.cpp40 typedef typename SV::value_type char_type; in test() typedef
41 typedef std::basic_string<char_type> String; in test()
45 char_type g1 [ 10 ]; in test()
46 char_type g2 [ 10 ]; in test()
48 g1[i] = g2[9-i] = static_cast<char_type>('0' + i); in test()
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/format/format.arguments/format.args/
H A Dget.pass.cpp71 using char_type = typename Context::char_type; in test() typedef
72 std::basic_string<char_type> empty; in test()
73 std::basic_string<char_type> str = MAKE_STRING(char_type, "abc"); in test()
82 test<Context, char_type, char_type>('a'); in test()
83 test<Context, char_type, char_type>('z'); in test()
84 test<Context, char_type, char_type>('0'); in test()
85 test<Context, char_type, char_type>('9'); in test()
89 if (std::is_same_v<char_type, char>) { in test()
91 test<Context, char_type, char>('a'); in test()
278 test<Context, const char_type*, const char_type*>(empty.c_str()); in test()
[all …]
/llvm-project-15.0.7/libcxx/include/
H A D__locale596 char_type toupper(char_type __c) const
602 const char_type* toupper(char_type* __low, const char_type* __high) const
608 char_type tolower(char_type __c) const
614 const char_type* tolower(char_type* __low, const char_type* __high) const
652 virtual const char_type* do_toupper(char_type* __low, const char_type* __high) const;
654 virtual const char_type* do_tolower(char_type* __low, const char_type* __high) const;
706 char_type toupper(char_type __c) const
712 const char_type* toupper(char_type* __low, const char_type* __high) const
718 char_type tolower(char_type __c) const
724 const char_type* tolower(char_type* __low, const char_type* __high) const
[all …]
H A Dstreambuf24 typedef charT char_type;
71 void setg(char_type* gbeg, char_type* gnext, char_type* gend);
78 void setp(char_type* pbeg, char_type* pend);
249 void setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) {
267 void setp(char_type* __pbeg, char_type* __pend) {
299 char_type* __binp_;
300 char_type* __ninp_;
301 char_type* __einp_;
302 char_type* __bout_;
303 char_type* __nout_;
[all …]
H A Dsstream21 typedef charT char_type;
49 virtual basic_streambuf<char_type, traits_type>* setbuf(char_type*, streamsize);
220 mutable char_type* __hm_;
269 char_type* __p = const_cast<char_type*>(__rhs.__str_.data());
290 __p = const_cast<char_type*>(__str_.data());
310 char_type* __p = const_cast<char_type*>(__rhs.__str_.data());
331 __p = const_cast<char_type*>(__str_.data());
358 char_type* __p = const_cast<char_type*>(__rhs.__str_.data());
545 __str_.push_back(char_type());
547 char_type* __p = const_cast<char_type*>(__str_.data());
[all …]
H A D__std_stream38 typedef _CharT char_type;
39 typedef char_traits<char_type> traits_type;
56 const codecvt<char_type, char, state_type>* __cv_;
127 char_type __1buf;
129 __1buf = static_cast<char_type>(__extbuf[0]);
133 char_type* __inxt;
196 const char_type* __inxt;
265 char_type __1buf;
278 char_type* pbase = &__1buf;
279 char_type* pptr = pbase + 1;
[all …]
H A Dlocale2821 char_type*& __wn, char_type* __we);
2875 char_type __dp;
2876 char_type __ts;
3158 static void __format(char_type* __mb, char_type*& __mi, char_type*& __me,
3220 __money_put<_CharT>::__format(char_type* __mb, char_type*& __mi, char_type*& __me,
3396 char_type __dp;
3397 char_type __ts;
3413 __hw.reset((char_type*)malloc(__exn * sizeof(char_type)));
3438 char_type __dp;
3439 char_type __ts;
[all …]
H A Dfstream50 virtual basic_streambuf<char_type, traits_type>* setbuf(char_type* s, streamsize n);
265 virtual basic_streambuf<char_type, traits_type>* setbuf(char_type* __s, streamsize __n);
279 char_type* __intbuf_;
354 this->setp((char_type*)__extbuf_,
731 char_type __1buf;
769 char_type* __inext;
775 this->setg((char_type*)__extbuf_, (char_type*)__extbuf_,
823 char_type __1buf;
824 char_type* __pb_save = this->pbase();
825 char_type* __epb_save = this->epptr();
[all …]
H A Distream65 basic_istream& get(char_type* s, streamsize n, char_type delim);
67 basic_istream& get(basic_streambuf<char_type,traits_type>& sb, char_type delim);
70 basic_istream& getline(char_type* s, streamsize n, char_type delim);
263 basic_istream& get(char_type* __s, streamsize __n, char_type __dlm);
269 basic_istream& get(basic_streambuf<char_type, traits_type>& __sb, char_type __dlm);
275 basic_istream& getline(char_type* __s, streamsize __n, char_type __dlm);
779 basic_istream<_CharT, _Traits>::get(char_type* __s, streamsize __n, char_type __dlm)
830 *__s = char_type();
834 *__s = char_type();
885 basic_istream<_CharT, _Traits>::getline(char_type* __s, streamsize __n, char_type __dlm)
[all …]
H A Dios115 typedef charT char_type;
147 char_type fill() const;
148 char_type fill(char_type ch);
153 char_type widen(char c) const;
609 typedef _CharT char_type;
650 basic_ostream<char_type, traits_type>* tie(basic_ostream<char_type, traits_type>* __tiestr);
655 basic_streambuf<char_type, traits_type>* rdbuf(basic_streambuf<char_type, traits_type>* __sb);
660 char_type fill() const;
662 char_type fill(char_type __ch);
670 char_type widen(char __c) const;
[all …]
H A Dostream415 typedef num_put<char_type, ostreambuf_iterator<char_type, traits_type> > _Fp;
442 typedef num_put<char_type, ostreambuf_iterator<char_type, traits_type> > _Fp;
471 typedef num_put<char_type, ostreambuf_iterator<char_type, traits_type> > _Fp;
498 typedef num_put<char_type, ostreambuf_iterator<char_type, traits_type> > _Fp;
527 typedef num_put<char_type, ostreambuf_iterator<char_type, traits_type> > _Fp;
553 typedef num_put<char_type, ostreambuf_iterator<char_type, traits_type> > _Fp;
579 typedef num_put<char_type, ostreambuf_iterator<char_type, traits_type> > _Fp;
605 typedef num_put<char_type, ostreambuf_iterator<char_type, traits_type> > _Fp;
631 typedef num_put<char_type, ostreambuf_iterator<char_type, traits_type> > _Fp;
657 typedef num_put<char_type, ostreambuf_iterator<char_type, traits_type> > _Fp;
[all …]
/llvm-project-15.0.7/libcxx/include/__format/
H A Dformat_arg_store.h46 template <class _Context, same_as<typename _Context::char_type> _Tp>
52 requires(same_as<typename _Context::char_type, wchar_t> && same_as<_CharT, char>) in requires() argument
104 …requires(same_as<typename _Context::char_type*, _Tp> || same_as<const typename _Context::char_type
111 requires(is_array_v<_Tp> && same_as<_Tp, typename _Context::char_type[extent_v<_Tp>]>) in requires()
118 requires(same_as<typename _Context::char_type, typename _Tp::value_type> && in requires() argument
127 same_as<typename _Context::char_type, typename _Tp::value_type> && in requires() argument
152 requires(!__formattable<_Tp, typename _Context::char_type>)
166 return basic_format_arg<_Context>{__arg, static_cast<typename _Context::char_type>(__value)}; in __create_format_arg()
179 …__arg, basic_string_view<typename _Context::char_type>{__value, extent_v<remove_cvref_t<_Tp>> - 1}… in __create_format_arg()
184 __arg, basic_string_view<typename _Context::char_type>{__value.data(), __value.size()}}; in __create_format_arg()
/llvm-project-15.0.7/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/
H A Dpbackfail.pass.cpp34 typedef base::char_type char_type; typedef
40 char_type* eback() const {return base::eback();} in eback()
41 char_type* gptr() const {return base::gptr();} in gptr()
42 char_type* egptr() const {return base::egptr();} in egptr()
H A Dunderflow.pass.cpp34 typedef base::char_type char_type; typedef
40 char_type* eback() const {return base::eback();} in eback()
41 char_type* gptr() const {return base::gptr();} in gptr()
42 char_type* egptr() const {return base::egptr();} in egptr()
H A Doverflow.pass.cpp32 typedef base::char_type char_type; typedef
38 char_type* pbase() const {return base::pbase();} in pbase()
39 char_type* pptr() const {return base::pptr();} in pptr()
40 char_type* epptr() const {return base::epptr();} in epptr()
/llvm-project-15.0.7/libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/
H A Dpbackfail.pass.cpp25 typedef typename base::char_type char_type; typedef
29 char_type* eback() const {return base::eback();} in eback()
30 char_type* gptr() const {return base::gptr();} in gptr()
31 char_type* egptr() const {return base::egptr();} in egptr()
H A Dunderflow.pass.cpp30 typedef typename base::char_type char_type; typedef
33 char_type* eback() const {return base::eback();} in eback()
34 char_type* gptr() const {return base::gptr();} in gptr()
35 char_type* egptr() const {return base::egptr();} in egptr()
/llvm-project-15.0.7/libcxx/include/__iterator/
H A Distreambuf_iterator.h41 typedef _CharT char_type; typedef
51 char_type __keep_;
54 explicit __proxy(char_type __c, streambuf_type* __s) in __proxy()
58 _LIBCPP_INLINE_VISIBILITY char_type operator*() const {return __keep_;}
81 _LIBCPP_INLINE_VISIBILITY char_type operator*() const
82 {return static_cast<char_type>(__sbuf_->sgetc());}
/llvm-project-15.0.7/libcxx/test/std/re/re.traits/
H A Dlookup_classname.pass.cpp23 template <class char_type>
25 test(const char_type* A, in test()
26 typename std::regex_traits<char_type>::char_class_type expected, in test()
29 typedef typename std::regex_traits<char_type>::char_class_type char_class_type; in test()
30 std::regex_traits<char_type> t; in test()
31 typedef forward_iterator<const char_type*> F; in test()
36 template <class char_type>
38 test_w(const char_type* A, in test_w()
39 typename std::regex_traits<char_type>::char_class_type expected, in test_w()
43 std::regex_traits<char_type> t; in test_w()
[all …]
/llvm-project-15.0.7/libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/ostreambuf.iter.ops/
H A Dfailed.pass.cpp24 typedef typename std::basic_streambuf<Char,Traits>::char_type char_type; typedef
27 int_type sputc(char_type) { return Traits::eof(); } in sputc()

12345