Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 25 of 147) sorted by relevance

123456

/external/libcxx/test/std/strings/string.view/string.view.iterators/
Dbegin.pass.cpp45 typedef std::string_view string_view; in main() typedef
50 test(string_view ()); in main()
54 test(string_view ( "123")); in main()
63 constexpr string_view sv { "123", 3 }; in main()
Drbegin.pass.cpp46 typedef std::string_view string_view; in main() typedef
51 test(string_view ()); in main()
55 test(string_view ( "123")); in main()
64 constexpr string_view sv { "123", 3 }; in main()
Drend.pass.cpp54 typedef std::string_view string_view; in main() typedef
59 test(string_view ()); in main()
63 test(string_view ( "123")); in main()
72 constexpr string_view sv { "123", 3 }; in main()
Dend.pass.cpp54 typedef std::string_view string_view; in main() typedef
59 test(string_view ()); in main()
63 test(string_view ( "123")); in main()
72 constexpr string_view sv { "123", 3 }; in main()
/external/libcxx/test/std/experimental/string.view/string.view.iterators/
Dbegin.pass.cpp45 typedef std::experimental::string_view string_view; in main() typedef
50 test(string_view ()); in main()
54 test(string_view ( "123")); in main()
63 constexpr string_view sv { "123", 3 }; in main()
Dend.pass.cpp54 typedef std::experimental::string_view string_view; in main() typedef
59 test(string_view ()); in main()
63 test(string_view ( "123")); in main()
72 constexpr string_view sv { "123", 3 }; in main()
Drbegin.pass.cpp46 typedef std::experimental::string_view string_view; in main() typedef
51 test(string_view ()); in main()
55 test(string_view ( "123")); in main()
Drend.pass.cpp54 typedef std::experimental::string_view string_view; in main() typedef
59 test(string_view ()); in main()
63 test(string_view ( "123")); in main()
/external/libcxx/test/std/strings/string.view/string.view.cons/
Dimplicit_deduction_guides.pass.cpp36 const std::string_view sin("abc"); in main()
38 ASSERT_SAME_TYPE(decltype(s), std::string_view); in main()
49 ASSERT_SAME_TYPE(decltype(s), std::string_view); in main()
58 ASSERT_SAME_TYPE(decltype(s), std::string_view); in main()
Ddefault.pass.cpp38 typedef std::string_view string_view; in main() typedef
43 test<string_view> (); in main()
Dfrom_string1.fail.cpp23 using string_view = std::basic_string_view<char>; in main() typedef
28 string_view sv1 ( s ); in main()
Dfrom_string2.fail.cpp23 using string_view = std::basic_string_view<char, dummy_char_traits>; in main() typedef
28 string_view sv1 ( s ); in main()
/external/libcxx/test/std/strings/string.view/string_view.literals/
Dliteral.pass.cpp23 static_assert ( std::is_same<decltype( "Hi"sv), std::string_view>::value, "" ); in main()
24 static_assert ( std::is_same<decltype( u8"Hi"sv), std::string_view>::value, "" ); in main()
29 std::string_view foo; in main()
46 foo = "ABC"sv; assert( foo == "ABC"); assert( foo == std::string_view ( "ABC")); in main()
47 foo = u8"ABC"sv; assert( foo == u8"ABC"); assert( foo == std::string_view (u8"ABC")); in main()
Dliteral1.fail.cpp20 using std::string_view; in main()
22 string_view foo = ""sv; // should fail w/conversion operator not found in main()
/external/libcxx/include/
Dstring_view2 //===------------------------ string_view ---------------------------------===//
15 string_view synopsis
51 typedef basic_string_view<char> string_view;
154 template <> struct hash<string_view>;
217 // _LIBCPP_ASSERT(__len == 0 || __s != nullptr, "string_view::string_view(_CharT *, size_t)…
271 ? (__throw_out_of_range("string_view::at"), __data[0])
278 return _LIBCPP_ASSERT(!empty(), "string_view::front(): string is empty"), __data[0];
284 return _LIBCPP_ASSERT(!empty(), "string_view::back(): string is empty"), __data[__size-1];
329 __throw_out_of_range("string_view::copy");
339 ? (__throw_out_of_range("string_view::substr"), basic_string_view())
[all …]
/external/libcxx/test/std/experimental/string.view/string.view.cons/
Ddefault.pass.cpp38 typedef std::experimental::string_view string_view; in main() typedef
43 test<string_view> (); in main()
/external/libcxx/include/experimental/
Dstring_view2 //===------------------------ string_view ---------------------------------===//
15 string_view synopsis
53 typedef basic_string_view<char> string_view;
167 template <> struct hash<experimental::string_view>;
231 // _LIBCPP_ASSERT(__len == 0 || __s != nullptr, "string_view::string_view(_CharT *, siz…
284 ? (__throw_out_of_range("string_view::at"), __data[0])
291 return _LIBCPP_ASSERT(!empty(), "string_view::front(): string is empty"), __data[0];
297 … return _LIBCPP_ASSERT(!empty(), "string_view::back(): string is empty"), __data[__size-1];
355 __throw_out_of_range("string_view::copy");
365 // __throw_out_of_range("string_view::substr");
[all …]
/external/libcxx/test/std/strings/string.view/string.view.io/
Dstream_insert.pass.cpp21 using std::string_view;
28 string_view sv("some text"); in main()
36 string_view sv(s); in main()
/external/libcxx/test/std/experimental/string.view/string.view.io/
Dstream_insert.pass.cpp21 using std::experimental::string_view;
28 string_view sv("some text"); in main()
36 string_view sv(s); in main()
/external/libcxx/test/std/experimental/string.view/string.view.ops/
Dsubstr.pass.cpp96 constexpr std::experimental::string_view sv1 { "ABCDE", 5 }; in main()
99 constexpr std::experimental::string_view sv2 = sv1.substr ( 0, 3 ); in main()
107 constexpr std::experimental::string_view sv2 = sv1.substr ( 3, 0 ); in main()
112 constexpr std::experimental::string_view sv2 = sv1.substr ( 3, 3 ); in main()
/external/libcxx/test/std/strings/string.view/string.view.ops/
Dsubstr.pass.cpp98 constexpr std::string_view sv1 { "ABCDE", 5 }; in main()
101 constexpr std::string_view sv2 = sv1.substr ( 0, 3 ); in main()
109 constexpr std::string_view sv2 = sv1.substr ( 3, 0 ); in main()
114 constexpr std::string_view sv2 = sv1.substr ( 3, 3 ); in main()
/external/libcxx/test/std/strings/string.view/string.view.capacity/
Dcapacity.pass.cpp58 typedef std::string_view string_view; in main() typedef
63 test1<string_view> (); in main()
/external/libcxx/test/std/experimental/string.view/string.view.capacity/
Dcapacity.pass.cpp58 typedef std::experimental::string_view string_view; in main() typedef
63 test1<string_view> (); in main()
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_append/
DT_size_size.pass.cpp79 typedef std::string_view SV; in main()
131 typedef std::string_view SV; in main()
143 std::string_view sv = "EFGH"; in main()
177 std::string_view sv = s; in main()
192 std::string_view sv = s; in main()
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_assign/
DT_size_size.pass.cpp78 typedef std::string_view SV; in main()
130 typedef std::string_view SV; in main()
142 std::string_view sv = "EFGH"; in main()
176 std::string_view sv = s; in main()
187 std::string_view sv = s; in main()

123456