Lines Matching defs:ins
233 ucs2_t *strstr_w(const ucs2_t *s, const ucs2_t *ins)
238 if (!s || !*s || !ins || !*ins) return NULL;
240 inslen = strlen_w(ins);
242 while ((r = strchr_w(r, *ins))) {
243 if (strncmp_w(r, ins, inslen) == 0) return r;
254 ucs2_t *strcasestr_w(const ucs2_t *s, const ucs2_t *ins)
259 if (!s || !*s || !ins || !*ins) return NULL;
261 inslen = strlen_w(ins);
264 if ((0xD800 <= *ins) && (*ins < 0xDC00)) {
265 if ((0xDC00 <= ins[1]) && (ins[1] < 0xE000)) {
266 u_int32_t ins_sp = (u_int32_t)*ins << 16 | (u_int32_t)ins[1];
268 if (strncasecmp_w(r, ins, inslen) == 0) return r;
275 while ((r = strcasechr_w(r, *ins))) {
276 if (strncasecmp_w(r, ins, inslen) == 0) return r;