Lines Matching refs:strcasestr
1380 check(strcasestr("abCd", "z") == NULL, 1); /* Not found. */ in test_strcasestr()
1381 check(strcasestr("AbcD", "abX") == NULL, 2); /* Dead end. */ in test_strcasestr()
1383 check(strcasestr(one, "c") == one+2, 3); /* Basic test. */ in test_strcasestr()
1384 check(strcasestr(one, "Bc") == one+1, 4); /* Multichar. */ in test_strcasestr()
1385 check(strcasestr(one, "d") == one+3, 5); /* End of string. */ in test_strcasestr()
1386 check(strcasestr(one, "Cd") == one+2, 6); /* Tail of string. */ in test_strcasestr()
1387 check(strcasestr(one, "aBc") == one, 7); /* Beginning. */ in test_strcasestr()
1388 check(strcasestr(one, "aBcd") == one, 8); /* Exact match. */ in test_strcasestr()
1389 check(strcasestr(one, "AbcDe") == NULL, 9); /* Too long. */ in test_strcasestr()
1390 check(strcasestr(one, "dE") == NULL, 10); /* Past end. */ in test_strcasestr()
1391 check(strcasestr(one, "") == one, 11); /* Finding empty. */ in test_strcasestr()
1393 check(strcasestr(one, "Ba") == one+1, 12); /* Finding first. */ in test_strcasestr()
1395 check(strcasestr(one, "b") == NULL, 13); /* Empty string. */ in test_strcasestr()
1396 check(strcasestr(one, "") == one, 14); /* Empty in empty string. */ in test_strcasestr()
1398 check(strcasestr(one, "bCa") == one+2, 15); /* False start. */ in test_strcasestr()
1400 check(strcasestr(one, "bbCa") == one+1, 16); /* With overlap. */ in test_strcasestr()