HomeSort by relevance Sort by last modified time
    Searched refs:StrChr (Results 1 - 8 of 8) sorted by null

  /external/compiler-rt/lib/asan/tests/
asan_str_test.cc 166 // Users may have different definitions of "strchr" and "index", so provide
173 USED static void RunStrChrTest(PointerToStrChr1 StrChr) {
178 EXPECT_EQ(str, StrChr(str, 'z'));
179 EXPECT_EQ(str + 10, StrChr(str, 'q'));
180 EXPECT_EQ(NULL, StrChr(str, 'a'));
181 // StrChr argument points to not allocated memory.
182 EXPECT_DEATH(Ident(StrChr(str - 1, 'z')), LeftOOBReadMessage(1));
183 EXPECT_DEATH(Ident(StrChr(str + size, 'z')), RightOOBReadMessage(0));
186 EXPECT_DEATH(Ident(StrChr(str, 'a')), RightOOBReadMessage(0));
189 USED static void RunStrChrTest(PointerToStrChr2 StrChr) {
    [all...]
  /external/v8/src/
platform.h 258 static char* StrChr(char* str, int c);
platform-posix.cc 343 char* OS::StrChr(char* str, int c) {
344 return strchr(str, c);
d8.cc     [all...]
platform-win32.cc 805 char* OS::StrChr(char* str, int c) {
806 return const_cast<char*>(strchr(str, c));
    [all...]
hydrogen.cc     [all...]
  /external/llvm/lib/Transforms/Utils/
BuildLibCalls.cpp 91 /// EmitStrChr - Emit a call to the strchr function to the builder, for the
96 if (!TLI->has(LibFunc::strchr))
107 Constant *StrChr = M->getOrInsertFunction("strchr",
111 CallInst *CI = B.CreateCall2(StrChr, CastToCStr(Ptr, B),
112 ConstantInt::get(I32Ty, C), "strchr");
113 if (const Function *F = dyn_cast<Function>(StrChr->stripPointerCasts()))
SimplifyLibCalls.cpp 446 // Verify the "strchr" function prototype.
482 if (I == StringRef::npos) // Didn't find the char. strchr returns null.
485 // strchr(s+n,c) -> gep(s+n+i,c)
486 return B.CreateGEP(SrcStr, B.getInt64(I), "strchr");
509 // strrchr(s, 0) -> strchr(s, 0)
783 // strpbrk(s, "a") -> strchr(s, 'a')
    [all...]

Completed in 128 milliseconds