Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 25 of 70) sorted by relevance

123

/external/iproute2/tc/
Dem_nbyte.c44 struct bstr *needle = args; in nbyte_parse_eopt() local
57 if (needle->len <= 0) in nbyte_parse_eopt()
95 nb.len = needle->len; in nbyte_parse_eopt()
101 addraw_l(n, MAX_MSG, needle->data, needle->len); in nbyte_parse_eopt()
112 __u8 *needle; in nbyte_print_eopt() local
124 needle = data + sizeof(*nb); in nbyte_print_eopt()
127 fprintf(fd, "%02x ", needle[i]); in nbyte_print_eopt()
131 fprintf(fd, "%c", isprint(needle[i]) ? needle[i] : '.'); in nbyte_print_eopt()
/external/google-breakpad/src/common/linux/
Dlinux_libc_support.cc123 const char* my_strchr(const char* haystack, char needle) { in my_strchr() argument
124 while (*haystack && *haystack != needle) in my_strchr()
126 if (*haystack == needle) in my_strchr()
131 const char* my_strrchr(const char* haystack, char needle) { in my_strrchr() argument
134 if (*haystack == needle) in my_strrchr()
141 void* my_memchr(const void* src, int needle, size_t src_len) { in my_memchr() argument
145 if (*p == needle) in my_memchr()
Dlinux_libc_support.h66 extern const char* my_strchr(const char* haystack, char needle);
68 extern const char* my_strrchr(const char* haystack, char needle);
/external/libbrillo/brillo/
Dsecure_blob_unittest.cc25 const brillo::Blob& needle) { in FindBlobInBlob() argument
27 haystack.begin(), haystack.end(), needle.begin(), needle.end()); in FindBlobInBlob()
32 const brillo::Blob& needle) { in FindBlobIndexInBlob() argument
34 haystack.begin(), haystack.end(), needle.begin(), needle.end()); in FindBlobIndexInBlob()
/external/guava/guava-tests/benchmark/com/google/common/base/
DCharMatcherBenchmark.java167 int needle = random.nextInt(sum); in nextCodePoint() local
176 if (needle == cv) { in nextCodePoint()
178 } else if ((lv <= needle) && (needle < cv)) { in nextCodePoint()
180 } else if (needle == rv) { in nextCodePoint()
182 } else if (needle < cv) { in nextCodePoint()
187 } else if (needle == cv) { in nextCodePoint()
/external/bison/lib/
Dstring.in.h567 _GL_FUNCDECL_RPL (strstr, char *, (const char *haystack, const char *needle)
570 _GL_CXXALIAS_RPL (strstr, char *, (const char *haystack, const char *needle));
576 char *, (const char *haystack, const char *needle),
577 const char *, (const char *haystack, const char *needle));
581 _GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle));
583 (const char *haystack, const char *needle));
609 (const char *haystack, const char *needle)
613 (const char *haystack, const char *needle));
617 (const char *haystack, const char *needle)
625 char *, (const char *haystack, const char *needle),
[all …]
/external/bison/linux-lib/
Dstring.h879 _GL_FUNCDECL_RPL (strstr, char *, (const char *haystack, const char *needle)
882 _GL_CXXALIAS_RPL (strstr, char *, (const char *haystack, const char *needle));
888 char *, (const char *haystack, const char *needle),
889 const char *, (const char *haystack, const char *needle));
893 _GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle));
895 (const char *haystack, const char *needle));
921 (const char *haystack, const char *needle)
925 (const char *haystack, const char *needle));
929 (const char *haystack, const char *needle)
937 char *, (const char *haystack, const char *needle),
[all …]
/external/bison/darwin-lib/
Dstring.h879 _GL_FUNCDECL_RPL (strstr, char *, (const char *haystack, const char *needle)
882 _GL_CXXALIAS_RPL (strstr, char *, (const char *haystack, const char *needle));
888 char *, (const char *haystack, const char *needle),
889 const char *, (const char *haystack, const char *needle));
893 _GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle));
895 (const char *haystack, const char *needle));
921 (const char *haystack, const char *needle)
925 (const char *haystack, const char *needle));
929 (const char *haystack, const char *needle)
937 char *, (const char *haystack, const char *needle),
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_string.h142 util_strstr(const char *haystack, const char *needle) in util_strstr() argument
145 size_t len = strlen(needle); in util_strstr()
147 for (; (p = util_strchr(p, *needle)) != 0; p++) { in util_strstr()
148 if (util_strncmp(p, needle, len) == 0) { in util_strstr()
/external/skia/tests/
DAnnotationTest.cpp17 static bool ContainsString(const char* data, size_t dataSize, const char* needle) { in ContainsString() argument
18 size_t nSize = strlen(needle); in ContainsString()
20 if (strncmp(&data[i], needle, nSize) == 0) { in ContainsString()
/external/curl/lib/vtls/
Dvtls.c95 struct ssl_config_data* needle) in Curl_ssl_config_matches() argument
97 if((data->version == needle->version) && in Curl_ssl_config_matches()
98 (data->verifypeer == needle->verifypeer) && in Curl_ssl_config_matches()
99 (data->verifyhost == needle->verifyhost) && in Curl_ssl_config_matches()
100 safe_strequal(data->CApath, needle->CApath) && in Curl_ssl_config_matches()
101 safe_strequal(data->CAfile, needle->CAfile) && in Curl_ssl_config_matches()
102 safe_strequal(data->clientcert, needle->clientcert) && in Curl_ssl_config_matches()
103 safe_strequal(data->random_file, needle->random_file) && in Curl_ssl_config_matches()
104 safe_strequal(data->egdsocket, needle->egdsocket) && in Curl_ssl_config_matches()
105 safe_strequal(data->cipher_list, needle->cipher_list)) in Curl_ssl_config_matches()
/external/mesa3d/src/glx/tests/
Dclientinfo_unittest.cpp682 const char *const needle = "GLX_ARB_create_context"; in TEST_F() local
683 const unsigned len = strlen(needle); in TEST_F()
686 char *match = strstr(haystack, needle); in TEST_F()
708 const char *const needle = "GLX_ARB_create_context_profile"; in TEST_F() local
709 const unsigned len = strlen(needle); in TEST_F()
712 char *match = strstr(haystack, needle); in TEST_F()
/external/v8/gypfiles/
Dgyp_v865 needle = 'output_dir='
67 if item.startswith(needle):
68 return item[len(needle):]
/external/curl/lib/
Durl.c3175 struct connectdata *needle, in ConnectionExists() argument
3183 bool canPipeline = IsPipeliningPossible(data, needle); in ConnectionExists()
3189 (needle->handler->protocol & PROTO_FAMILY_HTTP)); in ConnectionExists()
3190 bool wantProxyNTLMhttp = (needle->bits.proxy_user_passwd && in ConnectionExists()
3193 (needle->handler->protocol & PROTO_FAMILY_HTTP))); in ConnectionExists()
3200 if(canPipeline && Curl_pipeline_site_blacklisted(data, needle)) { in ConnectionExists()
3206 bundle = Curl_conncache_find_bundle(needle, data->state.conn_cache); in ConnectionExists()
3215 if(needle->bits.conn_to_host) in ConnectionExists()
3216 hostname = needle->conn_to_host.name; in ConnectionExists()
3218 hostname = needle->host.name; in ConnectionExists()
[all …]
/external/protobuf/gtest/src/
Dgtest.cc1253 bool IsSubstringPred(const char* needle, const char* haystack) { in IsSubstringPred() argument
1254 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1255 return needle == haystack; in IsSubstringPred()
1257 return strstr(haystack, needle) != NULL; in IsSubstringPred()
1260 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { in IsSubstringPred() argument
1261 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1262 return needle == haystack; in IsSubstringPred()
1264 return wcsstr(haystack, needle) != NULL; in IsSubstringPred()
1269 bool IsSubstringPred(const StringType& needle, in IsSubstringPred() argument
1271 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
[all …]
/external/google-breakpad/src/testing/gtest/src/
Dgtest.cc1232 bool IsSubstringPred(const char* needle, const char* haystack) { in IsSubstringPred() argument
1233 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1234 return needle == haystack; in IsSubstringPred()
1236 return strstr(haystack, needle) != NULL; in IsSubstringPred()
1239 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { in IsSubstringPred() argument
1240 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1241 return needle == haystack; in IsSubstringPred()
1243 return wcsstr(haystack, needle) != NULL; in IsSubstringPred()
1248 bool IsSubstringPred(const StringType& needle, in IsSubstringPred() argument
1250 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
[all …]
/external/llvm/utils/unittest/googletest/src/
Dgtest.cc1231 bool IsSubstringPred(const char* needle, const char* haystack) { in IsSubstringPred() argument
1232 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1233 return needle == haystack; in IsSubstringPred()
1235 return strstr(haystack, needle) != NULL; in IsSubstringPred()
1238 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { in IsSubstringPred() argument
1239 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1240 return needle == haystack; in IsSubstringPred()
1242 return wcsstr(haystack, needle) != NULL; in IsSubstringPred()
1247 bool IsSubstringPred(const StringType& needle, in IsSubstringPred() argument
1249 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
[all …]
/external/mesa3d/src/gtest/src/
Dgtest.cc1231 bool IsSubstringPred(const char* needle, const char* haystack) { in IsSubstringPred() argument
1232 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1233 return needle == haystack; in IsSubstringPred()
1235 return strstr(haystack, needle) != NULL; in IsSubstringPred()
1238 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { in IsSubstringPred() argument
1239 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1240 return needle == haystack; in IsSubstringPred()
1242 return wcsstr(haystack, needle) != NULL; in IsSubstringPred()
1247 bool IsSubstringPred(const StringType& needle, in IsSubstringPred() argument
1249 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/rsa/
Dtransform.py118 def bytes_leading(raw_bytes, needle=ZERO_BYTE): argument
133 _byte = needle[0]
/external/gtest/src/
Dgtest.cc1234 bool IsSubstringPred(const char* needle, const char* haystack) { in IsSubstringPred() argument
1235 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1236 return needle == haystack; in IsSubstringPred()
1238 return strstr(haystack, needle) != NULL; in IsSubstringPred()
1241 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { in IsSubstringPred() argument
1242 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1243 return needle == haystack; in IsSubstringPred()
1245 return wcsstr(haystack, needle) != NULL; in IsSubstringPred()
1250 bool IsSubstringPred(const StringType& needle, in IsSubstringPred() argument
1252 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
[all …]
/external/vulkan-validation-layers/tests/gtest-1.7.0/src/
Dgtest.cc1234 bool IsSubstringPred(const char* needle, const char* haystack) { in IsSubstringPred() argument
1235 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1236 return needle == haystack; in IsSubstringPred()
1238 return strstr(haystack, needle) != NULL; in IsSubstringPred()
1241 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { in IsSubstringPred() argument
1242 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1243 return needle == haystack; in IsSubstringPred()
1245 return wcsstr(haystack, needle) != NULL; in IsSubstringPred()
1250 bool IsSubstringPred(const StringType& needle, in IsSubstringPred() argument
1252 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
[all …]
/external/deqp/scripts/
Dconvert_case_list_to_xml.py32 def findAllMatches(haystack, needle): argument
36 ndx = haystack.find(needle, ndx+1)
/external/fio/lib/
Dstrcasestr.h10 char *strcasestr(const char *haystack, const char *needle);
/external/protobuf/gtest/include/gtest/
Dgtest.h1452 const char* needle, const char* haystack);
1455 const wchar_t* needle, const wchar_t* haystack);
1458 const char* needle, const char* haystack);
1461 const wchar_t* needle, const wchar_t* haystack);
1464 const ::std::string& needle, const ::std::string& haystack);
1467 const ::std::string& needle, const ::std::string& haystack);
1472 const ::std::wstring& needle, const ::std::wstring& haystack);
1475 const ::std::wstring& needle, const ::std::wstring& haystack);
/external/v8/build/
Dgyp_chromium.py153 needle = 'output_dir='
155 if item.startswith(needle):
156 return item[len(needle):]

123