Home
last modified time | relevance | path

Searched refs:StrView (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/
H A Dctor.range.pass.cpp75 struct StrView : std::ranges::view_base { struct
77 constexpr explicit StrView() = default; argument
78 constexpr StrView(const char* ptr) : buffer_(ptr) {} in StrView() function
83 constexpr StrView(R&& r) : buffer_(r.begin(), r.end()) {} in StrView() function
86 constexpr bool operator==(const StrView& rhs) const { return buffer_ == rhs.buffer_; } in operator ==() argument
88 static_assert( std::ranges::random_access_range<StrView>);
89 static_assert( std::ranges::view<StrView>);
90 static_assert( std::is_copy_constructible_v<StrView>);
94 using V = std::ranges::lazy_split_view<StrView, StrView>; in test()
105 StrView input("abc def"); in test()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/
H A Dpath.concat.pass.cpp92 using StrView = std::basic_string_view<CharT>; in doConcatSourceAllocTest() typedef
112 StrView RHS(R); in doConcatSourceAllocTest()
184 using StrView = std::basic_string_view<CharT>; in doConcatSourceTest() typedef
207 StrView RHS(R); in doConcatSourceTest()
214 StrView RHS(R); in doConcatSourceTest()
H A Dpath.append.pass.cpp130 using StrView = std::basic_string_view<CharT>; in doAppendSourceAllocTest() typedef
156 StrView RHS(R); in doAppendSourceAllocTest()
240 using StrView = std::basic_string_view<CharT>; in doAppendSourceTest() typedef
263 StrView RHS(R); in doAppendSourceTest()
270 StrView RHS(R); in doAppendSourceTest()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dfaster-string-find.cpp94 std::string_view StrView; in StringFind() local
95 StrView.find("n"); in StringFind()