/external/fio/lib/ |
strcasestr.h | 10 char *strcasestr(const char *haystack, const char *needle);
|
/bionic/libc/bionic/ |
memmem.c | 35 void *memmem(const void *haystack, size_t n, const void *needle, size_t m) 42 const unsigned char* x = (const unsigned char*) needle; 61 return memchr(haystack, ((unsigned char*)needle)[0], n);
|
/external/iproute2/tc/ |
em_nbyte.c | 31 "Usage: nbyte(NEEDLE at OFFSET [layer LAYER])\n" \ 32 "where: NEEDLE := { string | \"c-escape-sequence\" }\n" \ 44 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) [all...] |
/frameworks/base/core/java/android/hardware/camera2/utils/ |
ArrayUtils.java | 33 /** Return the index of {@code needle} in the {@code array}, or else {@code -1} */ 34 public static <T> int getArrayIndex(T[] array, T needle) { 41 if (Objects.equals(elem, needle)) { 50 /** Return the index of {@code needle} in the {@code array}, or else {@code -1} */ 51 public static int getArrayIndex(int[] array, int needle) { 56 if (array[i] == needle) {
|
ListUtils.java | 29 /** Return {@code} true if the {@code list} contains the {@code needle}. */ 30 public static <T> boolean listContains(List<T> list, T needle) { 34 return list.contains(needle);
|
/frameworks/av/include/media/stagefright/foundation/ |
AUtils.h | 69 // needle is in range [hayStart, hayStart + haySize) 71 inline static bool isInRange(const T &hayStart, const U &haySize, const T &needle) { 73 return (T)(hayStart + haySize) >= hayStart && needle >= hayStart && (U)(needle - hayStart) < haySize;
|
/cts/tests/tests/util/src/android/util/cts/ |
RangeTest.java | 132 private static <T extends Comparable<? super T>> void assertInRange(Range<T> object, T needle) { 133 assertAction("in-range", object, needle, true, object.contains(needle)); 137 T needle) { 138 assertAction("out-of-range", object, needle, false, object.contains(needle)); 155 private static <T, T2> void assertAction(String action, T object, T2 needle, boolean expected, 158 assertEquals("Expected " + needle + " to be " + expectedMessage + " of " + object,
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
RangeTest.java | 139 private static <T extends Comparable<? super T>> void assertInRange(Range<T> object, T needle) { 140 assertAction("in-range", object, needle, true, object.contains(needle)); 144 T needle) { 145 assertAction("out-of-range", object, needle, false, object.contains(needle)); 162 private static <T, T2> void assertAction(String action, T object, T2 needle, boolean expected, 165 assertEquals("Expected " + needle + " to be " + expectedMessage + " of " + object,
|
/external/chromium_org/third_party/skia/tests/ |
AnnotationTest.cpp | 15 /** Returns true if data (may contain null characters) contains needle (null 17 static bool ContainsString(const char* data, size_t dataSize, const char* needle) { 18 size_t nSize = strlen(needle); 20 if (strncmp(&data[i], needle, nSize) == 0) {
|
/external/skia/tests/ |
AnnotationTest.cpp | 15 /** Returns true if data (may contain null characters) contains needle (null 17 static bool ContainsString(const char* data, size_t dataSize, const char* needle) { 18 size_t nSize = strlen(needle); 20 if (strncmp(&data[i], needle, nSize) == 0) {
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
u_string.h | 142 util_strstr(const char *haystack, const char *needle) 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/ |
u_string.h | 142 util_strstr(const char *haystack, const char *needle) 145 size_t len = strlen(needle); 147 for (; (p = util_strchr(p, *needle)) != 0; p++) { 148 if (util_strncmp(p, needle, len) == 0) {
|
/bionic/tests/ |
search_test.cpp | 30 int needle; local 33 needle = 2; 34 ASSERT_EQ(nullptr, lfind(&needle, xs, &x_size, sizeof(xs[0]), int_cmp)); 38 ASSERT_EQ(&xs[0], lsearch(&needle, xs, &x_size, sizeof(xs[0]), int_cmp)); 43 ASSERT_EQ(&xs[0], lfind(&needle, xs, &x_size, sizeof(xs[0]), int_cmp)); 47 ASSERT_EQ(&xs[0], lsearch(&needle, xs, &x_size, sizeof(xs[0]), int_cmp));
|
/external/bison/lib/ |
string.in.h | 129 /* Return the first occurrence of NEEDLE in HAYSTACK. */ 567 _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)); 601 /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive 609 (const char *haystack, const char *needle) 613 (const char *haystack, const char *needle)); [all...] |
/external/chromium_org/sync/syncable/ |
syncable_delete_journal.cc | 121 EntryKernel needle; local 124 needle.put(ID, (*i)->ref(ID)); 125 if (delete_journals_.find(&needle) == delete_journals_.end()) {
|
/external/chromium_org/build/ |
gyp_chromium | 146 needle = '-Goutput_dir=' 149 if item.startswith(needle): 150 return item[len(needle):] 153 needle = 'output_dir=' 155 if item.startswith(needle): 156 return item[len(needle):]
|
/external/deqp/scripts/ |
convert_case_list_to_xml.py | 12 def findAllMatches(haystack, needle): 16 ndx = haystack.find(needle, ndx+1)
|
/development/ndk/platforms/android-3/include/ |
string.h | 62 extern char* strcasestr(const char *haystack, const char *needle);
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/ |
string.h | 62 extern char* strcasestr(const char *haystack, const char *needle);
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/ |
string.h | 62 extern char* strcasestr(const char *haystack, const char *needle);
|
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/ |
string.h | 62 extern char* strcasestr(const char *haystack, const char *needle);
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/ |
string.h | 62 extern char* strcasestr(const char *haystack, const char *needle);
|
/prebuilts/ndk/4/platforms/android-8/arch-arm/usr/include/ |
string.h | 62 extern char* strcasestr(const char *haystack, const char *needle);
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/ |
string.h | 62 extern char* strcasestr(const char *haystack, const char *needle);
|
/prebuilts/ndk/5/platforms/android-3/arch-arm/usr/include/ |
string.h | 62 extern char* strcasestr(const char *haystack, const char *needle);
|