Home
last modified time | relevance | path

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

12345678910

/external/pigweed/pw_minimal_cpp_stdlib/public/internal/
Dstring_view.h27 class basic_string_view {
44 constexpr basic_string_view() noexcept : string_(nullptr), size_(0) {} in basic_string_view() function
45 constexpr basic_string_view(const basic_string_view&) noexcept = default;
46 constexpr basic_string_view(const T* string, size_type count) in basic_string_view() function
48 constexpr basic_string_view(const T* string) in basic_string_view() function
51 constexpr basic_string_view& operator=(const basic_string_view&) noexcept =
94 constexpr void swap(basic_string_view& other) noexcept { in swap()
113 constexpr basic_string_view substr(size_type pos = 0,
115 return basic_string_view(string_ + pos, min(count, size() - pos));
119 constexpr int compare(basic_string_view view) const noexcept;
[all …]
/external/llvm-project/libcxx/include/
Dstring_view18 // 7.2, Class template basic_string_view
20 class basic_string_view;
22 // 7.9, basic_string_view non-member comparison functions
24 constexpr bool operator==(basic_string_view<charT, traits> x,
25 basic_string_view<charT, traits> y) noexcept;
27 constexpr bool operator!=(basic_string_view<charT, traits> x,
28 basic_string_view<charT, traits> y) noexcept;
30 constexpr bool operator< (basic_string_view<charT, traits> x,
31 basic_string_view<charT, traits> y) noexcept;
33 constexpr bool operator> (basic_string_view<charT, traits> x,
[all …]
/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/pigweed/pw_minimal_cpp_stdlib/public/
Dstring_view27 class basic_string_view {
44 constexpr basic_string_view() noexcept : string_(nullptr), size_(0) {}
45 constexpr basic_string_view(const basic_string_view&) noexcept = default;
46 constexpr basic_string_view(const T* string, size_type count)
48 constexpr basic_string_view(const T* string)
51 constexpr basic_string_view& operator=(const basic_string_view&) noexcept =
94 constexpr void swap(basic_string_view& other) noexcept {
113 constexpr basic_string_view substr(size_type pos = 0,
115 return basic_string_view(string_ + pos, min(count, size() - pos));
119 constexpr int compare(basic_string_view view) const noexcept;
[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()
/external/llvm-project/libcxx/test/std/strings/string.view/string.view.cons/
Dimplicit_deduction_guides.pass.cpp36 std::basic_string_view s(sin); in main()
40 using WSV = std::basic_string_view<wchar_t, constexpr_char_traits<wchar_t>>; in main()
42 std::basic_string_view w(win); in main()
47 std::basic_string_view s("abc", 2); in main()
51 std::basic_string_view w(L"abcdef", 4); in main()
56 std::basic_string_view s("abc"); in main()
60 std::basic_string_view w(L"abcdef"); in main()
Dfrom_ptr_len.pass.cpp25 typedef std::basic_string_view<CharT> SV; in test()
42 constexpr std::basic_string_view<char> sv1 ( s, 2 ); in main()
54 constexpr std::basic_string_view<wchar_t> sv1 ( s, 2 ); in main()
67 constexpr std::basic_string_view<char16_t> sv1 ( s, 2 ); in main()
79 constexpr std::basic_string_view<char32_t> sv1 ( s, 2 ); in main()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dbugprone-string-constructor.cpp19 struct basic_string_view { struct
20 basic_string_view();
21 basic_string_view(const C *, unsigned int size);
22 basic_string_view(const C *);
24 typedef basic_string_view<char> string_view;
25 typedef basic_string_view<wchar_t> wstring_view;
Dreadability-redundant-string-init.cpp24 struct basic_string_view { struct
27 basic_string_view();
28 basic_string_view(const basic_string_view &);
29 basic_string_view(const C *, size_type);
30 basic_string_view(const C *);
32 basic_string_view(It, End);
34 typedef basic_string_view<char> string_view;
35 typedef basic_string_view<wchar_t> wstring_view;
Dabseil-string-find-str-contains.cpp25 class basic_string_view { class
27 basic_string_view();
28 basic_string_view(const basic_string_view &);
29 basic_string_view(const C *);
30 ~basic_string_view();
31 int find(basic_string_view s, int pos = 0);
36 typedef basic_string_view<char> string_view;
Dbugprone-dangling-handle.cpp48 class basic_string_view;
55 operator basic_string_view() const noexcept;
62 class basic_string_view { class
64 basic_string_view(const char*);
67 typedef basic_string_view string_view;
Dperformance-faster-string-find.cpp23 struct basic_string_view { struct
33 typedef basic_string_view<char> string_view;
34 typedef basic_string_view<wchar_t> wstring_view;
/external/fmtlib/include/fmt/
Dcompile.h57 basic_string_view<Char> str;
61 FMT_CONSTEXPR value(basic_string_view<Char> s) : str(s) {} in value()
73 static FMT_CONSTEXPR format_part make_arg_name(basic_string_view<Char> name) { in make_arg_name()
76 static FMT_CONSTEXPR format_part make_text(basic_string_view<Char> text) { in make_text()
93 FMT_CONSTEXPR int on_arg_id(basic_string_view<Char>) { in on_arg_id()
119 FMT_CONSTEXPR unsigned count_parts(basic_string_view<Char> format_str) { in count_parts()
132 basic_string_view<Char> format_str_;
136 FMT_CONSTEXPR format_string_compiler(basic_string_view<Char> format_str, in format_string_compiler()
158 FMT_CONSTEXPR int on_arg_id(basic_string_view<Char> id) { in on_arg_id()
187 FMT_CONSTEXPR void compile_format_string(basic_string_view<Char> format_str, in compile_format_string()
[all …]
Dcore.h300 template <typename Char> using std_string_view = std::basic_string_view<Char>;
303 using std_string_view = std::experimental::basic_string_view<Char>;
355 template <typename Char> class basic_string_view {
364 constexpr basic_string_view() FMT_NOEXCEPT : data_(nullptr), size_(0) {} in basic_string_view() function
367 constexpr basic_string_view(const Char* s, size_t count) FMT_NOEXCEPT in basic_string_view() function
380 basic_string_view(const Char* s) in basic_string_view() function
385 FMT_CONSTEXPR basic_string_view( in basic_string_view() function
392 FMT_CONSTEXPR basic_string_view(S s) FMT_NOEXCEPT : data_(s.data()), in basic_string_view() function
412 int compare(basic_string_view other) const { in compare()
420 friend bool operator==(basic_string_view lhs, basic_string_view rhs) {
[all …]
Dostream.h122 : private formatter<basic_string_view<Char>, Char> {
125 return formatter<basic_string_view<Char>, Char>::parse(ctx);
139 basic_string_view<Char> str(buffer.data(), buffer.size());
140 return formatter<basic_string_view<Char>, Char>::format(str, ctx);
153 void vprint(std::basic_ostream<Char>& os, basic_string_view<Char> format_str,
/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()
/external/llvm-project/libcxx/test/std/strings/string.view/
Dchar.bad.fail.cpp35 std::basic_string_view<C, test_traits<C> > sv; in main()
42 std::basic_string_view<NotTrivial, test_traits<NotTrivial> > sv; in main()
49 std::basic_string_view<NotStandardLayout, test_traits<NotStandardLayout> > sv; 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/llvm-project/libcxx/test/std/strings/basic.string/string.cons/
Dstring_view.pass.cpp25 test(std::basic_string_view<charT> sv) in test()
51 test(std::basic_string_view<charT> sv, const A& a) in test()
78 typedef std::basic_string_view<char, std::char_traits<char> > SV; in main()
95 typedef std::basic_string_view<char, std::char_traits<char> > SV; in main()
/external/llvm-project/libcxx/test/std/strings/string.view/string.view.ops/
Dcompare.sv.pass.cpp22 void test1 ( std::basic_string_view<CharT> sv1, in test1()
23 std::basic_string_view<CharT> sv2, int expected ) { in test1()
30 typedef std::basic_string_view<CharT> string_view_t; in test()
111 typedef std::basic_string_view<char, constexpr_char_traits<char>> SV; in main()
Dsubstr.pass.cpp25 void test1(std::basic_string_view<CharT> sv, size_t n, size_t pos) { in test1()
26 std::basic_string_view<CharT> sv1; in test1()
50 typedef std::basic_string_view<CharT> string_view_t; in test()
/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()
/external/libcxx/test/std/strings/string.view/string.view.access/
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()

12345678910