Searched refs:Needle (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | UnicodeNameToCodepoint.cpp | 120 static bool startsWith(StringRef Name, StringRef Needle, bool Strict, in startsWith() argument 126 if (!Name.starts_with(Needle)) in startsWith() 128 Consummed = Needle.size(); in startsWith() 131 if (Needle.empty()) in startsWith() 135 auto NeedlePos = Needle.begin(); in startsWith() 138 char PreviousCharInNeedle = *Needle.begin(); in startsWith() 161 IgnoreSpaces(NeedlePos, Needle.end(), PreviousCharInNeedle, IsPrefix); in startsWith() 162 if (NeedlePos == Needle.end()) in startsWith() 172 if (NeedlePos != Needle.end()) { in startsWith() 175 return NeedlePos == Needle in startsWith() [all...] |
H A D | StringRef.cpp | 137 const char *Needle = Str.data(); in find() local 144 const char *Ptr = (const char *)::memchr(Start, Needle[0], Size); in find() 155 if (std::memcmp(Start, Needle, 2) == 0) in find() 165 if (std::memcmp(Start, Needle, N) == 0) in find() 180 if (LLVM_UNLIKELY(Last == (uint8_t)Needle[N - 1])) in find() 181 if (std::memcmp(Start, Needle, N - 1) == 0) in find()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | AnalysisBasedWarnings.cpp | 756 const DeclRefExpr *Needle; member in __anon9476153b0711::ContainsReference 761 ContainsReference(ASTContext &Context, const DeclRefExpr *Needle) in ContainsReference() argument 762 : Inherited(Context), FoundReference(false), Needle(Needle) {} in ContainsReference() 773 if (E == Needle) in VisitDeclRefExpr()
|