Home
last modified time | relevance | path

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

/AliOS-Things-master/components/py_engine/tests/basics/
A Dcontainment.py8 for needle in [haystack[i:] for i in range(len(haystack))]:
9 print(needle, "in", haystack, "::", needle in haystack)
10 print(needle, "not in", haystack, "::", needle not in haystack)
11 print(haystack, "in", needle, "::", haystack in needle)
12 print(haystack, "not in", needle, "::", haystack not in needle)
13 for needle in [haystack[:i+1] for i in range(len(haystack))]:
14 print(needle, "in", haystack, "::", needle in haystack)
15 print(needle, "not in", haystack, "::", needle not in haystack)
16 print(haystack, "in", needle, "::", haystack in needle)
17 print(haystack, "not in", needle, "::", haystack not in needle)
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/
A Dstr-two-way.h121 a = CANON_ELEMENT (needle[j + k]); in __rtl_critical_factorization()
122 b = CANON_ELEMENT (needle[(size_t)(max_suffix + k)]); in __rtl_critical_factorization()
156 a = CANON_ELEMENT (needle[j + k]); in __rtl_critical_factorization()
157 b = CANON_ELEMENT (needle[max_suffix_rev + k]); in __rtl_critical_factorization()
206 const unsigned char *needle, size_t needle_len) in __rtl_two_way_short_needle() argument
220 if (CMP_FUNC (needle, needle + period, suffix) == 0) in __rtl_two_way_short_needle()
231 while (i < needle_len && (CANON_ELEMENT (needle[i]) in __rtl_two_way_short_needle()
265 while (i < needle_len && (CANON_ELEMENT (needle[i]) in __rtl_two_way_short_needle()
272 while (i != SIZE_MAX && (CANON_ELEMENT (needle[i]) in __rtl_two_way_short_needle()
302 const unsigned char *needle, size_t needle_len) in __rtl_two_way_long_needle() argument
[all …]
A Dstrstr.c93 const char *needle = lookfor; in _strstr()
101 while (*haystack && *needle) in _strstr()
102 ok &= *haystack++ == *needle++; in _strstr()
103 if (*needle) in _strstr()
110 needle_len = needle - lookfor; in _strstr()
/AliOS-Things-master/components/py_engine/engine/shared/libc/
A Dstring0.c227 char *strstr(const char *haystack, const char *needle) in strstr() argument
231 if (*needle == '\0') in strstr()
233 needlelen = strlen(needle); in strstr()
234 for (; (haystack = strchr(haystack, *needle)) != 0; haystack++) in strstr()
235 if (strncmp(haystack, needle, needlelen) == 0) in strstr()
/AliOS-Things-master/components/littlevgl/src/lv_objx/
A Dlv_gauge.h145 int16_t lv_gauge_get_value(const lv_obj_t * gauge, uint8_t needle);
A Dlv_gauge.c213 int16_t lv_gauge_get_value(const lv_obj_t * gauge, uint8_t needle) in lv_gauge_get_value() argument
218 if(needle >= ext->needle_count) return min; in lv_gauge_get_value()
220 return ext->values[needle]; in lv_gauge_get_value()
/AliOS-Things-master/components/SDL2/src/stdlib/
A DSDL_string.c481 SDL_wcsstr(const wchar_t *haystack, const wchar_t *needle) in SDL_wcsstr() argument
484 return SDL_const_cast(wchar_t*,wcsstr(haystack, needle)); in SDL_wcsstr()
486 size_t length = SDL_wcslen(needle); in SDL_wcsstr()
488 if (SDL_wcsncmp(haystack, needle, length) == 0) { in SDL_wcsstr()
708 SDL_strstr(const char *haystack, const char *needle) in SDL_strstr() argument
711 return SDL_const_cast(char*,strstr(haystack, needle)); in SDL_strstr()
713 size_t length = SDL_strlen(needle); in SDL_strstr()
715 if (SDL_strncmp(haystack, needle, length) == 0) { in SDL_strstr()
/AliOS-Things-master/components/py_engine/engine/py/
A Dobjstr.h76 const byte *find_subbytes(const byte *haystack, size_t hlen, const byte *needle, size_t nlen, int d…
A Dobjstr.c279 const byte *find_subbytes(const byte *haystack, size_t hlen, const byte *needle, size_t nlen, int d… in find_subbytes() argument
290 if (memcmp(&haystack[str_index], needle, nlen) == 0) { in find_subbytes()
707 GET_STR_DATA_LEN(args[1], needle, needle_len); in str_finder()
722 const byte *p = find_subbytes(start, end - start, needle, needle_len, direction); in str_finder()
1734 GET_STR_DATA_LEN(args[1], needle, needle_len); in str_count()
1753 if (memcmp(haystack_ptr, needle, needle_len) == 0) { in str_count()
/AliOS-Things-master/components/SDL2/include/
A DSDL_stdinc.h463 extern DECLSPEC wchar_t *SDLCALL SDL_wcsstr(const wchar_t *haystack, const wchar_t *needle);
478 extern DECLSPEC char *SDLCALL SDL_strstr(const char *haystack, const char *needle);
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/src/utils/
A Dos.h448 char *os_strstr(const char *haystack, const char *needle);

Completed in 31 milliseconds