Searched refs:StringView (Results 1 – 9 of 9) sorted by relevance
/llvm-project/clang/test/Analysis/Checkers/WebKit/ |
H A D | call-args-wtf-containers.cpp | 12 class StringView { class 14 StringView(const String&); 35 unsigned long find(StringView) const; 36 unsigned long contains(StringView) const; 37 unsigned long findIgnoringASCIICase(StringView) const; 39 bool startsWith(StringView) const; 40 bool startsWithIgnoringASCIICase(StringView) const; 41 bool endsWith(StringView) const; 42 bool endsWithIgnoringASCIICase(StringView) const; 68 unsigned long find(StringView str) const { return m_impl ? m_impl->find(str) : notFound; } in find() [all …]
|
/llvm-project/third-party/unittest/googletest/src/ |
H A D | gtest-matchers.cc | 65 Matcher<const internal::StringView&>::Matcher(const std::string& s) { in Matcher() 71 Matcher<const internal::StringView&>::Matcher(const char* s) { in Matcher() 77 Matcher<const internal::StringView&>::Matcher(internal::StringView s) { in Matcher() 83 Matcher<internal::StringView>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() 87 Matcher<internal::StringView>::Matcher(const char* s) { in Matcher() 93 Matcher<internal::StringView>::Matcher(internal::StringView s) { in Matcher()
|
/llvm-project/third-party/unittest/googletest/include/gtest/ |
H A D | gtest-matchers.h | 544 class GTEST_API_ Matcher<const internal::StringView&> 545 : public internal::MatcherBase<const internal::StringView&> { 549 explicit Matcher(const MatcherInterface<const internal::StringView&>* impl) 550 : internal::MatcherBase<const internal::StringView&>(impl) {} 555 : internal::MatcherBase<const internal::StringView&>(std::forward<M>(m)) { 566 Matcher(internal::StringView s); // NOLINT 570 class GTEST_API_ Matcher<internal::StringView> 571 : public internal::MatcherBase<internal::StringView> { 575 explicit Matcher(const MatcherInterface<const internal::StringView&>* impl) 576 : internal::MatcherBase<internal::StringView>(impl) {} [all …]
|
H A D | gtest-printers.h | 279 static void PrintValue(internal::StringView value, ::std::ostream* os) { in PrintValue() 709 inline void PrintTo(internal::StringView sp, ::std::ostream* os) {
|
/llvm-project/libcxx/test/std/strings/basic.string/string.cons/ |
H A D | string_view_size_size_deduction.pass.cpp | 38 template <class StringView, class Size, class Allocator, class = void> 41 template <class StringView, class Size, class Allocator> 43 StringView, 47 …std::declval<StringView>(), std::declval<Size>(), std::declval<Size>(), std::declval<Allocator>()}…
|
H A D | string_view_deduction.pass.cpp | 34 template <class StringView, class Allocator, class = void> 37 template <class StringView, class Allocator> 38 struct CanDeduce<StringView, 40 … decltype((void)std::basic_string{std::declval<StringView>(), std::declval<Allocator>()})>
|
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
H A D | easily-swappable-parameters.rst | 265 struct StringView { 266 StringView(const char *Buf); 271 // (Note: StringView -> const char * -> String would be **two** 273 void strs(String Str, StringView SV) { /* ... */ } 275 // Diagnosed: StringView implicitly converts to and from a buffer. 276 void cStr(StringView SV, const char *Buf() { /* ... */ }
|
/llvm-project/third-party/unittest/googletest/include/gtest/internal/ |
H A D | gtest-port.h | 2420 using StringView = ::absl::string_view; 2432 using StringView = ::std::string_view;
|
/llvm-project/third-party/unittest/googlemock/include/gmock/ |
H A D | gmock-matchers.h | 904 bool MatchAndExplain(const internal::StringView& s, 972 bool MatchAndExplain(const internal::StringView& s, 1025 bool MatchAndExplain(const internal::StringView& s, 1079 bool MatchAndExplain(const internal::StringView& s,
|