Home
last modified time | relevance | path

Searched refs:CharT (Results 1 – 25 of 223) sorted by relevance

123456789

/external/libcxx/test/std/input.output/iostream.format/quoted.manip/
Dquoted.pass.cpp23 template <class CharT, class Traits>
24 bool is_skipws ( const std::basic_istream<CharT, Traits>& is ) { in is_skipws() argument
28 template <class CharT, class Traits = std::char_traits<CharT>>
29 void both_ways ( const CharT *p ) { in both_ways()
30 std::basic_string<CharT, Traits> str(p); in both_ways()
33 std::basic_stringstream<CharT, Traits> ss; in both_ways()
40 template <class CharT, class Traits = std::char_traits<CharT>>
41 void round_trip ( const CharT *p ) { in round_trip()
42 std::basic_stringstream<CharT, Traits> ss; in round_trip()
46 std::basic_string<CharT, Traits> s; in round_trip()
[all …]
/external/libcxx/test/std/experimental/filesystem/class.path/path.member/path.native.obs/
Dstring_alloc.pass.cpp37 template <class CharT>
40 using Ptr = CharT const*; in doShortStringTest()
41 using Str = std::basic_string<CharT>; in doShortStringTest()
42 using Alloc = std::allocator<CharT>; in doShortStringTest()
47 Str s = p.string<CharT>(); in doShortStringTest()
49 Str s2 = p.string<CharT>(Alloc{}); in doShortStringTest()
52 using MAlloc = malloc_allocator<CharT>; in doShortStringTest()
55 using Traits = std::char_traits<CharT>; in doShortStringTest()
56 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doShortStringTest()
58 AStr s = p.string<CharT, Traits, MAlloc>(); in doShortStringTest()
[all …]
/external/libcxx/test/libcxx/experimental/filesystem/class.path/path.req/
Dis_pathable.pass.cpp58 template <class CharT>
60 using value_type = CharT;
61 using string_type = std::basic_string<CharT>;
62 using string_type2 = std::basic_string<CharT, std::char_traits<CharT>, min_allocator<CharT>>;
63 using string_view_type = std::basic_string_view<CharT>;
64 using string_view_type2 = std::basic_string_view<CharT, constexpr_char_traits<CharT>>;
65 using cstr_type = CharT* const;
66 using const_cstr_type = const CharT*;
67 using array_type = CharT[25];
68 using const_array_type = const CharT[25];
[all …]
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/
Dstreambuf.pass.cpp20 template <class CharT>
22 : public std::basic_streambuf<CharT>
24 typedef std::basic_streambuf<CharT> base;
25 std::basic_string<CharT> str_;
30 testbuf(const std::basic_string<CharT>& str) in testbuf()
33 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
34 const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data() + str_.size())); in testbuf()
38 std::basic_string<CharT> str() const in str()
39 {return std::basic_string<CharT>(base::pbase(), base::pptr());} in str()
[all …]
Dostream.pass.cpp21 template <class CharT>
23 : public std::basic_streambuf<CharT>
25 typedef std::basic_streambuf<CharT> base;
26 std::basic_string<CharT> str_;
32 std::basic_string<CharT> str() const in str()
33 {return std::basic_string<CharT>(base::pbase(), base::pptr());} in str()
43 str_.push_back(static_cast<CharT>(__c)); in overflow()
45 base::setp(const_cast<CharT*>(str_.data()), in overflow()
46 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
53 template <class CharT>
[all …]
Dbasic_ios.pass.cpp21 template <class CharT>
23 : public std::basic_streambuf<CharT>
25 typedef std::basic_streambuf<CharT> base;
26 std::basic_string<CharT> str_;
32 std::basic_string<CharT> str() const in str()
33 {return std::basic_string<CharT>(base::pbase(), base::pptr());} in str()
43 str_.push_back(static_cast<CharT>(__c)); in overflow()
45 base::setp(const_cast<CharT*>(str_.data()), in overflow()
46 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
53 template <class CharT>
[all …]
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/
Dstreambuf.pass.cpp20 template <class CharT>
22 : public std::basic_streambuf<CharT>
24 typedef std::basic_streambuf<CharT> base;
25 std::basic_string<CharT> str_;
30 testbuf(const std::basic_string<CharT>& str) in testbuf()
33 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
34 const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data() + str_.size())); in testbuf()
38 std::basic_string<CharT> str() const in str()
39 {return std::basic_string<CharT>(base::pbase(), base::pptr());} in str()
[all …]
Dsigned_char.pass.cpp18 template <class CharT>
20 : public std::basic_streambuf<CharT>
22 typedef std::basic_string<CharT> string_type;
23 typedef std::basic_streambuf<CharT> base;
32 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
33 const_cast<CharT*>(str_.data()), in testbuf()
34 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
37 CharT* eback() const {return base::eback();} in eback()
38 CharT* gptr() const {return base::gptr();} in gptr()
39 CharT* egptr() const {return base::egptr();} in egptr()
Dunsigned_char.pass.cpp18 template <class CharT>
20 : public std::basic_streambuf<CharT>
22 typedef std::basic_string<CharT> string_type;
23 typedef std::basic_streambuf<CharT> base;
32 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
33 const_cast<CharT*>(str_.data()), in testbuf()
34 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
37 CharT* eback() const {return base::eback();} in eback()
38 CharT* gptr() const {return base::gptr();} in gptr()
39 CharT* egptr() const {return base::egptr();} in egptr()
/external/libcxx/test/std/experimental/filesystem/class.path/path.member/path.construct/
Dsource.pass.cpp33 template <class CharT>
37 const CharT* TestPath = MS; in RunTestCase()
38 const CharT* TestPathEnd = StrEnd(TestPath); in RunTestCase()
44 const std::basic_string<CharT> S(TestPath); in RunTestCase()
47 assert(p.string<CharT>() == TestPath); in RunTestCase()
48 assert(p.string<CharT>() == S); in RunTestCase()
51 const std::basic_string_view<CharT> S(TestPath); in RunTestCase()
54 assert(p.string<CharT>() == TestPath); in RunTestCase()
55 assert(p.string<CharT>() == S); in RunTestCase()
61 assert(p.string<CharT>() == TestPath); in RunTestCase()
[all …]
/external/libcxx/test/std/experimental/filesystem/class.path/path.member/path.assign/
Dsource.pass.cpp38 template <class CharT>
42 const CharT* TestPath = MS; in RunTestCase()
43 const CharT* TestPathEnd = StrEnd(TestPath); in RunTestCase()
50 const std::basic_string<CharT> S(TestPath); in RunTestCase()
59 assert(p.string<CharT>() == TestPath); in RunTestCase()
60 assert(p.string<CharT>() == S); in RunTestCase()
63 const std::basic_string<CharT> S(TestPath); in RunTestCase()
71 assert(p.string<CharT>() == TestPath); in RunTestCase()
72 assert(p.string<CharT>() == S); in RunTestCase()
76 const std::basic_string_view<CharT> S(TestPath); in RunTestCase()
[all …]
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/
Dget_streambuf.pass.cpp17 template <class CharT>
19 : public std::basic_streambuf<CharT>
21 typedef std::basic_streambuf<CharT> base;
22 std::basic_string<CharT> str_;
27 testbuf(const std::basic_string<CharT>& str) in testbuf()
30 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
31 const_cast<CharT*>(str_.data()), in testbuf()
32 const_cast<CharT*>(str_.data() + str_.size())); in testbuf()
35 std::basic_string<CharT> str() const in str()
36 {return std::basic_string<CharT>(base::pbase(), base::pptr());} in str()
[all …]
Dget_streambuf_chart.pass.cpp18 template <class CharT>
20 : public std::basic_streambuf<CharT>
22 typedef std::basic_streambuf<CharT> base;
23 std::basic_string<CharT> str_;
28 testbuf(const std::basic_string<CharT>& str) in testbuf()
31 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
32 const_cast<CharT*>(str_.data()), in testbuf()
33 const_cast<CharT*>(str_.data() + str_.size())); in testbuf()
36 std::basic_string<CharT> str() const in str()
37 {return std::basic_string<CharT>(base::pbase(), base::pptr());} in str()
[all …]
Dsync.pass.cpp19 template <class CharT>
21 : public std::basic_streambuf<CharT>
23 typedef std::basic_string<CharT> string_type;
24 typedef std::basic_streambuf<CharT> base;
33 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
34 const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
38 CharT* eback() const {return base::eback();} in eback()
39 CharT* gptr() const {return base::gptr();} in gptr()
40 CharT* egptr() const {return base::egptr();} in egptr()
Dtellg.pass.cpp17 template <class CharT>
19 : public std::basic_streambuf<CharT>
21 typedef std::basic_string<CharT> string_type;
22 typedef std::basic_streambuf<CharT> base;
31 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
32 const_cast<CharT*>(str_.data()), in testbuf()
33 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
36 CharT* eback() const {return base::eback();} in eback()
37 CharT* gptr() const {return base::gptr();} in gptr()
38 CharT* egptr() const {return base::egptr();} in egptr()
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream.rvalue/
Drvalue.pass.cpp22 template <class CharT>
24 : public std::basic_streambuf<CharT>
26 typedef std::basic_string<CharT> string_type;
27 typedef std::basic_streambuf<CharT> base;
36 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
37 const_cast<CharT*>(str_.data()), in testbuf()
38 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
41 CharT* eback() const {return base::eback();} in eback()
42 CharT* gptr() const {return base::gptr();} in gptr()
43 CharT* egptr() const {return base::egptr();} in egptr()
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/
Dunsigned_short.pass.cpp20 template <class CharT>
22 : public std::basic_streambuf<CharT>
24 typedef std::basic_string<CharT> string_type;
25 typedef std::basic_streambuf<CharT> base;
34 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data()), in testbuf()
36 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
39 CharT* eback() const {return base::eback();} in eback()
40 CharT* gptr() const {return base::gptr();} in gptr()
41 CharT* egptr() const {return base::egptr();} in egptr()
Ddouble.pass.cpp20 template <class CharT>
22 : public std::basic_streambuf<CharT>
24 typedef std::basic_string<CharT> string_type;
25 typedef std::basic_streambuf<CharT> base;
34 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data()), in testbuf()
36 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
39 CharT* eback() const {return base::eback();} in eback()
40 CharT* gptr() const {return base::gptr();} in gptr()
41 CharT* egptr() const {return base::egptr();} in egptr()
Dlong_double.pass.cpp20 template <class CharT>
22 : public std::basic_streambuf<CharT>
24 typedef std::basic_string<CharT> string_type;
25 typedef std::basic_streambuf<CharT> base;
34 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data()), in testbuf()
36 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
39 CharT* eback() const {return base::eback();} in eback()
40 CharT* gptr() const {return base::gptr();} in gptr()
41 CharT* egptr() const {return base::egptr();} in egptr()
Dunsigned_int.pass.cpp20 template <class CharT>
22 : public std::basic_streambuf<CharT>
24 typedef std::basic_string<CharT> string_type;
25 typedef std::basic_streambuf<CharT> base;
34 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data()), in testbuf()
36 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
39 CharT* eback() const {return base::eback();} in eback()
40 CharT* gptr() const {return base::gptr();} in gptr()
41 CharT* egptr() const {return base::egptr();} in egptr()
Dbool.pass.cpp20 template <class CharT>
22 : public std::basic_streambuf<CharT>
24 typedef std::basic_string<CharT> string_type;
25 typedef std::basic_streambuf<CharT> base;
34 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data()), in testbuf()
36 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
39 CharT* eback() const {return base::eback();} in eback()
40 CharT* gptr() const {return base::gptr();} in gptr()
41 CharT* egptr() const {return base::egptr();} in egptr()
Dlong_long.pass.cpp20 template <class CharT>
22 : public std::basic_streambuf<CharT>
24 typedef std::basic_string<CharT> string_type;
25 typedef std::basic_streambuf<CharT> base;
34 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data()), in testbuf()
36 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
39 CharT* eback() const {return base::eback();} in eback()
40 CharT* gptr() const {return base::gptr();} in gptr()
41 CharT* egptr() const {return base::egptr();} in egptr()
Dfloat.pass.cpp20 template <class CharT>
22 : public std::basic_streambuf<CharT>
24 typedef std::basic_string<CharT> string_type;
25 typedef std::basic_streambuf<CharT> base;
34 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data()), in testbuf()
36 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
39 CharT* eback() const {return base::eback();} in eback()
40 CharT* gptr() const {return base::gptr();} in gptr()
41 CharT* egptr() const {return base::egptr();} in egptr()
Dlong.pass.cpp20 template <class CharT>
22 : public std::basic_streambuf<CharT>
24 typedef std::basic_string<CharT> string_type;
25 typedef std::basic_streambuf<CharT> base;
34 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data()), in testbuf()
36 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
39 CharT* eback() const {return base::eback();} in eback()
40 CharT* gptr() const {return base::gptr();} in gptr()
41 CharT* egptr() const {return base::egptr();} in egptr()
Dunsigned_long_long.pass.cpp20 template <class CharT>
22 : public std::basic_streambuf<CharT>
24 typedef std::basic_string<CharT> string_type;
25 typedef std::basic_streambuf<CharT> base;
34 base::setg(const_cast<CharT*>(str_.data()), in testbuf()
35 const_cast<CharT*>(str_.data()), in testbuf()
36 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf()
39 CharT* eback() const {return base::eback();} in eback()
40 CharT* gptr() const {return base::gptr();} in gptr()
41 CharT* egptr() const {return base::egptr();} in egptr()

123456789