Home
last modified time | relevance | path

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

12345678910>>...22

/external/llvm-project/libcxx/test/std/input.output/iostream.format/quoted.manip/
Dquoted.pass.cpp22 template <class CharT, class Traits>
23 bool is_skipws ( const std::basic_istream<CharT, Traits>& is ) { in is_skipws() argument
27 template <class CharT, class Traits = std::char_traits<CharT>>
28 void both_ways ( const CharT *p ) { in both_ways()
29 std::basic_string<CharT, Traits> str(p); in both_ways()
32 std::basic_stringstream<CharT, Traits> ss; in both_ways()
39 template <class CharT, class Traits = std::char_traits<CharT>>
40 void round_trip ( const CharT *p ) { in round_trip()
41 std::basic_stringstream<CharT, Traits> ss; in round_trip()
45 std::basic_string<CharT, Traits> s; in round_trip()
[all …]
/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/input.output/filesystems/class.path/path.member/path.native.obs/
Dstring_alloc.pass.cpp36 template <class CharT>
39 using Ptr = CharT const*; in doShortStringTest()
40 using Str = std::basic_string<CharT>; in doShortStringTest()
41 using Alloc = std::allocator<CharT>; in doShortStringTest()
46 Str s = p.string<CharT>(); in doShortStringTest()
48 Str s2 = p.string<CharT>(Alloc{}); in doShortStringTest()
51 using MAlloc = malloc_allocator<CharT>; in doShortStringTest()
54 using Traits = std::char_traits<CharT>; in doShortStringTest()
55 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doShortStringTest()
57 AStr s = p.string<CharT, Traits, MAlloc>(); in doShortStringTest()
[all …]
/external/llvm-project/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/
Dstring_alloc.pass.cpp39 template <class CharT>
42 using Ptr = CharT const*; in doShortStringTest()
43 using Str = std::basic_string<CharT>; in doShortStringTest()
44 using Alloc = std::allocator<CharT>; in doShortStringTest()
49 Str s = p.string<CharT>(); in doShortStringTest()
51 Str s2 = p.string<CharT>(Alloc{}); in doShortStringTest()
54 using MAlloc = malloc_allocator<CharT>; in doShortStringTest()
57 using Traits = std::char_traits<CharT>; in doShortStringTest()
58 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doShortStringTest()
60 AStr s = p.string<CharT, Traits, MAlloc>(); in doShortStringTest()
[all …]
/external/llvm-project/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/
Dsync.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()
[all …]
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/
Dto_bytes.pass.cpp23 template <class CharT, size_t = sizeof(CharT)>
25 template <class CharT>
26 struct TestHelper<CharT, 2> {
29 template <class CharT>
30 struct TestHelper<CharT, 4> {
34 template <class CharT>
35 void TestHelper<CharT, 2>::test() { in test()
36 static_assert((std::is_same<CharT, wchar_t>::value), ""); in test()
38 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test()
39 std::wstring ws(1, CharT(0x1005)); in test()
[all …]
Dconverted.pass.cpp20 template <class CharT, size_t = sizeof(CharT)>
22 template <class CharT>
23 struct TestHelper<CharT, 2> {
26 template <class CharT>
27 struct TestHelper<CharT, 4> {
31 template <class CharT>
32 void TestHelper<CharT, 2>::test() { in test()
33 static_assert((std::is_same<CharT, wchar_t>::value), ""); in test()
35 typedef std::codecvt_utf8<CharT> Codecvt; in test()
48 template <class CharT>
[all …]
Dfrom_bytes.pass.cpp23 template <class CharT, size_t = sizeof(CharT)>
25 template <class CharT>
26 struct TestHelper<CharT, 2> {
29 template <class CharT>
30 struct TestHelper<CharT, 4> {
34 template <class CharT>
35 void TestHelper<CharT, 2>::test() { in test()
36 static_assert((std::is_same<CharT, wchar_t>::value), ""); in test()
38 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test()
53 template <class CharT>
[all …]
/external/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/
Dsource.pass.cpp32 template <class CharT, class ...Args>
36 const CharT* TestPath = MS; in RunTestCaseImpl()
37 const CharT* TestPathEnd = StrEnd(TestPath); in RunTestCaseImpl()
43 const std::basic_string<CharT> S(TestPath); in RunTestCaseImpl()
46 assert(p.string<CharT>() == TestPath); in RunTestCaseImpl()
47 assert(p.string<CharT>() == S); in RunTestCaseImpl()
50 const std::basic_string_view<CharT> S(TestPath); in RunTestCaseImpl()
53 assert(p.string<CharT>() == TestPath); in RunTestCaseImpl()
54 assert(p.string<CharT>() == S); in RunTestCaseImpl()
60 assert(p.string<CharT>() == TestPath); in RunTestCaseImpl()
[all …]
/external/llvm-project/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/
Dsource.pass.cpp34 template <class CharT, class ...Args>
38 const CharT* TestPath = MS; in RunTestCaseImpl()
39 const CharT* TestPathEnd = StrEnd(TestPath); in RunTestCaseImpl()
45 const std::basic_string<CharT> S(TestPath); in RunTestCaseImpl()
48 assert(p.string<CharT>() == TestPath); in RunTestCaseImpl()
49 assert(p.string<CharT>() == S); in RunTestCaseImpl()
52 const std::basic_string_view<CharT> S(TestPath); in RunTestCaseImpl()
55 assert(p.string<CharT>() == TestPath); in RunTestCaseImpl()
56 assert(p.string<CharT>() == S); in RunTestCaseImpl()
62 assert(p.string<CharT>() == TestPath); in RunTestCaseImpl()
[all …]
/external/llvm-project/libcxx/test/support/
Dparse_integer.h20 template <class CharT>
21 int operator()(std::basic_string<CharT> const& str) const {
28 template <class CharT>
29 long operator()(std::basic_string<CharT> const& str) const {
36 template <class CharT>
37 long long operator()(std::basic_string<CharT> const& str) const {
44 template <class CharT>
45 unsigned int operator()(std::basic_string<CharT> const& str) const {
52 template <class CharT>
53 unsigned long operator()(std::basic_string<CharT> const& str) const {
[all …]
/external/libcxx/test/libcxx/input.output/filesystems/class.path/path.req/
Dis_pathable.pass.cpp56 template <class CharT>
58 using value_type = CharT;
59 using string_type = std::basic_string<CharT>;
60 using string_type2 = std::basic_string<CharT, std::char_traits<CharT>, min_allocator<CharT>>;
61 using string_view_type = std::basic_string_view<CharT>;
62 using string_view_type2 = std::basic_string_view<CharT, constexpr_char_traits<CharT>>;
63 using cstr_type = CharT* const;
64 using const_cstr_type = const CharT*;
65 using array_type = CharT[25];
66 using const_array_type = const CharT[25];
[all …]
/external/llvm-project/libcxx/test/libcxx/input.output/filesystems/class.path/path.req/
Dis_pathable.pass.cpp55 template <class CharT>
57 using value_type = CharT;
58 using string_type = std::basic_string<CharT>;
59 using string_type2 = std::basic_string<CharT, std::char_traits<CharT>, min_allocator<CharT>>;
60 using string_view_type = std::basic_string_view<CharT>;
61 using string_view_type2 = std::basic_string_view<CharT, constexpr_char_traits<CharT>>;
62 using cstr_type = CharT* const;
63 using const_cstr_type = const CharT*;
64 using array_type = CharT[25];
65 using const_array_type = const CharT[25];
[all …]
/external/llvm-project/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/
Dconverted.pass.cpp21 template <class CharT, size_t = sizeof(CharT)>
23 template <class CharT>
24 struct TestHelper<CharT, 2> {
27 template <class CharT>
28 struct TestHelper<CharT, 4> {
32 template <class CharT>
33 void TestHelper<CharT, 2>::test() { in test()
34 static_assert((std::is_same<CharT, wchar_t>::value), ""); in test()
36 typedef std::codecvt_utf8<CharT> Codecvt; in test()
49 template <class CharT>
[all …]
Dfrom_bytes.pass.cpp24 template <class CharT, size_t = sizeof(CharT)>
26 template <class CharT>
27 struct TestHelper<CharT, 2> {
30 template <class CharT>
31 struct TestHelper<CharT, 4> {
35 template <class CharT>
36 void TestHelper<CharT, 2>::test() { in test()
37 static_assert((std::is_same<CharT, wchar_t>::value), ""); in test()
39 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test()
54 template <class CharT>
[all …]
Dto_bytes.pass.cpp24 template <class CharT, size_t = sizeof(CharT)>
26 template <class CharT>
27 struct TestHelper<CharT, 2> {
30 template <class CharT>
31 struct TestHelper<CharT, 4> {
35 template <class CharT>
36 void TestHelper<CharT, 2>::test() { in test()
37 static_assert((std::is_same<CharT, wchar_t>::value), ""); in test()
39 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test()
54 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 …]
/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>(ch)); 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>(ch)); 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/llvm-project/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/
Dostream.pass.cpp22 template <class CharT>
24 : public std::basic_streambuf<CharT>
26 typedef std::basic_streambuf<CharT> base;
27 std::basic_string<CharT> str_;
33 std::basic_string<CharT> str() const in str()
34 {return std::basic_string<CharT>(base::pbase(), base::pptr());} in str()
44 str_.push_back(static_cast<CharT>(ch)); in overflow()
46 base::setp(const_cast<CharT*>(str_.data()), in overflow()
47 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
54 template <class CharT>
[all …]
Dstreambuf.pass.cpp21 template <class CharT>
23 : public std::basic_streambuf<CharT>
25 typedef std::basic_streambuf<CharT> base;
26 std::basic_string<CharT> str_;
31 testbuf(const std::basic_string<CharT>& str) in testbuf()
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 std::basic_string<CharT> str() const in str()
40 {return std::basic_string<CharT>(base::pbase(), base::pptr());} in str()
[all …]
Dbasic_ios.pass.cpp22 template <class CharT>
24 : public std::basic_streambuf<CharT>
26 typedef std::basic_streambuf<CharT> base;
27 std::basic_string<CharT> str_;
33 std::basic_string<CharT> str() const in str()
34 {return std::basic_string<CharT>(base::pbase(), base::pptr());} in str()
44 str_.push_back(static_cast<CharT>(ch)); in overflow()
46 base::setp(const_cast<CharT*>(str_.data()), in overflow()
47 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
54 template <class CharT>
[all …]
/external/llvm-project/libcxx/test/std/input.output/filesystems/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/filesystems/class.path/path.member/path.assign/
Dsource.pass.cpp37 template <class CharT>
41 const CharT* TestPath = MS; in RunTestCase()
42 const CharT* TestPathEnd = StrEnd(TestPath); in RunTestCase()
49 const std::basic_string<CharT> S(TestPath); in RunTestCase()
58 assert(p.string<CharT>() == TestPath); in RunTestCase()
59 assert(p.string<CharT>() == S); in RunTestCase()
62 const std::basic_string<CharT> S(TestPath); in RunTestCase()
70 assert(p.string<CharT>() == TestPath); in RunTestCase()
71 assert(p.string<CharT>() == S); in RunTestCase()
75 const std::basic_string_view<CharT> S(TestPath); in RunTestCase()
[all …]

12345678910>>...22