Lines Matching refs:tc
148 TestCon tc = new TestCon17();
149 test_consub_indexof(tc, b);
153 tc = new TestCon16();
154 test_consub_indexof(tc, b);
158 tc = new TestCon9();
159 test_consub_indexof(tc, b);
163 tc = new TestCon8();
164 test_consub_indexof(tc, b);
168 tc = new TestCon4();
169 test_consub_indexof(tc, b);
173 tc = new TestCon3();
174 test_consub_indexof(tc, b);
178 tc = new TestCon2();
179 test_consub_indexof(tc, b);
183 tc = new TestCon1();
184 test_consub_indexof(tc, b);
189 tc = new TestCon17();
190 test_conmis_indexof(tc, b);
194 tc = new TestCon16();
195 test_conmis_indexof(tc, b);
199 tc = new TestCon9();
200 test_conmis_indexof(tc, b);
204 tc = new TestCon8();
205 test_conmis_indexof(tc, b);
209 tc = new TestCon4();
210 test_conmis_indexof(tc, b);
214 tc = new TestCon3();
215 test_conmis_indexof(tc, b);
219 tc = new TestCon2();
220 test_conmis_indexof(tc, b);
224 tc = new TestCon1();
225 test_conmis_indexof(tc, b);
308 public static void test_consub_indexof(TestCon tc, String b) {
309 System.out.println("Start search constant substring (" + tc.constr().length() + " chars)");
311 int limit = tc.constr().length();
314 long start = test_init(tc.constr(), b);
315 int v = test_subcon(tc);
316 test_end(tc.constr(), b, v, (b.length() - tc.constr().length()), start);
319 System.out.println("End search constant substring (" + tc.constr().length() + " chars), time: " + (end_it - start_it));
322 public static void test_conmis_indexof(TestCon tc, String b) {
323 System.out.println("Start search non matching constant substring (" + tc.constr().length() + " chars)");
325 int limit = tc.constr().length();
328 long start = test_init(tc.constr(), b);
329 int v = test_subcon(tc);
330 test_end(tc.constr(), b, v, (-1), start);
333 System.out.println("End search non matching constant substring (" + tc.constr().length() + " chars), time: " + (end_it - start_it));
336 public static int test_subcon(TestCon tc) {
340 v += tc.indexOf(strings[s]);