Lines Matching refs:i

82   size_t i;  in do_test()  local
99 for (i = 0; i < len; i++) in do_test()
101 s1[i] = toupper (1 + 23 * i % max_char); in do_test()
102 s2[i] = tolower (s1[i]); in do_test()
121 size_t i, j, n, align1, align2, pos, len1, len2; in do_random_tests() local
150 for (i = 0; i < j; ++i) in do_random_tests()
152 p1[i] = tolower (random () & 255); in do_random_tests()
153 if (i < len1 + align1 && !p1[i]) in do_random_tests()
155 p1[i] = tolower (random () & 255); in do_random_tests()
156 if (!p1[i]) in do_random_tests()
157 p1[i] = tolower (1 + (random () & 127)); in do_random_tests()
160 for (i = 0; i < j; ++i) in do_random_tests()
162 p2[i] = toupper (random () & 255); in do_random_tests()
163 if (i < len2 + align2 && !p2[i]) in do_random_tests()
165 p2[i] = toupper (random () & 255); in do_random_tests()
166 if (!p2[i]) in do_random_tests()
167 toupper (p2[i] = 1 + (random () & 127)); in do_random_tests()
212 size_t i; in test_locale() local
225 for (i = 1; i < 16; ++i) in test_locale()
227 do_test (i, i, i, 127, 0); in test_locale()
228 do_test (i, i, i, 127, 1); in test_locale()
229 do_test (i, i, i, 127, -1); in test_locale()
232 for (i = 1; i < 10; ++i) in test_locale()
234 do_test (0, 0, 2 << i, 127, 0); in test_locale()
235 do_test (0, 0, 2 << i, 254, 0); in test_locale()
236 do_test (0, 0, 2 << i, 127, 1); in test_locale()
237 do_test (0, 0, 2 << i, 254, 1); in test_locale()
238 do_test (0, 0, 2 << i, 127, -1); in test_locale()
239 do_test (0, 0, 2 << i, 254, -1); in test_locale()
242 for (i = 1; i < 8; ++i) in test_locale()
244 do_test (i, 2 * i, 8 << i, 127, 0); in test_locale()
245 do_test (2 * i, i, 8 << i, 254, 0); in test_locale()
246 do_test (i, 2 * i, 8 << i, 127, 1); in test_locale()
247 do_test (2 * i, i, 8 << i, 254, 1); in test_locale()
248 do_test (i, 2 * i, 8 << i, 127, -1); in test_locale()
249 do_test (2 * i, i, 8 << i, 254, -1); in test_locale()