Home
last modified time | relevance | path

Searched refs:basic_string_view (Results 1 – 25 of 112) sorted by relevance

12345

/external/libcxx/include/
Dstring_view19 // 7.2, Class template basic_string_view
21 class basic_string_view;
23 // 7.9, basic_string_view non-member comparison functions
25 constexpr bool operator==(basic_string_view<charT, traits> x,
26 basic_string_view<charT, traits> y) noexcept;
28 constexpr bool operator!=(basic_string_view<charT, traits> x,
29 basic_string_view<charT, traits> y) noexcept;
31 constexpr bool operator< (basic_string_view<charT, traits> x,
32 basic_string_view<charT, traits> y) noexcept;
34 constexpr bool operator> (basic_string_view<charT, traits> x,
[all …]
/external/libcxx/test/std/strings/string.view/string.view.cons/
Dimplicit_deduction_guides.pass.cpp37 std::basic_string_view s(sin); in main()
41 using WSV = std::basic_string_view<wchar_t, constexpr_char_traits<wchar_t>>; in main()
43 std::basic_string_view w(win); in main()
48 std::basic_string_view s("abc", 2); in main()
52 std::basic_string_view w(L"abcdef", 4); in main()
57 std::basic_string_view s("abc"); in main()
61 std::basic_string_view w(L"abcdef"); in main()
Dfrom_ptr_len.pass.cpp26 typedef std::basic_string_view<CharT> SV; in test()
43 constexpr std::basic_string_view<char> sv1 ( s, 2 ); in main()
55 constexpr std::basic_string_view<wchar_t> sv1 ( s, 2 ); in main()
68 constexpr std::basic_string_view<char16_t> sv1 ( s, 2 ); in main()
80 constexpr std::basic_string_view<char32_t> sv1 ( s, 2 ); in main()
Dfrom_literal.pass.cpp33 typedef std::basic_string_view<CharT> SV; in test()
65 constexpr std::basic_string_view<char, constexpr_char_traits<char>> sv1 ( "ABCDE" ); in main()
/external/fmtlib/include/fmt/
Dcore.h241 template <typename Char> using std_string_view = std::basic_string_view<Char>;
244 using std_string_view = std::experimental::basic_string_view<Char>;
281 template <typename Char> class basic_string_view {
290 FMT_CONSTEXPR basic_string_view() FMT_NOEXCEPT : data_(nullptr), size_(0) {} in basic_string_view() function
293 FMT_CONSTEXPR basic_string_view(const Char* s, size_t count) FMT_NOEXCEPT in basic_string_view() function
303 basic_string_view(const Char* s) in basic_string_view() function
308 FMT_CONSTEXPR basic_string_view( in basic_string_view() function
316 FMT_CONSTEXPR basic_string_view(S s) FMT_NOEXCEPT : data_(s.data()), in basic_string_view() function
336 int compare(basic_string_view other) const { in compare()
344 friend bool operator==(basic_string_view lhs, basic_string_view rhs) {
[all …]
Dcompile.h30 basic_string_view<Char> str;
34 FMT_CONSTEXPR value(basic_string_view<Char> s) : str(s) {} in value()
46 static FMT_CONSTEXPR format_part make_arg_name(basic_string_view<Char> name) { in make_arg_name()
49 static FMT_CONSTEXPR format_part make_text(basic_string_view<Char> text) { in make_text()
66 FMT_CONSTEXPR void on_arg_id(basic_string_view<Char>) { ++num_parts; } in on_arg_id()
90 FMT_CONSTEXPR unsigned count_parts(basic_string_view<Char> format_str) { in count_parts()
103 basic_string_view<Char> format_str_;
107 FMT_CONSTEXPR format_string_compiler(basic_string_view<Char> format_str, in format_string_compiler()
127 FMT_CONSTEXPR void on_arg_id(basic_string_view<Char> id) { in on_arg_id()
155 FMT_CONSTEXPR void compile_format_string(basic_string_view<Char> format_str, in compile_format_string()
[all …]
Dostream.h105 : formatter<basic_string_view<Char>, Char> {
110 basic_string_view<Char> str(buffer.data(), buffer.size());
111 return formatter<basic_string_view<Char>, Char>::format(str, ctx);
117 void vprint(std::basic_ostream<Char>& os, basic_string_view<Char> format_str,
Dformat.h463 inline size_t count_code_points(basic_string_view<Char> s) {
468 inline size_t count_code_points(basic_string_view<char8_t> s) {
478 inline size_t code_point_index(basic_string_view<Char> s, size_t n) {
484 inline size_t code_point_index(basic_string_view<char8_t> s, size_t n) {
546 class u8string_view : public basic_string_view<char8_t> {
549 : basic_string_view<char8_t>(reinterpret_cast<const char8_t*>(s)) {}
551 : basic_string_view<char8_t>(reinterpret_cast<const char8_t*>(s), count) {
1600 basic_string_view<char_type> s(&sep, sep_size);
1653 return count_code_points(basic_string_view<Char>(s, size_));
1806 void write(basic_string_view<Char> s, const format_specs& specs = {}) {
[all …]
/external/libcxx/test/std/strings/string.view/
Dchar.bad.fail.cpp36 std::basic_string_view<C, test_traits<C> > sv; in main()
43 std::basic_string_view<NotTrivial, test_traits<NotTrivial> > sv; in main()
50 std::basic_string_view<NotStandardLayout, test_traits<NotStandardLayout> > sv; in main()
Dtypes.pass.cpp44 typedef std::basic_string_view<typename Traits::char_type, Traits> S; in test()
78 static_assert((std::is_same<std::basic_string_view<char>::traits_type, in main()
/external/libcxx/test/std/strings/basic.string/string.cons/
Dstring_view.pass.cpp26 test(std::basic_string_view<charT> sv) in test()
52 test(std::basic_string_view<charT> sv, const A& a) in test()
79 typedef std::basic_string_view<char, std::char_traits<char> > SV; in main()
96 typedef std::basic_string_view<char, std::char_traits<char> > SV; in main()
/external/libcxx/test/std/strings/string.view/string.view.ops/
Dcompare.sv.pass.cpp23 void test1 ( std::basic_string_view<CharT> sv1, in test1()
24 std::basic_string_view<CharT> sv2, int expected ) { in test1()
31 typedef std::basic_string_view<CharT> string_view_t; in test()
112 typedef std::basic_string_view<char, constexpr_char_traits<char>> SV; in main()
Dsubstr.pass.cpp26 void test1(std::basic_string_view<CharT> sv, size_t n, size_t pos) { in test1()
27 std::basic_string_view<CharT> sv1; in test1()
51 typedef std::basic_string_view<CharT> string_view_t; in test()
Dcompare.pointer.pass.cpp23 void test1 ( std::basic_string_view<CharT> sv1, const CharT *s, int expected ) { in test1()
31 typedef std::basic_string_view<CharT> string_view_t; in test()
118 typedef std::basic_string_view<char, constexpr_char_traits<char>> SV; in main()
Dcompare.size_size_sv.pass.cpp24 void test1 ( std::basic_string_view<CharT> sv1, size_t pos1, size_t n1, in test1()
25 std::basic_string_view<CharT> sv2, int expected ) { in test1()
43 typedef std::basic_string_view<CharT> string_view_t; in test()
395 typedef std::basic_string_view<char, constexpr_char_traits<char>> SV; in main()
/external/libcxx/test/std/strings/string.view/string.view.access/
Ddata.pass.cpp22 std::basic_string_view<CharT> sv ( s, len ); in test()
49 constexpr std::basic_string_view<char> sv( s, 2 ); in main()
Dfront.pass.cpp22 std::basic_string_view<CharT> sv ( s, len ); in test()
45 constexpr std::basic_string_view<char> sv ( "ABC", 2 ); in main()
Dindex.pass.cpp22 std::basic_string_view<CharT> sv ( s, len ); in test()
47 constexpr std::basic_string_view<char> sv ( "ABC", 2 ); in main()
Dback.pass.cpp22 std::basic_string_view<CharT> sv ( s, len ); in test()
45 constexpr std::basic_string_view<char> sv ( "ABC", 2 ); in main()
Dat.pass.cpp27 std::basic_string_view<CharT> sv ( s, len ); in test()
57 constexpr std::basic_string_view<char> sv ( "ABC", 2 ); in main()
/external/libcxx/test/std/strings/string.view/string.view.modifiers/
Dswap.pass.cpp22 typedef std::basic_string_view<CharT> SV; in test()
41 typedef std::basic_string_view<char> SV; in test_ce()
Dremove_suffix.pass.cpp22 typedef std::basic_string_view<CharT> SV; in test()
44 typedef std::basic_string_view<char> SV; in test_ce()
Dremove_prefix.pass.cpp23 typedef std::basic_string_view<CharT> SV; in test()
44 typedef std::basic_string_view<char> SV; in test_ce()
/external/fmtlib/test/
Dformat135 using const_iterator = typename basic_string_view<charT>::const_iterator;
147 explicit constexpr basic_format_parse_context(basic_string_view<charT> fmt,
169 basic_format_parse_context(basic_string_view<charT> fmt,
225 basic_format_arg<basic_format_context> arg(fmt::basic_string_view<charT>) const {
278 const char_type*, basic_string_view<char_type>,
297 basic_string_view<char_type, traits> s) noexcept; // exposition only
372 /* explicit */ basic_format_arg<Context>::basic_format_arg(basic_string_view<char_type, traits> s) …
379 : value(basic_string_view<char_type>(s.data(), s.size())) {}
556 if (std::is_same_v<T, basic_string_view<char_type>>)
587 format_handler(range r, basic_string_view<Char> str,
[all …]
/external/libcxx/test/libcxx/input.output/filesystems/class.path/path.req/
Dis_pathable.pass.cpp61 using string_view_type = std::basic_string_view<CharT>;
62 using string_view_type2 = std::basic_string_view<CharT, constexpr_char_traits<CharT>>;

12345