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

  /external/compiler-rt/lib/asan/tests/
asan_str_test.cc 182 // Users may have different definitions of "strchr" and "index", so provide
189 UNUSED static void RunStrChrTest(PointerToStrChr1 StrChr) {
194 EXPECT_EQ(str, StrChr(str, 'z'));
195 EXPECT_EQ(str + 10, StrChr(str, 'q'));
196 EXPECT_EQ(NULL, StrChr(str, 'a'));
197 // StrChr argument points to not allocated memory.
198 EXPECT_DEATH(Ident(StrChr(str - 1, 'z')), LeftOOBReadMessage(1));
199 EXPECT_DEATH(Ident(StrChr(str + size, 'z')), RightOOBReadMessage(0));
202 EXPECT_DEATH(Ident(StrChr(str, 'a')), RightOOBReadMessage(0));
205 UNUSED static void RunStrChrTest(PointerToStrChr2 StrChr) {
    [all...]
  /external/v8/src/base/platform/
platform.h 230 static char* StrChr(char* str, int c);
platform-posix.cc 512 char* OS::StrChr(char* str, int c) {
513 return strchr(str, c);
677 char* period_pos = strchr(buffer, '.');
platform-win32.cc 669 char* OS::StrChr(char* str, int c) {
670 return const_cast<char*>(strchr(str, c));
    [all...]
  /external/llvm/lib/Transforms/Utils/
BuildLibCalls.cpp 58 /// EmitStrChr - Emit a call to the strchr function to the builder, for the
63 if (!TLI->has(LibFunc::strchr))
73 Constant *StrChr = M->getOrInsertFunction("strchr",
78 StrChr, {CastToCStr(Ptr, B), ConstantInt::get(I32Ty, C)}, "strchr");
79 if (const Function *F = dyn_cast<Function>(StrChr->stripPointerCasts()))
SimplifyLibCalls.cpp 286 // Verify the "strchr" function prototype.
312 if (CharC->isZero()) // strchr(p, 0) -> p + strlen(p)
313 return B.CreateGEP(B.getInt8Ty(), SrcStr, EmitStrLen(SrcStr, B, DL, TLI), "strchr");
322 if (I == StringRef::npos) // Didn't find the char. strchr returns null.
325 // strchr(s+n,c) -> gep(s+n+i,c)
326 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strchr");
347 // strrchr(s, 0) -> strchr(s, 0)
605 // strpbrk(s, "a") -> strchr(s, 'a')
742 // fold strstr(x, "y") -> strchr(x, 'y').
744 Value *StrChr = EmitStrChr(CI->getArgOperand(0), ToFindStr[0], B, TLI)
    [all...]
  /external/avahi/avahi-compat-howl/include/salt/
platform.h 169 # define sw_strchr(ARG1, ARG2) strchr(ARG1, ARG2)
206 # define sw_strchr(ARG1, ARG2) strchr(ARG1, ARG2)
224 # define sw_strchr(ARG1, ARG2) StrChr(ARG1, ARG2)
240 char * strchr(char*, int);
250 # define sw_strchr(ARG1, ARG2) strchr(ARG1, ARG2)
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
shlwapi.h 142 #define StrChr __MINGW_NAME_AW(StrChr)
    [all...]
  /external/v8/src/
compiler.cc     [all...]

Completed in 139 milliseconds