Home | History | Annotate | Download | only in cintltst

Lines Matching refs:middle

1189     int32_t i, pos1, pos2, middle, length;
1200 /* set into the middle */
1201 middle=length/2;
1203 pos1=iter1->move(iter1, middle, UITER_ZERO);
1204 if(pos1!=middle) {
1205 log_err("%s->move(from 0 to middle %d)=%d does not move to the middle\n", n1, middle, pos1);
1209 pos2=iter2->move(iter2, middle, UITER_ZERO);
1210 if(pos2!=middle) {
1211 log_err("%s->move(from 0 to middle %d)=%d does not move to the middle\n", n2, middle, pos2);
1219 log_err("%s->current()=U+%04x != U+%04x=%s->current() at middle=%d\n", n1, c1, c2, n2, middle);
1228 log_err("%s->next()=U+%04x != U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURRENT));
1238 log_err("%s->previous()=U+%04x != U+%04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURRENT));
1282 /* back to the middle */
1283 pos1=iter1->move(iter1, middle, UITER_ZERO);
1284 if(pos1!=middle) {
1285 log_err("%s->move(from end to middle %d)=%d does not move to the middle\n", n1, middle, pos1);
1289 pos2=iter2->move(iter2, middle, UITER_ZERO);
1290 if(pos2!=middle) {
1291 log_err("%s->move(from end to middle %d)=%d does not move to the middle\n", n2, middle, pos2);
1298 log_err("%s->move(from middle %d to 1)=%d does not move to 1\n", n1, middle, pos1);
1304 log_err("%s->move(from middle %d to 1)=%d does not move to 1\n", n2, middle, pos2);
1355 * It must be 2<=middle<=length-2.
1358 testIteratorState(UCharIterator *iter1, UCharIterator *iter2, const char *n, int32_t middle) {
1366 /* get four UChars from the middle of the string */
1367 iter1->move(iter1, middle-2, UITER_ZERO);
1372 log_err("test error: %s[%d]=%d\n", n, middle-2+i, c);
1378 /* move to the middle and get the state */
1392 log_err("%s->current(at %d)=U+%04x!=U+%04x\n", n, middle, c, u[2]);
1397 log_err("%s->previous(at %d)=U+%04x!=U+%04x\n", n, middle-1, c, u[1]);
1403 log_err("%s->next(at %d)=U+%04x!=U+%04x\n", n, middle+1, c, u[3]);
1409 log_err("%s->previous(at %d)=U+%04x!=U+%04x\n", n, middle-2, c, u[0]);
1412 /* move the second iterator back to the middle */
1416 /* check that both are in the middle */
1419 if(i!=middle) {
1420 log_err("%s->getIndex(current)=%d!=%d as expected\n", n, i, middle);