Searched refs:needle (Results 1 – 6 of 6) sorted by relevance
/system/logging/logd/ |
D | LogUtils.h | 47 const char* needle) { in strnstr() argument 50 const char c = *needle++; in strnstr() 51 const size_t needleLen = strlen(needle); in strnstr() 57 } while (fastcmp<memcmp>(s, needle, needleLen)); in strnstr()
|
/system/iorap/src/inode2filename/ |
D | main.cc | 125 bool StartsWith(std::string_view haystack, std::string_view needle) { in StartsWith() argument 126 return haystack.size() >= needle.size() in StartsWith() 127 && haystack.compare(0, needle.size(), needle) == 0; in StartsWith() 130 bool EndsWith(std::string_view haystack, std::string_view needle) { in EndsWith() argument 131 return haystack.size() >= needle.size() in EndsWith() 132 && haystack.compare(haystack.size() - needle.size(), haystack.npos, needle) == 0; in EndsWith() 136 std::string_view needle, in StartsWithOneOf() argument 138 return StartsWith(haystack, needle) || StartsWith(haystack, needle2); in StartsWithOneOf()
|
/system/core/bootstat/ |
D | bootstat.cpp | 600 size_t rfind(const std::string& needle) const { in rfind() 601 size_t pos = console.rfind(needle); // exact match? in rfind() 606 if (needle.length() > pos) return std::string::npos; in rfind() 607 pos -= needle.length(); in rfind() 610 if (numError(pos, needle) != std::string::npos) return pos; in rfind() 618 size_t find(const std::string& needle, size_t start = 0) const { in find() argument 620 if (needle.length() > console.length()) return std::string::npos; in find() 621 const size_t last_pos = console.length() - needle.length(); in find() 624 if (numError(pos, needle) != std::string::npos) return pos; in find() 634 bool correctForBitError(std::string& reason, const std::string& needle) { in correctForBitError() argument [all …]
|
/system/teeui/libteeui/prebuilt/localization/ |
D | ConfirmationUITranslations.cpp | 1307 static int findStr(const char* const* haystack, const char* needle) { in findStr() argument 1309 if (strcmp(needle, haystack[n]) == 0) { in findStr()
|
/system/core/libutils/ |
D | Unicode.cpp | 248 const char16_t needle = *target; in strstr16() local 249 if (needle == '\0') return (char16_t*)src; in strstr16() 257 } while (*src++ != needle); in strstr16()
|
/system/logging/logcat/tests/ |
D | logcat_test.cpp | 186 char needle[32]; in TEST() local 196 strftime(needle, sizeof(needle), "[ %Y-", ptm); in TEST() 206 if (!strncmp(buffer, needle, strlen(needle))) { in TEST()
|