/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | containment.py | 7 haystack = "supercalifragilistc" variable 8 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) [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/ |
A D | strstr.c | 92 const char *haystack = searchee; in _strstr() 101 while (*haystack && *needle) in _strstr() 102 ok &= *haystack++ == *needle++; in _strstr() 111 haystack = _strchr (searchee + 1, *lookfor); in _strstr() 112 if (!haystack || needle_len == 1) in _strstr() 113 return (char *) haystack; in _strstr() 114 haystack_len = (haystack > searchee + needle_len ? 1 in _strstr() 115 : needle_len + searchee - haystack); in _strstr() 119 return __rtl_two_way_short_needle ((const unsigned char *) haystack, in _strstr() 122 return __rtl_two_way_long_needle ((const unsigned char *) haystack, haystack_len, in _strstr()
|
A D | str-two-way.h | 232 == CANON_ELEMENT (haystack[i + j]))) in __rtl_two_way_short_needle() 239 == CANON_ELEMENT (haystack[i + j]))) in __rtl_two_way_short_needle() 242 return (RETURN_TYPE) (haystack + j); in __rtl_two_way_short_needle() 266 == CANON_ELEMENT (haystack[i + j]))) in __rtl_two_way_short_needle() 273 == CANON_ELEMENT (haystack[i + j]))) in __rtl_two_way_short_needle() 276 return (RETURN_TYPE) (haystack + j); in __rtl_two_way_short_needle() 356 == CANON_ELEMENT (haystack[i + j]))) in __rtl_two_way_long_needle() 363 == CANON_ELEMENT (haystack[i + j]))) in __rtl_two_way_long_needle() 366 return (RETURN_TYPE) (haystack + j); in __rtl_two_way_long_needle() 400 == CANON_ELEMENT (haystack[i + j]))) in __rtl_two_way_long_needle() [all …]
|
/AliOS-Things-master/components/py_engine/engine/shared/libc/ |
A D | string0.c | 227 char *strstr(const char *haystack, const char *needle) in strstr() argument 232 return (char *) haystack; in strstr() 234 for (; (haystack = strchr(haystack, *needle)) != 0; haystack++) in strstr() 235 if (strncmp(haystack, needle, needlelen) == 0) in strstr() 236 return (char *) haystack; in strstr()
|
/AliOS-Things-master/components/SDL2/src/stdlib/ |
A D | SDL_string.c | 481 SDL_wcsstr(const wchar_t *haystack, const wchar_t *needle) in SDL_wcsstr() argument 487 while (*haystack) { in SDL_wcsstr() 488 if (SDL_wcsncmp(haystack, needle, length) == 0) { in SDL_wcsstr() 489 return (wchar_t *)haystack; in SDL_wcsstr() 491 ++haystack; 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() 714 while (*haystack) { in SDL_strstr() 715 if (SDL_strncmp(haystack, needle, length) == 0) { in SDL_strstr() 716 return (char *) haystack; in SDL_strstr() [all …]
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | objstr.c | 290 if (memcmp(&haystack[str_index], needle, nlen) == 0) { in find_subbytes() 292 return haystack + str_index; in find_subbytes() 706 GET_STR_DATA_LEN(args[0], haystack, haystack_len); in str_finder() 709 const byte *start = haystack; in str_finder() 710 const byte *end = haystack + haystack_len; in str_finder() 715 end = str_index_to_ptr(self_type, haystack, haystack_len, args[3], true); in str_finder() 735 return MP_OBJ_NEW_SMALL_INT(utf8_ptr_to_index(haystack, p)); in str_finder() 738 return MP_OBJ_NEW_SMALL_INT(p - haystack); in str_finder() 1733 GET_STR_DATA_LEN(args[0], haystack, haystack_len); in str_count() 1736 const byte *start = haystack; in str_count() [all …]
|
A D | objstr.h | 76 const byte *find_subbytes(const byte *haystack, size_t hlen, const byte *needle, size_t nlen, int d…
|
/AliOS-Things-master/components/SDL2/include/ |
A D | SDL_stdinc.h | 463 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 D | os.h | 448 char *os_strstr(const char *haystack, const char *needle);
|