Lines Matching defs:index
413 XawTextPosition index, lastPos;
422 for (index = fromPos; index != toPos && index < lastPos; index++) {
423 if (index - blk.firstPos >= blk.length)
424 XawTextSourceRead(source, index, &blk, (int) (toPos - fromPos));
425 c = ((wchar_t *)blk.ptr)[index - blk.firstPos];
428 index++;
432 *resPos = index;
452 XawTextPosition lastPos, index, whiteSpacePosition;
465 for (index = fromPos; *resWidth <= width && index < lastPos; index++) {
467 if (index - blk.firstPos >= blk.length)
468 XawTextSourceRead(source, index, &blk, BUFSIZ);
469 c = ((wchar_t *)blk.ptr)[index - blk.firstPos];
475 whiteSpacePosition = index;
479 index++;
483 if (*resWidth > width && index > fromPos) {
485 index--;
487 index = whiteSpacePosition + 1;
491 if (index == lastPos && c != _Xaw_atowc(XawLF)) index = lastPos + 1;
492 *resPos = index;