Lines Matching refs:i

103   size_t i;  in do_test()  local
120 for (i = 0; i < len; i++) in do_test()
122 s1[i] = toupper (1 + 23 * i % max_char); in do_test()
123 s2[i] = tolower (s1[i]); in do_test()
184 size_t i, j, n, align1, align2, pos, len1, len2; in do_random_tests() local
213 for (i = 0; i < j; ++i) in do_random_tests()
215 p1[i] = tolower (random () & 255); in do_random_tests()
216 if (i < len1 + align1 && !p1[i]) in do_random_tests()
218 p1[i] = tolower (random () & 255); in do_random_tests()
219 if (!p1[i]) in do_random_tests()
220 p1[i] = tolower (1 + (random () & 127)); in do_random_tests()
223 for (i = 0; i < j; ++i) in do_random_tests()
225 p2[i] = toupper (random () & 255); in do_random_tests()
226 if (i < len2 + align2 && !p2[i]) in do_random_tests()
228 p2[i] = toupper (random () & 255); in do_random_tests()
229 if (!p2[i]) in do_random_tests()
230 toupper (p2[i] = 1 + (random () & 127)); in do_random_tests()
304 size_t i; in test_locale() local
320 for (i = 1; i < 16; ++i) in test_locale()
322 do_test (i, i, i - 1, i, 127, 0); in test_locale()
324 do_test (i, i, i, i, 127, 0); in test_locale()
325 do_test (i, i, i, i, 127, 1); in test_locale()
326 do_test (i, i, i, i, 127, -1); in test_locale()
328 do_test (i, i, i + 1, i, 127, 0); in test_locale()
329 do_test (i, i, i + 1, i, 127, 1); in test_locale()
330 do_test (i, i, i + 1, i, 127, -1); in test_locale()
333 for (i = 1; i < 10; ++i) in test_locale()
335 do_test (0, 0, (2 << i) - 1, 2 << i, 127, 0); in test_locale()
336 do_test (0, 0, 2 << i, 2 << i, 254, 0); in test_locale()
337 do_test (0, 0, (2 << i) + 1, 2 << i, 127, 0); in test_locale()
339 do_test (0, 0, (2 << i) + 1, 2 << i, 254, 0); in test_locale()
341 do_test (0, 0, 2 << i, 2 << i, 127, 1); in test_locale()
342 do_test (0, 0, (2 << i) + 10, 2 << i, 127, 1); in test_locale()
344 do_test (0, 0, 2 << i, 2 << i, 254, 1); in test_locale()
345 do_test (0, 0, (2 << i) + 10, 2 << i, 254, 1); in test_locale()
347 do_test (0, 0, 2 << i, 2 << i, 127, -1); in test_locale()
348 do_test (0, 0, (2 << i) + 10, 2 << i, 127, -1); in test_locale()
350 do_test (0, 0, 2 << i, 2 << i, 254, -1); in test_locale()
351 do_test (0, 0, (2 << i) + 10, 2 << i, 254, -1); in test_locale()
354 for (i = 1; i < 8; ++i) in test_locale()
356 do_test (i, 2 * i, (8 << i) - 1, 8 << i, 127, 0); in test_locale()
357 do_test (i, 2 * i, 8 << i, 8 << i, 127, 0); in test_locale()
358 do_test (i, 2 * i, (8 << i) + 100, 8 << i, 127, 0); in test_locale()
360 do_test (2 * i, i, (8 << i) - 1, 8 << i, 254, 0); in test_locale()
361 do_test (2 * i, i, 8 << i, 8 << i, 254, 0); in test_locale()
362 do_test (2 * i, i, (8 << i) + 100, 8 << i, 254, 0); in test_locale()
364 do_test (i, 2 * i, 8 << i, 8 << i, 127, 1); in test_locale()
365 do_test (i, 2 * i, (8 << i) + 100, 8 << i, 127, 1); in test_locale()
367 do_test (2 * i, i, 8 << i, 8 << i, 254, 1); in test_locale()
368 do_test (2 * i, i, (8 << i) + 100, 8 << i, 254, 1); in test_locale()
370 do_test (i, 2 * i, 8 << i, 8 << i, 127, -1); in test_locale()
371 do_test (i, 2 * i, (8 << i) + 100, 8 << i, 127, -1); in test_locale()
373 do_test (2 * i, i, 8 << i, 8 << i, 254, -1); in test_locale()
374 do_test (2 * i, i, (8 << i) + 100, 8 << i, 254, -1); in test_locale()