Searched defs:needle (Results 1 - 25 of 44) sorted by relevance

12

/external/chromium_org/third_party/skia/tests/
H A DAnnotationTest.cpp15 /** Returns true if data (may contain null characters) contains needle (null
17 static bool ContainsString(const char* data, size_t dataSize, const char* needle) { argument
18 size_t nSize = strlen(needle);
20 if (strncmp(&data[i], needle, nSize) == 0) {
/external/iproute2/tc/
H A Dem_nbyte.c44 struct bstr *needle = args; local
57 if (needle->len <= 0)
58 return PARSE_ERR(args, "nbyte: needle length is 0");
95 nb.len = needle->len;
101 addraw_l(n, MAX_MSG, needle->data, needle->len);
112 __u8 *needle; local
124 needle = data + sizeof(*nb);
127 fprintf(fd, "%02x ", needle[i]);
131 fprintf(fd, "%c", isprint(needle[
[all...]
/external/skia/tests/
H A DAnnotationTest.cpp15 /** Returns true if data (may contain null characters) contains needle (null
17 static bool ContainsString(const char* data, size_t dataSize, const char* needle) { argument
18 size_t nSize = strlen(needle);
20 if (strncmp(&data[i], needle, nSize) == 0) {
/external/chromium_org/sync/syncable/
H A Dsyncable_delete_journal.cc121 EntryKernel needle; local
124 needle.put(ID, (*i)->ref(ID));
125 if (delete_journals_.find(&needle) == delete_journals_.end()) {
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_string.h142 util_strstr(const char *haystack, const char *needle) argument
145 size_t len = strlen(needle);
147 for (; (p = util_strchr(p, *needle)) != 0; p++) {
148 if (util_strncmp(p, needle, len) == 0) {
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_string.h142 util_strstr(const char *haystack, const char *needle) argument
145 size_t len = strlen(needle);
147 for (; (p = util_strchr(p, *needle)) != 0; p++) {
148 if (util_strncmp(p, needle, len) == 0) {
/external/chromium_org/chrome/browser/spellchecker/
H A Dfeedback_sender_unittest.cc47 // Returns the number of times that |needle| appears in |haystack| without
49 int CountOccurences(const std::string& haystack, const std::string& needle) { argument
51 for (size_t pos = haystack.find(needle);
53 pos = haystack.find(needle, pos + needle.length())) {
/external/chromium_org/third_party/mesa/src/src/glx/tests/
H A Dclientinfo_unittest.cpp682 const char *const needle = "GLX_ARB_create_context"; local
683 const unsigned len = strlen(needle);
686 char *match = strstr(haystack, needle);
708 const char *const needle = "GLX_ARB_create_context_profile"; local
709 const unsigned len = strlen(needle);
712 char *match = strstr(haystack, needle);
/external/chromium_org/third_party/webrtc/base/
H A Dstringutils.h93 inline const wchar_t* strstr(const wchar_t* haystack, const wchar_t* needle) { argument
94 return wcsstr(haystack, needle);
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_libc.cc192 char *internal_strstr(const char *haystack, const char *needle) { argument
195 uptr len2 = internal_strlen(needle);
198 if (internal_memcmp(haystack + pos, needle, len2) == 0)
/external/mesa3d/src/glx/tests/
H A Dclientinfo_unittest.cpp682 const char *const needle = "GLX_ARB_create_context"; local
683 const unsigned len = strlen(needle);
686 char *match = strstr(haystack, needle);
708 const char *const needle = "GLX_ARB_create_context_profile"; local
709 const unsigned len = strlen(needle);
712 char *match = strstr(haystack, needle);
/external/chromium_org/third_party/re2/re2/
H A Dnfa.cc394 // Returns whether haystack contains needle's memory.
395 static bool StringPieceContains(const StringPiece haystack, const StringPiece needle) { argument
396 return haystack.begin() <= needle.begin() &&
397 haystack.end() >= needle.end();
/external/libnl/lib/
H A Dcache.c397 * @arg needle Object to look for.
400 * identifiers as the needle.
406 struct nl_object *needle)
411 if (nl_object_identical(obj, needle)) {
405 nl_cache_search(struct nl_cache *cache, struct nl_object *needle) argument
/external/regex-re2/re2/
H A Dnfa.cc394 // Returns whether haystack contains needle's memory.
395 static bool StringPieceContains(const StringPiece haystack, const StringPiece needle) { argument
396 return haystack.begin() <= needle.begin() &&
397 haystack.end() >= needle.end();
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dos_none.c226 char * os_strstr(const char *haystack, const char *needle) argument
H A Dos_internal.c480 char * os_strstr(const char *haystack, const char *needle) argument
482 size_t len = os_strlen(needle);
484 if (os_strncmp(haystack, needle, len) == 0)
/external/wpa_supplicant_8/src/utils/
H A Dos_none.c226 char * os_strstr(const char *haystack, const char *needle) argument
H A Dos_internal.c480 char * os_strstr(const char *haystack, const char *needle) argument
482 size_t len = os_strlen(needle);
484 if (os_strncmp(haystack, needle, len) == 0)
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dos_none.c226 char * os_strstr(const char *haystack, const char *needle) argument
/external/aac/libSYS/src/
H A DgenericStds.cpp192 const char *FDKstrstr(const char *haystack, const char *needle) { return strstr(haystack, needle); } argument
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DDateMath.cpp465 char needle[4]; local
469 needle[i] = static_cast<char>(toASCIILower(*monthStr++));
471 needle[3] = '\0';
473 const char *str = strstr(haystack, needle);
/external/chromium_org/third_party/skia/experimental/PdfViewer/pdfparser/native/
H A DSkPdfNativeTokenizer.cpp22 // needle will not contain 0s.
23 static char* strrstrk(char* hayStart, char* hayEnd, const char* needle) { argument
24 int needleLen = strlen(needle);
26 strncmp(hayStart, needle, needleLen) == 0) {
36 strncmp(hayStart, needle, needleLen) == 0) {
/external/libsepol/src/
H A Dconditional.c169 /* Find a conditional (the needle) within a list of existing ones (the
175 cond_node_t * needle, cond_node_t * haystack,
179 if (cond_expr_equal(needle, haystack)) {
187 return cond_node_create(p, needle);
174 cond_node_find(policydb_t * p, cond_node_t * needle, cond_node_t * haystack, int *was_created) argument
/external/qemu/distrib/sdl-1.2.15/src/stdlib/
H A DSDL_string.c433 char *SDL_strstr(const char *haystack, const char *needle) argument
435 size_t length = SDL_strlen(needle);
437 if ( SDL_strncmp(haystack, needle, length) == 0 ) {
/external/skia/experimental/PdfViewer/pdfparser/native/
H A DSkPdfNativeTokenizer.cpp22 // needle will not contain 0s.
23 static char* strrstrk(char* hayStart, char* hayEnd, const char* needle) { argument
24 int needleLen = strlen(needle);
26 strncmp(hayStart, needle, needleLen) == 0) {
36 strncmp(hayStart, needle, needleLen) == 0) {

Completed in 540 milliseconds

12